F&0 Prices using getQuote

knvgovind
Hello,

I am trying to pull prices using getQuote method by passing instrument, but not successful. is it Symbol error? below is the log

Aug. 31, 2021 8:08:52 P.M. okhttp3.internal.platform.Platform log
INFO: --> GET https://api.kite.trade/quote?i=NFO:NIFTYSEPFUT
Aug. 31, 2021 8:08:52 P.M. okhttp3.internal.platform.Platform log
INFO: User-Agent: javakiteconnect/3.0.0
Aug. 31, 2021 8:08:52 P.M. okhttp3.internal.platform.Platform log
INFO: X-Kite-Version: 3
Aug. 31, 2021 8:08:52 P.M. okhttp3.internal.platform.Platform log
INFO: --> END GET
Aug. 31, 2021 8:08:52 P.M. okhttp3.internal.platform.Platform log
INFO: <-- 200 https://api.kite.trade/quote?i=NFO:NIFTYSEPFUT (400ms)
Aug. 31, 2021 8:08:52 P.M. okhttp3.internal.platform.Platform log
INFO: date: Wed, 01 Sep 2021 00:08:52 GMT
Aug. 31, 2021 8:08:52 P.M. okhttp3.internal.platform.Platform log
INFO: content-type: application/json
Aug. 31, 2021 8:08:52 P.M. okhttp3.internal.platform.Platform log
INFO: content-length: 30
Aug. 31, 2021 8:08:52 P.M. okhttp3.internal.platform.Platform log
INFO: cf-cache-status: DYNAMIC
Aug. 31, 2021 8:08:52 P.M. okhttp3.internal.platform.Platform log
INFO: expect-ct: max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"
Aug. 31, 2021 8:08:52 P.M. okhttp3.internal.platform.Platform log
INFO: strict-transport-security: max-age=15552000; includeSubDomains
Aug. 31, 2021 8:08:52 P.M. okhttp3.internal.platform.Platform log
INFO: server: cloudflare
Aug. 31, 2021 8:08:52 P.M. okhttp3.internal.platform.Platform log
INFO: cf-ray: 687a443ef8882bbf-ORD
Aug. 31, 2021 8:08:52 P.M. okhttp3.internal.platform.Platform log
INFO:
Aug. 31, 2021 8:08:52 P.M. okhttp3.internal.platform.Platform log
INFO: {"status":"success","data":{}}
Aug. 31, 2021 8:08:52 P.M. okhttp3.internal.platform.Platform log
INFO: <-- END HTTP (30-byte body)
quotes.size():0
java.lang.NullPointerException: Cannot read field "lastPrice" because the return value of "java.util.Map.get(Object)" is null

Sign In or Register to comment.