zerodha / pykiteconnect

The official Python client library for the Kite Connect trading APIs
MIT License
965 stars 462 forks source link

kite.ltp and kite.quate not working #194

Closed sandipawar closed 1 month ago

sandipawar commented 1 month ago

kite.ltp and kite.quate not working any solution ??

vzanvar-wdc commented 1 month ago

Can you post a code snippet?

sandipawar commented 1 month ago

kite = KiteConnect(' -- ')

print("Net Balance : ", kite.margins()["equity"]['net']) ' >> Not working
kite.ltp("NSE:NIFTY 50")["NSE:NIFTY 50"]["last_price"] ' >> Not working kite.quote("NSE:NIFTY 50")["NSE:NIFTY 50"]['ohlc']['close'] ' >> Not working

vzanvar-wdc commented 1 month ago

Have you generated the access token? i.e, kite..generate_session() should be called.

This example would work.

sandipawar commented 1 month ago

sorry i got it problem, i think i used private python library like - from kiteext import KiteExt

sandipawar commented 1 month ago

thank you i understand