Issue with fetching historical data since 24/09 6:30 pm

rajtk
Kindly check @ your end, if there are some issue with fetching Historical Data ( bandwidth issue at your end, too many requests to your servers etc.). OR please advise if you have made some changes to the rule for fetching historical data. This issue is happening since yesterday evening and continues today as well. "data fetching failed Too many requests" exception being raised. I fetch day and 5 mins data and never had an issue at all for all these months until yesterday. It fetches the data very sporadically across scripts and across timeframe.

BANKBARODA Historical 1 Day data fetching failed Too many requests
BANKBARODA Historical 5MIN data fetching failed Too many requests
LUPIN Historical 5MIN data fetching failed Too many requests
HCLTECH Historical 5MIN data fetching failed Too many requests
EXIDEIND Historical 5MIN data fetching failed Too many requests
PNB Historical 1 Day data fetching failed Too many requests
PNB Historical 5MIN data fetching failed Too many requests
MOTHERSUMI Historical 1 Day data fetching failed Too many requests
MOTHERSUMI Historical 5MIN data fetching failed Too many requests
TECHM Historical 5MIN data fetching failed Too many requests
CASTROLIND Historical 5MIN data fetching failed Too many requests
BHEL Historical 1 Day data fetching failed Too many requests
ICICIBANK Historical 1 Day data fetching failed Too many requests
ICICIBANK Historical 5MIN data fetching failed Too many requests
GLENMARK Historical 5MIN data fetching failed Too many requests
HINDPETRO Historical 1 Day data fetching failed Too many requests
TATAMTRDVR Historical 1 Day data fetching failed Too many requests
TATAMTRDVR Historical 5MIN data fetching failed Too many requests
AXISBANK Historical 1 Day data fetching failed Too many requests
AXISBANK Historical 5MIN data fetching failed Too many requests
ADANIPORTS Historical 5MIN data fetching failed Too many requests
PETRONET Historical 1 Day data fetching failed Too many requests
PETRONET Historical 5MIN data fetching failed Too many requests
ZEEL Historical 5MIN data fetching failed Too many requests
UPL Historical 1 Day data fetching failed Too many requests
UPL Historical 5MIN data fetching failed Too many requests
CIPLA Historical 5MIN data fetching failed Too many requests
GAIL Historical 1 Day data fetching failed Too many requests
Tagged:
  • rajtk
    Imran, the code will post 1 request every 3 secs, so there is no issue here.
  • rajtk
    let me rephrase the issue - we are sending only 1 api request to fetch historical data every 3 seconds for about 60 scripts. It was working fine until last Friday . The exceptions have increased and is very random while fetching historical data since yesterday evening and today morning . The exception is " Too many requests " but I am just sending 1 request every 3 seconds.
    Please look in the issue.
  • yousuf
    I am facing same problem today. Unable to start trading system today, because of network exceptions in fetching historical data.
  • sujith
    Hi @rajtk, @yousuf,
    Are you hosting your machine somewhere or running locally?
    If locally then can you give more description about your network?
  • yousuf
    yousuf edited September 2018
    @sujith,

    my home computer (running locally), directly connected to broadband @ 50mbps, There is a second connection of mobile data, to fall back on, and also a third , using the speedify software.
    I have tried with disabling firewall and antivirus.
    And the issue is that it works for a while ( for a fetch or two of the historical data) and gives exceptions for the rest.

    I fetch the current days candles in different timeframes, with a gap of more than 5 seconds between each fetch, and a gap of 100 seconds between the fetch cycle. I mostly , only fetch data for nifty and banknifty.

  • rajtk
    just tried fetching historical data , it works fine . Thanks
This discussion has been closed.