Navigation

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

    Order Placing API return no response

    General Discussion
    7
    14
    195
    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.
    • N
      NST @J300558 last edited by

      @sachinsrm Please try with below request.

      {
      "variety":"NORMAL",
      "tradingsymbol":"RELIANCE-EQ",
      "symboltoken":"2885",
      "transactiontype":"BUY",
      "exchange":"NSE",
      "ordertype":"MARKET",
      "producttype":"MIS",
      "duration":"DAY",
      "price":"0",
      "quantity":"1"
      }

      J 1 Reply Last reply Reply Quote 0
      • J
        J300558 @NST last edited by

        @sandipkhairnar
        Hi, Thanks for response again.

        Tried as you have suggested; but not getting the any response. Once again getting an empty result.
        Not receiving success or error response.

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

          @sachinsrm There is no MIS. its INTRADAY.. I have attached the table below for your reference.

          Screen Shot 2021-01-07 at 12.03.14.png

          J 1 Reply Last reply Reply Quote 0
          • J
            J300558 @Surya 1 last edited by

            @rajanprabu
            Hi, thanks for the response. Now updating MIS to INTRADAY, Response is coming.
            For given input

                "variety" => "NORMAL",
                "tradingsymbol" => "RELIANCE-EQ",
                "symboltoken" => "2885",
                "exchange" => "NSE",
                "quantity" => "1",
                "transactiontype" => "BUY",
                "ordertype" => "MARKET",
                "producttype" => "INTRADAY"
            

            following response is coming:

            AB2001 : Internal Error
            How can this issue be handled?

            N 1 Reply Last reply Reply Quote 0
            • N
              NST @J300558 last edited by

              @sachinsrm There is missing "duration":"DAY" in place order request body.

              1 Reply Last reply Reply Quote 0
              • J
                J300558 last edited by

                @sandipkhairnar
                Hi,
                Thanks!
                Now getting the responses.
                API response getting Success but when checking into the trading panel:
                https://trade.angelbroking.com/
                it shows Order Rejected.

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

                  @sachinsrm order placement is successful - status of the order is what you are seeing in the web

                  1 Reply Last reply Reply Quote 0
                  • R
                    rahul4019 last edited by

                    Hi @admin and other fellow coders
                    I am refferring to the symbol token in the link given here
                    174d2738-ed40-425c-b3d4-59ce137dccd6-image.png

                    I tried to place order in the below code-

                    paceSLorder_payload = "{\n\"exchange\": \"NFO\",\n\"tradingsymbol\": \"BANKNIFTY21JAN2132600PE\",\n\
                        \"quantity\": 25, \
                            \n\"disclosedquantity\": 25,\
                             \n\"symboltoken\": 58068,\
                           \n    \"transactiontype\": \"BUY\",\
                           \n    \"ordertype\": \"LIMIT\",\
                           \n    \"duration\": \"DAY\",\
                           \n    \"variety\": \"STOPLOSS_LIMIT\",\
                           \n    \"triggerprice\": \"800\",\
                          \n    \"price\": \"805\",\
                           \n    \"producttype\": \"INTRADAY\"\
                           \n}"
                    conn.request("POST", 
                    "/rest/secure/angelbroking/order/v1/placeOrder",\
                    placeSLorder_payload,\
                    headers)
                    res = conn.getresponse()
                    data = res.read()
                    print(data.decode("utf-8"))
                    

                    I get the following error-

                    {"message":"Entered trading symbol and symbol token is mismatch","errorcode":"AB1019","status":false,"data":null}
                    

                    If you see the symbol and token value is correct. Why do i get this error?

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

                      Hi @PandaTrade , thank you for sharing your system on remote. The query is now resolved.

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

                        @admin
                        I am also not able to place the order using above request. Please help me..

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

                          Hi @nshekhar , as discussed and solved.

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