Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

idle data_dumper.dump_data #12

Open
Karol-Gawlowski opened this issue May 14, 2023 · 2 comments
Open

idle data_dumper.dump_data #12

Karol-Gawlowski opened this issue May 14, 2023 · 2 comments

Comments

@Karol-Gawlowski
Copy link

Karol-Gawlowski commented May 14, 2023

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
Copy link
Owner

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
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants