Skip to content

Commit

Permalink
Merge pull request #51 from alpacahq/allOrdersHotfix
Browse files Browse the repository at this point in the history
fixing incorrect timestamp format going into trading_calendars
  • Loading branch information
ttt733 authored Nov 13, 2018
2 parents f05dbe9 + b33cb2f commit 7e52e50
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pylivetrader/backend/alpaca.py
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,7 @@ def all_orders(self, before=None, status='all', days_back=None):
# A session label refers to the market date that an order submitted
# at a given minute would be executed on. We'll need to keep track of
# this if the function is bounded by days_back.
start_session_label = self._cal.minute_to_session_label(start)
start_session_label = self._cal.minute_to_session_label(now)
reached_end_date = False

all_orders = {}
Expand Down

0 comments on commit 7e52e50

Please sign in to comment.