Can any one share the example of payload that place an ORDER for Bank Nifty Option… like buy a CE or buy a PE.
POST Request:
POST https://api.upstox.com/v2/order/place
POST data:
{
“quantity”: 15,
“product”: “I”,
“validity”: “DAY”,
“price”: 0,
“tag”: “string”,
“instrument_token”: “NSE_FO|44164”,
“order_type”: “MARKET”,
“transaction_type”: “BUY”,
“disclosed_quantity”: 0,
“trigger_price”: 0,
“is_amo”: false
}
@Subbu_N Please try below working example to place an order for Bank Nifty option, Here mentioned instrumentKey corresponds to BANKNIFTY 48000 CE
It seems you are also trying with correct payload, let us know if you are facing any issue with the payload you shared?
curl --location 'https://api.upstox.com/v2/order/place' \
--header 'Content-Type: application/json' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer {your_access_token}' \
--data '{
"quantity": 15,
"product": "I",
"validity": "DAY",
"price": 0,
"tag": "string",
"instrument_token": "NSE_FO|41617",
"order_type": "MARKET",
"transaction_type": "BUY",
"disclosed_quantity": 0,
"trigger_price": 0,
"is_amo": false
}'
Thanks!