upstox / upstox-python

Official Python SDK for accessing Upstox API
MIT License
135 stars 91 forks source link

How to use the SDK to get a ticker symbol's OHLC ? #74

Closed arsoni20 closed 1 month ago

arsoni20 commented 4 months ago

Hi,

Could anyone please let me know how can i get OHLC for a ticker symbol like TATASTEEL via uplink API ?

Thanks

KetanGupta12 commented 1 month ago

Hello @arsoni20,

To begin, you will need to locate the instrument key for the specified symbol from the instruments file.

Once you have the instrument key, you can call the LTP Market Quote API using this key. Alternatively, if you require a continuous feed of LTP, you can connect to the Market Feeder WebSocket.

If you need further clarification, please raise a query on the community forum. We'd be happy to assist you!

Thank you