Navigation

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

    Invalid Order Variety - AB1008

    Test
    2
    3
    19
    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.
    • S
      sudhanshu757 last edited by

      POST API => /rest/secure/angelbroking/order/v1/placeOrder
      Payload:
      {
      "duration":"DAY",
      "quantity ":"1",
      "exchange":"NSE",
      "squareoff":"0",
      "stoploss":"0",
      "price":"0",
      "tradingsymbol":"SBIN-EQ",
      "variety ":"NORMAL",
      "symboltoken":"3045",
      "transactiontype":"BUY",
      "ordertype":"MARKET",
      "producttype":"INTRADAY"
      }

      Response :
      {
      "message": "Invalid Order Variety",
      "errorcode": "AB1008",
      "status": false,
      "data": null
      }

      *Please correct it, if there is mistake in Request payload.
      Use case: placing order to buy SBI on market price for intraday.

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

        Hi @sudhanshu757 Kindly find the req:
        {
        "variety":"NORMAL",
        "tradingsymbol":"SBIN-EQ",
        "symboltoken":"3045",
        "transactiontype":"BUY",
        "exchange":"NSE",
        "ordertype":"MARKET",
        "producttype":"INTRADAY",
        "duration":"DAY",
        "price":"0",
        "squareoff":"0",
        "stoploss":"0",
        "quantity":"1"
        }

        Res:
        {
        "status": true,
        "message": "SUCCESS",
        "errorcode": "",
        "data": {
        "script": "SBIN-EQ",
        "orderid": "210908000000144"
        }

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

          @admin said in Invalid Order Variety - AB1008:

          "variety":"NORMAL",
          "tradingsymbol":"SBIN-EQ",
          "symboltoken":"3045",
          "transactiontype":"BUY",
          "exchange":"NSE",
          "ordertype":"MARKET",
          "producttype":"INTRADAY",
          "duration":"DAY",
          "price":"0",
          "squareoff":"0",
          "stoploss":"0",
          "quantity":"1"

          Thank you very much, appreciate for your quick response. i think it was ,matter of sequence of key in payload

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