Navigation

    SmartAPI Forum
    • Register
    • Login
    • Search
    • Categories
    • Popular
    • Groups
    • FAQs
    • API Docs

    GTT createRule and modifyRule throwing message":"no Route matched with those values"

    General Discussion
    1
    2
    1
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • S
      skammari last edited by

      I am getting below error when running from JAVA SDK API connect. The same works fine with postman, sharing both outputs below. Please help on urgent basis.

      Error Output from JAVA SDK
      2026-06-14 20:44:02,492 ERROR com.angelbroking.smartapi.http.SmartAPIRequestHandler [main] Error in POST request. Request URL: https://apiconnect.angelbroking.com/gtt-service/rest/secure/angelbroking/gtt/v1/createRule, Request Headers: Content-Type: application/json
      Authorization: ██
      X-ClientLocalIP: 127.0.0.1
      X-ClientPublicIP: 183.82.16.6
      X-MACAddress: 6A-8F-7D-08-E6-AF
      Accept: application/json
      X-PrivateKey: RY6R3LRI
      X-UserType: USER
      X-SourceID: WEB
      , Request Body: {"triggerprice":10834,"price":10834.5,"qty":2,"tradingsymbol":"BAJAJ-AUTO-EQ","disclosedqty":2,"exchange":"NSE","symboltoken":"16669","transactiontype":"BUY","producttype":"DELIVERY","timeperiod":365},Response : {
      "message":"no Route matched with those values",
      "request_id":"d6015d2367665449d00759760458c124"
      }

      Output from Postman
      Req body
      {
      "triggerprice": 10834,
      "price": 10834.5,
      "qty": 2,
      "tradingsymbol": "BAJAJ-AUTO-EQ",
      "disclosedqty": 2,
      "exchange": "NSE",
      "symboltoken": "16669",
      "transactiontype": "BUY",
      "producttype": "DELIVERY",
      "timeperiod": 365
      }
      Response body
      {
      "status": true,
      "message": "SUCCESS",
      "errorcode": "",
      "data": {
      "id": 8922815
      }
      }

      S 1 Reply Last reply Reply Quote 0
      • S
        skammari @skammari last edited by

        @skammari
        Re: GTT createRule and modifyRule throwing message":"no Route matched with those values"

        Observed that the URL from smartapi-java-2.2.6.jar that is being called from Java SDK is below -
        https://apiconnect.angelbroking.com/gtt-service/rest/secure/angelbroking/gtt/v1/createRule

        Whereas the API documentation mentions below URL, which works with Postman -
        https://apiconnect.angelbroking.com/rest/secure/angelbroking/gtt/v1/createRule

        The difference in the URL is the extra text 'gtt-service'. Please update the smartapi jar, so it works for us. Or suggest any alternatives.

        1 Reply Last reply Reply Quote 0
        • First post
          Last post