Skip to content

Commit

Permalink
store:drop_samples: fix if missing bars, don't fail
Browse files Browse the repository at this point in the history
  • Loading branch information
shlomiku committed Oct 23, 2020
1 parent 919d7ec commit 650680d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion alpaca_backtrader_api/alpacastore.py
Original file line number Diff line number Diff line change
Expand Up @@ -622,7 +622,7 @@ def _drop_early_samples(df):
let's drop earliest samples
"""
for i, b in df.iterrows():
if i.time() == dtime(9, 30):
if i.time() >= dtime(9, 30):
return df[i:]

def _resample(df):
Expand Down

0 comments on commit 650680d

Please sign in to comment.