Hi All, I am facing a weird error when I am firing margin API for Trading "tradingsymbol": "NIFTY15DEC18500CE" The below is the error message I am getting when using https://api.kite.trade/margins/basket?consider_positions=true { "message": "error creating rmscore position: instrument not found: NFO:NIFTY15DEC18500CE", "data": null, "error_type": "InputException" }
The API is working perfectly for "tradingsymbol": "NIFTY22DEC18500CE" and gives a valid response I find the option chain there for 15Dec on NSE website, so a bit surprised.
You are using the wrong tradingsymbol. Are you looking for a nifty weekly contract? NIFTY22D1518500CE Go through this thread to know the format for weekly instruments. Fetch the complete list of trading symbols for the day using the instrument list APIs.
Yes , I was looking for the weekly expiry. Looks like I missed locating this by oversight, though I had opened "instruments.csv". Apparently the other format worked for 22Dec Weekly expiry , so was a bit puzzled.
Are you looking for a nifty weekly contract?
NIFTY22D1518500CE
Go through this thread to know the format for weekly instruments. Fetch the complete list of trading symbols for the day using the instrument list APIs.
Looks like I missed locating this by oversight, though I had opened "instruments.csv". Apparently the other format worked for 22Dec Weekly expiry , so was a bit puzzled.
I stand corrected now.
Thanks and Regards
Prav