Skip to content

Commit

Permalink
Clarify config.yaml.
Browse files Browse the repository at this point in the history
  • Loading branch information
skyte committed Oct 17, 2021
1 parent 4d3b0a3 commit 0508f24
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion config.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
# Data Retrieval
# Available Sources: YAHOO, TD_AMERITRADE
DATA_SOURCE: YAHOO

# Not needed if you use YAHOO
API_KEY: Your_API_Key
TICKERS_API: "https://api.tdameritrade.com/v1/marketdata/%s/pricehistory"

# Which Ticker should be the reference for performance?
REFERENCE_TICKER: SPY
Expand Down
2 changes: 1 addition & 1 deletion rs_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ def cfg(key):
return None

API_KEY = cfg("API_KEY")
TD_API = cfg("TICKERS_API")
TD_API = "https://api.tdameritrade.com/v1/marketdata/%s/pricehistory"
PRICE_DATA_OUTPUT = os.path.join(DIR, "data", "price_history.json")
REFERENCE_TICKER = cfg("REFERENCE_TICKER")
DATA_SOURCE = cfg("DATA_SOURCE")
Expand Down

0 comments on commit 0508f24

Please sign in to comment.