Getting error in placing limit order
-
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"}} -
@Moderator_2 said in Getting error in placing limit order:
Apologies for delayed response.
Kindly share us the client code and header passed to analyze on this issue.Thanks & Regards,
SmartAPI teamI 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 -
Apologies for delayed response.
Kindly share us the client code and header passed to analyze on this issue.Thanks & Regards,
SmartAPI team