It looks like you're new here. If you want to get involved, click one of these buttons!
{'data': {'NSE:3MINDIA': {'instrument_token': 121345,
'last_price': 20824.5,
'ohlc': {'close': 20824.5, 'high': 20990, 'low': 20600.1, 'open': 20780}},
'NSE:8KMILES': {'instrument_token': 2830849,
'last_price': 151.75,
'ohlc': {'close': 151.75, 'high': 167.35, 'low': 151.45, 'open': 164.2}},
'NSE:ABB': {'instrument_token': 3329,
'last_price': 1345.6,
'ohlc': {'close': 1345.6, 'high': 1358, 'low': 1304.95, 'open': 1305}},
'NSE:ACC': {'instrument_token': 5633,
'last_price': 1458.65,
'ohlc': {'close': 1458.65, 'high': 1467, 'low': 1450.4, 'open': 1455}},
'NSE:AIAENG': {'instrument_token': 3350017,
'last_price': 1659.3,
'ohlc': {'close': 1659.3,
'high': 1679.8,
'low': 1646.35,
'open': 1667.05}}},
'status': 'success'}
You can try it now.
You need to use historical data to fetch historical OHLC data.
For live market strategies, we suggest using websocket data to generate OHLC data at your end.
You can get started from here.
Rest assured am not pooling API and using WebSocket as required.
The getOHLC will return previous close and last traded price.