Navigation

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

    API BUG

    Python SDK
    0
    6
    20
    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

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

        @chexki

        Are you trying to sell your holding ?

        Are you using the latest SDK ?

        C 2 Replies Last reply Reply Quote 0
        • C
          chexki @Surya 1 last edited by

          @rajanprabu said in API BUG:

          Are you using the latest SDK ?

          smartapi-python-1.3.0

          S 1 Reply Last reply Reply Quote 0
          • C
            chexki @Surya 1 last edited by

            @rajanprabu
            Yes, Trying to sell my holding.

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

              @chexki

              Try the SDK from angel-one

              https://github.com/angel-one/smartapi-python

              This resolved some of my order errors.. Although im not sure if this will resolve your issue,,

              C 1 Reply Last reply Reply Quote 0
              • C
                chexki @Surya 1 last edited by

                @rajanprabu
                Got that, I'll sure try it.
                Thank you for your valuable response.

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