mirror of
https://github.com/webclinic017/drift.git
synced 2026-07-27 18:57:55 +00:00
c9f8ed1304
* feat(Data): added script to download data from binance * feat(Data): saving unified parquet file/loading * fix(Config): tweak the cusum filter's threshold * fix(Dependencies): added binance_historical_data
16 lines
363 B
Python
16 lines
363 B
Python
#%%
|
|
import pandas as pd
|
|
from data_loader.get_prices import get_crypto_price_crypto_compare, get_stock_price_av
|
|
|
|
#%%
|
|
|
|
etf_tickers = ["GLD", "IEF", "TLT", "SPY", "QQQ"]
|
|
etf_path = "data/daily_etf"
|
|
|
|
#%%
|
|
for ticker in etf_tickers:
|
|
print("Fetching ", ticker)
|
|
df = get_stock_price_av(ticker, "2017-11-10")
|
|
|
|
df.to_csv(f"{etf_path}/{ticker}.csv", index=True)
|