Closed hossain93 closed 2 years ago
It's beacuse you set end date. API check for oldest available data, build dataset with range from [OLDEST_AVAILABLE_DATE] to your [toDate] and return it. It's mean, that api build dataset from 2020.06.20 to 2022.02.02
To fix it - set fromDate by toDate
I get Historical Data with
client.get_historical_klines
but when I usetoDate = str(datetime.datetime.strptime('02/02/2022', '%d/%m/%Y'))
to get data for today I get below data but it is for date 2020-06-20 how solve this problemexample pairs MKRUSDT SNXUSDT DOTUSDT DEFIUSDT YFIUSDT BALUSDT CRVUSDT TRBUSDT YFIIUSDT