GTT createRule and modifyRule throwing message":"no Route matched with those values"
-
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
}
} -
@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/createRuleWhereas the API documentation mentions below URL, which works with Postman -
https://apiconnect.angelbroking.com/rest/secure/angelbroking/gtt/v1/createRuleThe difference in the URL is the extra text 'gtt-service'. Please update the smartapi jar, so it works for us. Or suggest any alternatives.