refactor(Project): move out load_data to utils, rename fetch_data to run_fetch_data, got classifiers to work (#38)

This commit is contained in:
Mark Aron Szulyovszky
2021-12-17 17:41:50 +01:00
committed by GitHub
parent cc7061b456
commit 0963df2087
94 changed files with 9704 additions and 84787 deletions
+22
View File
@@ -0,0 +1,22 @@
#%%
import pandas as pd
from utils.get_prices import get_crypto_price_crypto_compare, get_stock_price_av
#%%
crypto_tickers = ["BTC", "ETH", "BNB", "ADA", "SOL", "XRP", "DOT", "LTC", "UNI", "TRX", "XLM", "BCH", "FIL", "ETC", "THETA", "XTZ"]
etf_tickers = ["GLD", "IEF", "TLT", "SPY", "QQQ"]
#%%
for ticker in etf_tickers:
print("Fetching ", ticker)
df = get_stock_price_av(ticker, "2017-11-10")
df.to_csv(f"data/{ticker}.csv", index=True)
for src_ticker in crypto_tickers:
print("Fetching ", src_ticker, "USD")
df = get_crypto_price_crypto_compare(src_ticker, "USD", 1500)
df.to_csv(f"data/{src_ticker}_USD.csv", index=True)