Invalid Order Variety - AB1008
-
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. -
@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
-
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"
}