Navigation

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

    Unable to place order,please check params

    Python SDK
    0
    7
    34
    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.
    • A
      aakashsri013 last edited by

      Hi @admin ,
      Please check the stoploss order params ive prepared and tell me why its getting rejected.

      {
      "variety":"STOPLOSS",
      "tradingsymbol":str(self.selected_recommendation_stock[0]),
      "symboltoken":str(self.token),
      "transactiontype":"BUY",
      "exchange":"NSE",
      "ordertype":"STOPLOSS_MARKET",
      "producttype":"INTRADAY",
      "duration":"DAY",
      "price":"0",
      "squareoff":"0",
      "triggerprice": str(round(0.98*float(self.market_data['data']['fetched'][0]['ltp']),2)),
      "quantity":self.tradeQty
      }

      Thanks,
      Aakash

      G M 2 Replies Last reply Reply Quote 0
      • G
        godboleamit @aakashsri013 last edited by

        @aakashsri013 Could you please post the final resulting JSON that is being sent to post the order?

        A 1 Reply Last reply Reply Quote 0
        • A
          aakashsri013 @godboleamit last edited by

          @godboleamit I have posted the same above.
          Any urgent help would be appreciated.
          Thanks,
          Aakash

          A 1 Reply Last reply Reply Quote 0
          • A
            aakashsri013 @aakashsri013 last edited by

            @aakashsri013 Also the same was working before when it was converted to stoploss order,earlier it was just a normal order.Nothing else has changed except the parameters for stoploss-market.

            1 Reply Last reply Reply Quote 0
            • M
              Moderator_3 @aakashsri013 last edited by

              Hello @aakashsri013
              could you please share the error received
              Regards,
              SmartAPI team

              A 1 Reply Last reply Reply Quote 0
              • A
                aakashsri013 @Moderator_3 last edited by

                @Moderator_3 No error just rejected order, try-except block not printing any error ,its not reaching the except-else portion of try block, hence i asked to check the params

                A 1 Reply Last reply Reply Quote 0
                • A
                  aakashsri013 @aakashsri013 last edited by

                  @Moderator_3 OK so now there is nothing wrong on my end, the try except else block is passing but the order shows rejected at your web portal.Dew rejected orderIDs are:

                  rejected order:
                  may6th:
                  240506000802724
                  240506000804868
                  may7th:
                  240507000067908

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