Skip to content

Commit

Permalink
User 1971 as the default min date for order queries (#248)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexgolec authored Jul 24, 2021
1 parent b5293cc commit 97af7c6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tda/client/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ def _make_order_query(self,

if from_entered_datetime is None:
from_entered_datetime = datetime.datetime(
year=1900, month=1, day=1)
year=1971, month=1, day=1)
if to_entered_datetime is None:
to_entered_datetime = datetime.datetime.utcnow()

Expand Down
2 changes: 1 addition & 1 deletion tests/client_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
TRANSACTION_ID = 400000
WATCHLIST_ID = 5000000

MIN_ISO = '1900-01-01T00:00:00+0000'
MIN_ISO = '1971-01-01T00:00:00+0000'

NOW_DATETIME = datetime.datetime(2020, 1, 2, 3, 4, 5)
NOW_DATE = datetime.date(2020, 1, 2)
Expand Down

0 comments on commit 97af7c6

Please sign in to comment.