Navigation

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

    Not able to place order

    General Discussion
    2
    7
    45
    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.
    • rishi
      rishi last edited by

      I sent the following data to place order but got null in return :
      {"duration":"DAY","quantity":1,"variety":"NORMAL","price":75.1,"tradingsymbol":"BHEL-EQ","exchange":"NSE","transactiontype":"Buy","symboltoken":"438","ordertype":"LIMIT","producttype":"INTRADAY"}

      Please let me know the issue.

      A rishi 2 Replies Last reply Reply Quote 0
      • A
        admin @rishi last edited by

        Hi@rishi kindly refer below parameters
        req:
        {
        "variety": "NORMAL",
        "tradingsymbol": "SBIN-EQ",
        "symboltoken": "3045",
        "transactiontype": "BUY",
        "exchange": "NSE",
        "ordertype": "LIMIT",
        "producttype": "INTRADAY",
        "duration": "DAY",
        "price": "450",
        "squareoff": "0",
        "stoploss": "0",
        "quantity": "1"
        }
        response:
        {
        "status": true,
        "message": "SUCCESS",
        "errorcode": "",
        "data": {
        "script": "SBIN-EQ",
        "orderid": "210608000000972"
        }
        }

        rishi 2 Replies Last reply Reply Quote 0
        • rishi
          rishi @rishi last edited by

          This post is deleted!
          1 Reply Last reply Reply Quote 0
          • rishi
            rishi @admin last edited by

            @admin OK, let me get back to you on this.

            rishi 1 Reply Last reply Reply Quote 0
            • rishi
              rishi @rishi last edited by

              @rishi
              @admin I am not able to place order. Getting Response Code 400
              Response{protocol=http/1.1, code=400, message=, url=https://apiconnect.angelbroking.com/rest/secure/angelbroking/order/v1/placeOrder}
              Tried with different values of params
              {"duration":"DAY","quantity":1,"variety":"NORMAL","squareoff":"0","stoploss":"0","price":70,"tradingsymbol":"BHEL-EQ","exchange":"NSE","transactiontype":"Buy","symboltoken":"438","ordertype":"LIMIT","producttype":"INTRADAY"}

              Please resolve and let me know soon.

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

                @admin I was able to fix the issue. There was some parameter mismatch on my side.

                Sorry for the trouble. 🙏

                Regards.

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

                  Hi @rishi ok noproblem let us know if you face any issue.

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