tradestation-python-api
tradestation-python-api copied to clipboard
Account_Orders fix
Hi Alex,
I was experiencing a few issues with getting account orders.
I made the changes below to the client.py in order to return the correct information.
Changed the page_number default value of 0 to 1 on line 789
Line 841-842
today = date(year=today.year, month=today.month, day=since)
date_format = today.strftime("%m/%d/%Y")
To:
refDate = today - timedelta(since)
date_format = refDate.strftime("%m-%d-%Y")