'interval exceeds limit: 35 days' when fetching historical data using node js.

kreakemp
kreakemp edited July 11 in API clients
I am using following info :
"instruments":["NSE:YESBANK"],
"time_frame":"1minute","from_date":"2018-07-01T00:00:00.000Z","to_date":"2019-07-01T00:00:00.000Z"

But now I am getting this error :
{ status: 'error',
message: 'interval exceeds limit: 35 days',
data: null,
error_type: 'InputException' }

What is the message mean here?
  • Imran
    for historical API there is a limit of the length of data we can ask for.
    for 1 minute we can ask for 1-month data
    for 1 year, 1-minute candlestick data I use this logic.

    ask data for jan2018 - feb2018 and store in some format
    ask data for feb2018 - march 2018 and add data in that format
    ask data for March 2018 - April 2018 add data in that format...
  • sujith
    You can follow up here.
This discussion has been closed.