Navigation

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

    Getting error in placing limit order

    Test
    0
    3
    10
    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.
    • M
      mangeshraut27 last edited by

      I am trying to place limit order and getting below error.
      @admin any help will be highly appreciated.

      Request :
      {
      "variety": "NORMAL",
      "tradingsymbol": "TATASTEEL-EQ",
      "symboltoken": "3499",
      "transactiontype": "BUY",
      "exchange": "NSE",
      "ordertype": "LIMIT",
      "producttype": "DELIVERY",
      "duration": "DAY",
      "price": "130.30",
      "triggerprice": "0",
      "squareoff": "0",
      "stoploss": "0",
      "trailingStopLoss": "0",
      "quantity": "1",
      "disclosedquantity": "1",
      "ordertag": "test"
      }

      Response:
      {"status":false,"message":"INVALID PARAMETERS","errorcode":"AB1007","data":{"script":"TATASTEEL-EQ","orderid":null,"uniqueorderid":"fb3cf78b-86d7-4ece-afda-a465da17d0e3"}}

      M 1 Reply Last reply Reply Quote 0
      • M
        Moderator_2 @mangeshraut27 last edited by

        Hi @mangeshraut27

        Apologies for delayed response.
        Kindly share us the client code and header passed to analyze on this issue.

        Thanks & Regards,
        SmartAPI team

        M 1 Reply Last reply Reply Quote 0
        • M
          mangeshraut27 @Moderator_2 last edited by

          @Moderator_2 said in Getting error in placing limit order:

          Hi @mangeshraut27

          Apologies for delayed response.
          Kindly share us the client code and header passed to analyze on this issue.

          Thanks & Regards,
          SmartAPI team

          I have found resolution on this. I was using omitempty tag in golang which was causing this issue.
          To all those who are facing this issue in Golang, do not use omitempty in struct tag

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