I am not able to get the PE or CE instrument using kiteconnect.getInstrumnets()


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.

I need the LTP for option prices.

  • sujith
    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?
  • pravinmangalam
    Hi I got the dump from getInstruments(), but earlier i was trying with getInstrument("NSE"); it does not return option data.

    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.

  • pravinmangalam
    Unknown `tradingsymbol`.

    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)
  • sujith
    You seem to be sending a wrong exchange. You need to send NFO as the exchange for NSE F&O instruments.
  • pravinmangalam
    Got it thank you soo muchh..
This discussion has been closed.