History API Timeout

rajgarhiagautam
Recently the history API is timing out a lot. I have been using this API for almost two years now but didn't face this issue earlier.
When I am trying to history even for a single day, sometimes it is taking around 5 sec which is a lot because I have to get day history for 190 stocks every 5 min which will overflow the time limit. This worked perfectly fine till last month with day history getting fetched in under 2 seconds.
  • rakeshr
    I just checked on my end, and it's working fine with the same latency as before. Maybe you can inspect the local network of your setup.
    Also, is this specific to historical APIs? Or latency has increased in other API calls as well.
  • rajgarhiagautam
    This is specific to history API only. With timeout as 5 sec, it seems to be working fine. But when it is lower, it times out sporadically, not specific to any trade symbol.
  • rakeshr
    But when it is lower, it times out sporadically, not specific to any trade symbol.
    This may happen in rare instances for a few very illiquid BSE contracts, as explained here.
  • rajgarhiagautam
    I checked the link you have provided which talks about BSE instruments. But I am fetching only NSE instruments. Below are instruments and number of times their fetch failed today with respect to timeframes (5min, 60min, day).

    5minute
    Instruments Count
    5633 1
    6401 1
    67329 1
    70401 2
    81153 1
    98049 1
    197633 1
    245249 1
    257033 1
    257545 1
    260105 1
    260617 1
    261641 1
    262409 1
    262665 1
    264713 1
    267017 1
    267529 1
    268297 2
    268809 2
    271881 1
    289545 1
    325121 1
    345089 2
    359937 2
    424961 1
    511233 1
    589569 1
    794369 1
    806401 1
    871681 1
    884737 1
    897537 1
    969473 1
    1086465 1
    1346049 1
    1459457 2
    1790465 1
    2455041 1
    2714625 1
    2800641 1
    2952193 1
    2953217 1
    3431425 1
    3661825 1
    3834113 1
    3926273 1
    4561409 1
    4576001 1
    4583169 1
    4592385 1
    4600577 1
    4632577 1
    4879617 1
    4923905 2
    5181953 1
    5215745 1
    5436929 1
    6191105 1
    15000322 1
    15193858 1
    22281218 1
    22366466 1
    26428418 1
    30175490 1
    30405634 1
    30967042 1
    37201666 1
    38245634 1
    60minute
    1375489 1
    2884097 1
    2962177 1
    2971137 1
    day
    302337 1
    923649 1
    1112065 1
    2593537 1
    2598657 1
    2661633 1
Sign In or Register to comment.