|
Crypto backtesting
|
Variables | |
| api_key = os.environ.get('ALPHAVANTAGE_API_KEY') | |
| str | token = "IBM" |
| str | url = f"https://www.alphavantage.co/query?function=TIME_SERIES_DAILY&symbol={token}&apikey={api_key}" |
| r = requests.get(url) | |
| data = r.json() | |
| str | path = "/tmp/tokens" |
| str | file = f"{path}/Alpha-{token}.json" |