historical data reading for ACC

Rajkamal
Rajkamal edited October 2019 in Python client
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
    @sujith could you please check this one
  • rakeshr
    @Rajkamal
    We checked day candle above 3 day's and it's matching with Kite web chart data.
    {'date': datetime.datetime(2019, 10, 22, 0, 0, tzinfo=tzoffset(None, 19800)), 'open': 1551.9, 'high': 1556.95, 'low': 1523.8, 'close': 1535.25, 'volume': 934518}
    {'date': datetime.datetime(2019, 10, 23, 0, 0, tzinfo=tzoffset(None, 19800)), 'open': 1537.9, 'high': 1549.45, 'low': 1521, 'close': 1526.2, 'volume': 551466}
    {'date': datetime.datetime(2019, 10, 24, 0, 0, tzinfo=tzoffset(None, 19800)), 'open': 1536, 'high': 1539.85, 'low': 1504.3, 'close': 1519.1, 'volume': 598530}
    Can you let us know, all the params you are sending to fetch historical_data?
  • Rajkamal
    hello @rakeshr this is what I have been passing
    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
  • Rajkamal
    this is the instrument id '128104964'
  • rakeshr
    @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.
  • Rajkamal
    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..
  • rakeshr
    @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.
Sign In or Register to comment.