GTT orders are failing


  • Hi @admin ,
    On call to smartApi.gttModifyRule() method with payload={'id': '8405808', 'symboltoken': '505283', 'exchange': 'BSE', 'price': '1623.80', 'triggerprice': '1631.95', 'qty': '3'}

    Getting Error:
    python3.9/site-packages/SmartApi/smartConnect.py", line 430, in gttModifyRule
    return modifyGttRuleResponse['data']['id']
    KeyError: 'data'

    Getting this error from past few days. Same code was working fine before. Please check once?


  • @admin looks like the gtt api path got prefixed /gtt-service for /createRule, /modifyRule, /cancelRule which is not being allowed by the server and giving 404 with "no Route matched" error. Please look into it if possible. Thanks!