Skip to content

Commit

Permalink
fix, start and end params
Browse files Browse the repository at this point in the history
  • Loading branch information
camelpac committed Mar 4, 2021
1 parent 2224654 commit 3b0a398
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion alpaca_backtrader_api/alpacastore.py
Original file line number Diff line number Diff line change
Expand Up @@ -589,8 +589,9 @@ def _resample(df):

if not start:
timeframe = _granularity_to_timeframe(granularity)
start = end - timedelta(days=1)
response = self.oapi.get_bars(dataname,
timeframe, start, curr)._raw
timeframe, start, end)._raw
else:
response = _iterate_api_calls()
for bar in response:
Expand Down

0 comments on commit 3b0a398

Please sign in to comment.