If anyone available online could you please help me to understand the historical data I received for ACC for last 3 days .. seems it is not matching with Kite.. same goes with 15min TF too.. May be I am missing something.. please help.
date open high low close volume 0 2019-10-22 00:00:00+05:30 1555.0 1556.7 1524.9 1534.95 53583 1 2019-10-23 00:00:00+05:30 1543.3 1549.0 1521.0 1525.10 18384 2 2019-10-24 00:00:00+05:30 1526.0 1539.9 1504.5 1520.00 18704
@Rajkamal Instrument id '128104964' is for BSE:ACC and for NSE:ACC instrument is 5633. 128104964,500410,ACC,ACC,0.0,,0.0,0.05,1,EQ,BSE,BSE You are passing BSE:ACC instrument_id to fetch historical_data but looking to NSE:ACC chart on kite web.
my bad... Thank you Rakesh... I am new to this.. one more info plz.. do we have any API that can give me mapping of instrument_id and stock name.. I run scanner for 50+ FO stocks and its getting difficult to relate them every time with the excel..
@Rajkamal You can fetch instruments dump once in start of a day and then map it accordingly to fetch instrument_id for required contract(50+FO contract) and then use it throughout a day.
We checked day candle above 3 day's and it's matching with Kite web chart data. Can you let us know, all the params you are sending to fetch historical_data?
hist_data = s.historical_data(stock, "2019-10-21", "2019-10-25", interval, continuous=0 )
From 2019-10-22 to 2019-10-25
date open high low close volume
0 2019-10-22 00:00:00+05:30 1555.00 1556.70 1524.90 1534.95 53583
1 2019-10-23 00:00:00+05:30 1543.30 1549.00 1521.00 1525.10 18384
2 2019-10-24 00:00:00+05:30 1526.00 1539.90 1504.50 1518.75 18705
3 2019-10-25 00:00:00+05:30 1520.05 1524.75 1506.65 1519.00 7295
Instrument id '128104964' is for BSE:ACC and for NSE:ACC instrument is 5633.
128104964,500410,ACC,ACC,0.0,,0.0,0.05,1,EQ,BSE,BSE
You are passing BSE:ACC instrument_id to fetch historical_data but looking to NSE:ACC chart on kite web.
You can fetch instruments dump once in start of a day and then map it accordingly to fetch instrument_id for required contract(50+FO contract) and then use it throughout a day.