Navigation

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

    GTT orders are failing

    Python SDK
    1
    2
    8
    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.
    • R
      rakeshkr114 last edited by

      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?

      R 1 Reply Last reply Reply Quote 0
      • R
        rakeshkr114 @rakeshkr114 last edited by

        @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!

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