Skip to content

Commit f198c13

Browse files
committed
using the wrong date boundaries
1 parent c1d399b commit f198c13

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

alpaca_backtrader_api/alpacastore.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -469,7 +469,7 @@ def _t_candles(self, dataname, dtbegin, dtend, timeframe, compression,
469469
# (https://stackoverflow.com/a/1592837/2739124)
470470
cdl = cdl.loc[
471471
pytz.timezone(NY).localize(dtbegin):
472-
pytz.timezone(NY).localize(dtbegin)
472+
pytz.timezone(NY).localize(dtend)
473473
].dropna(subset=['high'])
474474
records = cdl.reset_index().to_dict('records')
475475
for r in records:

0 commit comments

Comments
 (0)