Skip to content

Commit

Permalink
Fix some style
Browse files Browse the repository at this point in the history
  • Loading branch information
oerlikon committed May 15, 2023
1 parent 1b6c3c3 commit 3a39e20
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
# prep

Historical market data prep tool for synth.
4 changes: 3 additions & 1 deletion actions/high.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,9 @@ def __process_arg(arg: str, symbol: Symbol, store: Store) -> str | Exception | N
df["Date"] = pd.to_datetime(df["Date"], format="%Y%m%d %H:%M")
df["Date"] = df["Date"].dt.tz_localize(tzinfo(symbol.time))
for date, gf in df.groupby(df["Date"].dt.date):
store.put(Block(symbol.name, symbol.market, cast(datetime.date, date), gf))
err = store.put(Block(symbol.name, symbol.market, cast(datetime.date, date), gf))
if err is not None:
return err
return None


Expand Down

0 comments on commit 3a39e20

Please sign in to comment.