Navigation

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

    API Bug in order placement

    General Discussion
    0
    2
    18
    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.
    • C
      chexki last edited by

      When I try to place SELL order from API example, my order is getting placed.

      {
      "variety":"NORMAL",
      "tradingsymbol":"SBIN-EQ",
      "symboltoken":"3045",
      "transactiontype":"SELL",
      "exchange":"NSE",
      "ordertype":"MARKET",
      "producttype":"DELIVERY",
      "duration":"DAY",
      "price":"194.50",
      "squareoff":"0",
      "stoploss":"0",
      "quantity":"1"
      }

      But, when I try to put my stockname & symbol to it. it returns an error "TypeError: 'NoneType' object is not subscriptable"

      {
      "variety":"NORMAL",
      "tradingsymbol":"COALINDIA-EQ",
      "symboltoken":"20374",
      "transactiontype":"SELL",
      "exchange":"NSE",
      "ordertype":"MARKET",
      "producttype":"DELIVERY",
      "duration":"DAY",
      "price":"194.50",
      "squareoff":"0",
      "stoploss":"0",
      "quantity":"1"
      }

      This is really a frustrating problem, no proper documentation of errors is present.
      Please help & resolve it. ASAP

      M 1 Reply Last reply Reply Quote 0
      • M
        Moderator_2 @chexki last edited by

        Hi @chexki

        Apologies for delayed response and inconvenience caused.
        NoneType error has been fixed at our end. Kindly reverify and let us know if the issue has resolved.

        Thanks & Regards,
        SmartAPI team

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