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

idle data_dumper.dump_data #12

Open Karol-Gawlowski opened 1 year ago

Karol-Gawlowski commented 1 year ago

Hi I tried running the below code and gave it some time but it does not download any data.

`import os

import datetime

from binance_historical_data import BinanceDataDumper

os.getcwd()

data_dumper = BinanceDataDumper( path_dir_where_to_dump= ".", # /data/binance asset_class="spot", # spot, um, cm data_type="klines", # aggTrades, klines, trades data_frequency="1h" )

print(data_dumper.get_list_all_trading_pairs())

data_dumper.dump_data()

data_dumper.dump_data( tickers = ["BTCUSDT"] , date_start = None, date_end = None,

# date_start=datetime.date(year=2022, month=1, day=1),
# date_end=datetime.date(year=2022, month=1, day=3),
is_to_update_existing=False

)`

console: ---> Found overall tickers: 2215 ---> Filter to asked tickers: 1 ------> Tickers left: 1 Download full data for 1 tickers: ---> Data Frequency: 1h ---> Start Date: 20170101 ---> End Date: 20230514 Tickers: 0%| | 0/1 [00:00<?, ?it/s] monthly files to download: 0%| | 0/69 [00:00<?, ?files/s]

running your tests/test_binance_historical_data.py gives the same results

stas-prokopiev commented 1 year ago

Hi, I've just run your code on my PC and it worked fine. Could you please provide more info for me to test: Which OS/python version are you using? Are you located in the US? (Binance block access for US users)

Karol-Gawlowski commented 1 year ago

i'm using python 3.8.16 on windows, not in the US. let me know if you need more details