I am not able to get the PE or CE instrument for bank nifty using kiteconnect.getInstrumnets(), even not able to get the LTP using tradingSymbol(BANKNIFTY20AUG21600CE) via calling getLTP() method.
Can you elaborate? The instrument master dump contains all the instruments that is traded for the day and it is the source of truth that is used across our platforms. The getLTP API also seems to be working fine. Can you paste the exact request and response?
com.zerodhatech.kiteconnect.kitehttp.exceptions.InputException at com.zerodhatech.kiteconnect.kitehttp.KiteResponseHandler.dealWithException(KiteResponseHandler.java:54) at com.zerodhatech.kiteconnect.kitehttp.KiteResponseHandler.handle(KiteResponseHandler.java:20) at com.zerodhatech.kiteconnect.kitehttp.KiteRequestHandler.postRequest(KiteRequestHandler.java:85) at com.zerodhatech.kiteconnect.KiteConnect.placeOrder(KiteConnect.java:291)
The instrument master dump contains all the instruments that is traded for the day and it is the source of truth that is used across our platforms.
The getLTP API also seems to be working fine. Can you paste the exact request and response?
Now i had another problem, I want to buy option but its throwing Unknown symbol error-
OrderParams orderParams = new OrderParams();
orderParams.quantity = this.QUANTITY;
orderParams.orderType = Constants.ORDER_TYPE_MARKET;
orderParams.tradingsymbol = "BANKNIFTY20AUG21600PE"
orderParams.product = Constants.PRODUCT_MIS;
orderParams.exchange = Constants.EXCHANGE_NSE;
orderParams.transactionType = Constants.TRANSACTION_TYPE_SELL;
orderParams.validity = Constants.VALIDITY_DAY;
Could you please look into this ASAP.
Thanks
com.zerodhatech.kiteconnect.kitehttp.exceptions.InputException
at com.zerodhatech.kiteconnect.kitehttp.KiteResponseHandler.dealWithException(KiteResponseHandler.java:54)
at com.zerodhatech.kiteconnect.kitehttp.KiteResponseHandler.handle(KiteResponseHandler.java:20)
at com.zerodhatech.kiteconnect.kitehttp.KiteRequestHandler.postRequest(KiteRequestHandler.java:85)
at com.zerodhatech.kiteconnect.KiteConnect.placeOrder(KiteConnect.java:291)