Navigation

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

    placeOrder() is not working and returning nothing

    Python SDK
    2
    7
    65
    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.
    • K
      kinshu94 last edited by

      Pasting the exact code I have used, placeOrder() is not working for any of the segments. Kindly check and let me know the issue.
      I have checked it in the account and got to know that the orders are not being displayed on the website.
      Screenshot (60).png

      K 1 Reply Last reply Reply Quote 0
      • K
        kinshu94 @kinshu94 last edited by

        @admin I have also tried following code with NORMAL order it also didn't work, giving null type return.
        orderparams = {
        "variety": "NORMAL",
        "tradingsymbol": "SBIN-EQ",
        "symboltoken": "1375",
        "transactiontype": "BUY",
        "exchange": "NSE",
        "ordertype": "LIMIT",
        "producttype": "INTRADAY",
        "duration": "DAY",
        "price": "415",
        "squareoff": "0",
        "stoploss": "0",
        "quantity": "1"
        }
        orderId=obj.placeOrder(orderparams)

        Could you let me know if Smart-API is even reliable, I have been facing this issue since yesterday and got no proper reply/responce on the matter from any of the developers of Smart-API.

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

          HI @kinshu94 We have noted this we will update you once it is fixed.

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

            hi @kinshu94 it is working fine from our end.
            req:
            {
            "variety":"NORMAL",
            "tradingsymbol":"SBIN-EQ",
            "symboltoken":"3045",
            "transactiontype":"BUY",
            "exchange":"NSE",
            "ordertype":"MARKET",
            "producttype":"INTRADAY",
            "duration":"DAY",
            "price":"421",
            "squareoff":"0",
            "stoploss":"0",
            "quantity":"1"
            }
            response:
            {
            "status": true,
            "message": "SUCCESS",
            "errorcode": "",
            "data": {
            "script": "SBIN-EQ",
            "orderid": "210622000000096"
            }
            }

            K 2 Replies Last reply Reply Quote 0
            • K
              kinshu94 @admin last edited by

              Thank you for getting it checked.
              @admin Okay then I must check my environment once again. I'll get back to you if I would be still faceing the same issue.

              1 Reply Last reply Reply Quote 0
              • K
                kinshu94 @admin last edited by

                Hi @admin,
                I have checked it, I noticed one thing that the ROBO order is working for EQUITY but Options, ​also the NORMAL order is not working for the OPTIONS.

                User's activated segments are: [bse_cm, nse_cm , nse_fo]

                Does Smart-API handle orders for the NFO segment?

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

                  HI @kinshu94 Please go through the below doc
                  https://smartapi.angelbroking.com/docs/Orders

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