Navigation

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

    Getting error on Algo order

    General Discussion
    4
    5
    47
    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
      konkavenkatesh last edited by

      Hi @admin

      After placing an ROBO order through api, I get error in the app Rejected orders saying "Rejected due to Algo order without Algo ID".

      Please help me how to fix this error?

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

        Hi @konkavenkatesh , Please share your code

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

          @admin Please find the below request which I used and let me know if I miss something.

          URL: https://apiconnect.angelbroking.com/rest/secure/angelbroking/order/v1/placeOrder

          Method: POST

          Request Headers:

          "Authorization": "Bearer My Auth Token",
          "Content-Type": "application/json",
          "Accept": "application/json",
          "X-UserType": "USER",
          "X-SourceID": "WEB",
          "X-ClientLocalIP": "MY LOCAL IP",
          "X-ClientPublicIP": "MY PUBLIC IP",
          "X-MACAddress": "MY MAC address",
          "X-PrivateKey": "MY API KEY"

          Request Body:

          {
          "exchange":"NSE",
          "tradingsymbol":"SBIN-EQ",
          "symboltoken":"3045",
          "quantity":1,
          "transactiontype":"BUY",
          "ordertype":"LIMIT",
          "price":"385",
          "variety":"ROBO",
          "producttype":"INTRADAY",
          "duration":"DAY",
          "stoploss":"380",
          "squareoff":"399"
          }

          Response:

          {
          data = {
          orderid = ORDERID;
          script = "SBIN-EQ";
          };
          errorcode = "";
          message = SUCCESS;
          status = 1;
          }

          1 Reply Last reply Reply Quote 0
          • P
            pkgaur last edited by

            What is meant by Error AB1019??

            728f268c-ce33-4797-8926-20a3745fbb6a-image.png

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

              @pkgaur

              You have all errors codes explained here

              https://smartapi.angelbroking.com/docs/Exceptions

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