Skip to content

Commit

Permalink
fix tickermap path
Browse files Browse the repository at this point in the history
  • Loading branch information
parmarsuraj99 committed Aug 19, 2023
1 parent a51749c commit 69a0f09
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions signalslite/data_downloader.py
Original file line number Diff line number Diff line change
Expand Up @@ -327,6 +327,8 @@ def update_daily_data(data_dir: str, daily_data_dir: str, EODHD_API_KEY: str = N

ticker_map_fname = f"{data_dir}/eodhd-map.csv"
if not os.path.exists(ticker_map_fname):
# make sure path to ticker map file exists
Path(data_dir).mkdir(parents=True, exist_ok=True)
print(f"Missing ticker map file: {ticker_map_fname}")
url = "https://raw.githubusercontent.com/parmarsuraj99/dsignals/main/db/eodhd-map.csv"
r = requests.get(url)
Expand Down

0 comments on commit 69a0f09

Please sign in to comment.