Any help on what is my mistake here is appreciated.
Kite Request - POST https://api.kite.trade/orders/regular exchange=NFO&tradingsymbol=NFO%3aBANKNIFTY23OCT44000PE&transaction_type=SELL&quantity=30&product=MIS&order_type=MARKET
Response Error - { "status": "error", "message": "The instrument you are placing an order for has either expired or does not exist.", "data": null, "error_type": "InputException" }
2023-10-10T06:35:21.184Z 4a07475d-a356-4db2-8f56-d4212a1ba0f2 info DEBUG: POST https://api.kite.trade/orders/regular exchange=NFO&tradingsymbol=NFO%3aBANKNIFTY23OCT44000PE&transaction_type=SELL&quantity=30&product=MIS&order_type=MARKET
2023-10-10T06:35:21.212Z 4a07475d-a356-4db2-8f56-d4212a1ba0f2 info DEBUG: 400 { "status": "error", "message": "The instrument you are placing an order for has either expired or does not exist.", "data": null, "error_type": "InputException" }
You don't need to add an exchange name in the trading symbol, but just the trading symbol as available from the instrument list. Eg: tradingsymbol=BANKNIFTY23OCT44000PE
@rakeshr - is this true no matter which symbol I use? E.g. if I have to trade one of SBIN, SBIN23OCTFUT, or SBIN23OCT600CE, i don't need to prefix with NSE (for spot) or NFO (for derivative)? Thanks in advance
2023-10-10T06:35:21.184Z 4a07475d-a356-4db2-8f56-d4212a1ba0f2 info DEBUG: POST https://api.kite.trade/orders/regular
exchange=NFO&tradingsymbol=NFO%3aBANKNIFTY23OCT44000PE&transaction_type=SELL&quantity=30&product=MIS&order_type=MARKET
2023-10-10T06:35:21.212Z 4a07475d-a356-4db2-8f56-d4212a1ba0f2 info DEBUG: 400 {
"status": "error",
"message": "The instrument you are placing an order for has either expired or does not exist.",
"data": null,
"error_type": "InputException"
}
kite = new Kite(apikey, Debug: true);
tradingsymbol=BANKNIFTY23OCT44000PE