stas-prokopiev / binance_historical_data

python PYPI package to dump all needed crypto historical data from binance just by 2 lines of code
MIT License
71 stars 25 forks source link

The first run of data_dumper downloaded only partial data #9

Closed clime closed 1 year ago

clime commented 1 year ago

Hello,

I have used this script:

#!/usr/bin/env python3

from binance_historical_data import BinanceDataDumper

data_dumper = BinanceDataDumper(
    path_dir_where_to_dump=".",
    asset_class="spot",
    data_type="klines",
    data_frequency="3m",
)

data_dumper.dump_data()

Only partial data has been downloaded:

---> Found overall tickers: 2189
---> Filter to USDT tickers
------> Tickers left: 439
Download full data for 439 tickers: 
---> Data Frequency: 3m
---> Start Date: 20170101
---> End Date: 20230420
Tickers: 100%
Tried to dump data for 439 tickers:                                                                                                                                                                                                                                                                                                                                      
---> General stats:
------> NEW Data WAS dumped for 352 trading pairs
------> NEW Data WASN'T dumped for 87 trading pairs
---> New months saved:
------> For 438 tickers saved: 0 months
------> For 1 tickers saved: 68 months
---> New days saved:
------> For 348 tickers saved: 19 days
------> For 87 tickers saved: 0 days
------> For 2 tickers saved: 6 days
------> For 2 tickers saved: 18 days

Especially most of the monthly data is completely missing (only BTCUSDT has been downloaded) Why is that?

stas-prokopiev commented 1 year ago

Hi, I checked and I can confirm that it doesn't work, Sorry for your bad experience, I will try to fix it today

stas-prokopiev commented 1 year ago

Hi, I've released a fix, The new stable version is 0.1.11 Could you please try again and confirm that issue is fixed?