cckn1ght / crypto-data

0 stars 1 forks source link

Decode error for coin-futures market, while spot market is ok. #1

Closed xiangnanyue closed 2 months ago

xiangnanyue commented 2 months ago

$ ../crypto-data.exe get-klines --market coin-futures --interval 1d --start-time "2023-08-28 11:00:00" --end-time "2024-07-29 11:00:00" --all

Start time: 2023-08-28 11:00:00 UTC, End time: 2024-07-29 11:00:00 UTC, saving files to: \?\C:\Users\yuexn\PycharmProjects\crypto-model\release\crypto_futures_daily thread 'main' panicked at src\utils.rs:166:60: Can not get klines for BTCUSD_PERP: reqwest::Error { kind: Decode, source: Error("invalid type: map, expected a sequence", line: 1, column: 0) } note: run with RUST_BACKTRACE=1 environment variable to display a backtrace

cckn1ght commented 2 months ago

For coin-futures: "The difference between startTime and endTime can only be up to 200 days" https://binance-docs.github.io/apidocs/delivery/en/#kline-candlestick-data