Crypto backtesting
Loading...
Searching...
No Matches
alpha Namespace Reference

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"

Variable Documentation

◆ api_key

alpha.api_key = os.environ.get('ALPHAVANTAGE_API_KEY')

Definition at line 5 of file alpha.py.

◆ data

alpha.data = r.json()

Definition at line 11 of file alpha.py.

◆ file

str alpha.file = f"{path}/Alpha-{token}.json"

Definition at line 19 of file alpha.py.

◆ path

str alpha.path = "/tmp/tokens"

Definition at line 14 of file alpha.py.

◆ r

alpha.r = requests.get(url)

Definition at line 10 of file alpha.py.

◆ token

str alpha.token = "IBM"

Definition at line 6 of file alpha.py.

◆ url

str alpha.url = f"https://www.alphavantage.co/query?function=TIME_SERIES_DAILY&symbol={token}&apikey={api_key}"

Definition at line 9 of file alpha.py.