Placing option order using API

Hello All,

Newly started developing API application.

What is symbol to place option order using API.

Hi @Chaitanya_Kalyani

To place order using the Place Order API, you need to provide the following attributes as listed in the documentation

curl -X ‘POST’
-H ‘accept: application/json’
-H ‘Api-Version: 2.0’
-H ‘Content-Type: application/json’
-H ‘Authorization: Bearer access_token’
-d ‘{
“quantity”: 1,
“product”: “D”,
“validity”: “DAY”,
“price”: 0,
“tag”: “string”,
“instrument_token”: “NSE_EQ|INE848E01016”,
“order_type”: “MARKET”,
“transaction_type”: “BUY”,
“disclosed_quantity”: 0,
“trigger_price”: 0,
“is_amo”: false

I believe you are enquiring about the instrument_token or the symbol for which order can be placed.
You can find the complete list of instruments being traded on Upstox here.

Hope this helps.

Hello @AbhishekRathore ,

Thanks for immediate reply.

I want to place order for Options.

e.g I want to buy 21000CE of expiry 5th OCT 23. What will be the symbol for this call buy.

for equity I dont want to go with number. Can I place order with equity stock symbol?

HI @Chaitanya_Kalyani ,

Input for instruments in place order is accepted via instrument token

For example if you want to place order for NIFTY 23 OCT 21000 CE, you will find this instrument under complete or NSE instrument list

The instrument token for the same is NSE_FO|67360 as mentioned in the list.

The files get updated daily at the start of the day with all the instruments that are being traded on Upstox for that trading day.

Hope this helps.

Hello @AbhishekRathore ,

Its little bit difficult to check instrument every day.

It it possible with NSE symbol ?

If not then can you take this as feedback and update with NSE symbol.

I have updated trading application for Fyers and its very easy to place order with NSE symbol.

The intension is ease of placing order and independent of daily list update.

Hi @Chaitanya_Kalyani ,

For this version, we would be accepting instrument token in the place order which is also a standard practice among brokers.

However, having said that, we will take this as a feedback once we go for further enhancement.

Hello @AbhishekRathore ,

Please upgrade with NSE symbol.

But meanwhile can you please provide me logic for instrument key?

Can we place order without looking into excel sheet or without reading CSV?

If yes then how we can do that ?

HI @Chaitanya_Kalyani,

The standard procedure across our partners and users is to ingest this file and place order accordingly with the instrument token listed in the file.

Hello @AbhishekRathore ,

Thanks for immediate reply.

I found the way to implement order placement.