Token for script belongs to series "BE"

Kirubakaran
Hi

How to retrive token for the symbols which belong to "BE" Series
For example : Kirloskar Brothers Limited (KIRLOSBROS) belongs to series "BE"

String[] instruments = {"NSE:"+KIRLOSBROS};
quotes = kiteConnect.getQuote(instruments)
token = quotes.get(nseSymbol).instrumentToken+"";

When i try to retrive the token using the above code, i am getting the below error message.



Error message:

Jul 14, 2021 5:35:47 PM okhttp3.internal.platform.Platform log
INFO: <-- 400 https://api.kite.trade/instruments/historical//week?continuous=0&amp;from=2021-01-13 00:00:00&amp;oi=1&amp;to=2021-07-14 00:00:00 (412ms)
Jul 14, 2021 5:35:47 PM okhttp3.internal.platform.Platform log
INFO: date: Wed, 14 Jul 2021 12:05:51 GMT
Jul 14, 2021 5:35:47 PM okhttp3.internal.platform.Platform log
INFO: content-type: application/json
Jul 14, 2021 5:35:47 PM okhttp3.internal.platform.Platform log
INFO: content-length: 86
Jul 14, 2021 5:35:47 PM okhttp3.internal.platform.Platform log
INFO: cf-cache-status: DYNAMIC
Jul 14, 2021 5:35:47 PM okhttp3.internal.platform.Platform log
INFO: expect-ct: max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"
Jul 14, 2021 5:35:47 PM okhttp3.internal.platform.Platform log
INFO: strict-transport-security: max-age=15552000; includeSubDomains
Jul 14, 2021 5:35:47 PM okhttp3.internal.platform.Platform log
INFO: server: cloudflare
Jul 14, 2021 5:35:47 PM okhttp3.internal.platform.Platform log
INFO: cf-ray: 66ea9f21fa4b06a4-MAA
Jul 14, 2021 5:35:47 PM okhttp3.internal.platform.Platform log
INFO:
Jul 14, 2021 5:35:47 PM okhttp3.internal.platform.Platform log
INFO: {"status":"error","message":"invalid token","data":null,"error_type":"InputException"}
Jul 14, 2021 5:35:47 PM okhttp3.internal.platform.Platform log
INFO: <-- END HTTP (86-byte body)
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.getRequest(KiteRequestHandler.java:70)
at com.zerodhatech.kiteconnect.KiteConnect.getHistoricalData(KiteConnect.java:760)
at ndamo.kpr.positional.NDamoPositional.updateUnderlyingAsset(NDamoPositional.java:271)
at ndamo.kpr.positional.NDamoPositional$MyRunnable.run(NDamoPositional.java:250)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
at java.base/java.lang.Thread.run(Thread.java:834)

Thanks
Kirubakaran D.
  • rakeshr
    For example : Kirloskar Brothers Limited (KIRLOSBROS) belongs to series "BE"
    You will have to add BE suffix to the symbol. This will be correct symbol: KIRLOSBROS-BE
  • Kirubakaran
    Hi

    I tried appending "-BE" to the symbol, still i am getting the same error

    Thanks
    Kirubakaran D
  • Kirubakaran
    Please ignore my previous comment, I am getting it now after appending.
    Thanks
This discussion has been closed.