@Mangesh You seem to be using the wrong trading symbol. Are you looking for a Weekly Banknifty contract(14th Jan expiry)? If yes, then this BANKNIFTY2111432600PE would be correct trading symbol. You can go through this thread to understand format of Weekly options instruments. Also, Exchange: Constants.EXCHANGE_NSE should be NFO for F&O contracts.
I know that bro... My question is how to trade in next week expiry ? I want to set 28 Jan 2021 CE or PE Expiry... (Or actually Jan monthly expiry for CE or PE)
Please read my query ... since 21 Jan is expired now i have changed 21121 to 21128...... but its not working
If it is the last week of the month then you need to look for monthly expiry, Since last week will not have a separate instrument. You can find all the instruments on the instruments master dump.
You seem to be using the wrong trading symbol. Are you looking for a Weekly Banknifty contract(14th Jan expiry)?
If yes, then this
BANKNIFTY2111432600PE
would be correct trading symbol. You can go through this thread to understand format of Weekly options instruments.Also,
Exchange: Constants.EXCHANGE_NSE
should beNFO
for F&O contracts.You can get all tradingsymbols in the instruments master dump.
BANKNIFTY2112131800CE
but today following is not working since its monthly expiry next so what should be correct symbol now ?
BANKNIFTY2112831800CE
actually Jan monthly expiry for CE or PE)
Please read my query ... since 21 Jan is expired now i have changed 21121 to 21128...... but its not working
You can find all the instruments on the instruments master dump.
You need to look for BANKNIFTY21JAN31800PE