tradestation-python-api icon indicating copy to clipboard operation
tradestation-python-api copied to clipboard

Account_Orders fix

Open eyesuk opened this issue 3 years ago • 0 comments

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")

eyesuk avatar Jul 04 '21 18:07 eyesuk