Skip to content

Instantly share code, notes, and snippets.

@HumanRupert
Created June 12, 2021 06:04
Show Gist options
  • Save HumanRupert/8b58043512ee1a22d770200991513d99 to your computer and use it in GitHub Desktop.
Save HumanRupert/8b58043512ee1a22d770200991513d99 to your computer and use it in GitHub Desktop.
# src/ms/controller.py
tickers: List[Constituent] = convert_csv_to_records(
"data/tickers.csv", Constituent)
dt_to_milli = lambda dt: datetime.timestamp(dt) * 1000
start = dt_to_milli(datetime(2018, 1, 1))
end = dt_to_milli(datetime(2020, 1, 1))
extract_n_store_cup_with_handles(start, end, tickers)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment