Bug in historical candle data error handling

hi,

Historical minute data is available for last 1 month.I am able to get data properly for last 1 month.But when I am giving a “from date” before 1 month the api is throwing error.Please fix this.This issue was not there in v2..In V2 even if i was giving a date before 1 month it used to give data of last 1 month without any error..i would like to get the same in v3

Hi @Zachbot
If the from date is earlier than one month, you must also provide a to date, which should fall within one month from the from date.

For example here is the curl

curl --location 'https://api.upstox.com/v3/historical-candle/NSE_EQ%7CINE848E01016/minutes/1/2025-01-02/2025-01-01' \
--header 'Content-Type: application/json' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer {your_access_token}'

You can also refer to sample codes → Historical Candle Data V3 | Upstox Developer API