Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

get_orders_by_path formats HTTP request with datetimes while TDA expects dates #177

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

silasb
Copy link

@silasb silasb commented Feb 20, 2021

While debugging https://tda-api.readthedocs.io/en/stable/client.html#accessing-existing-orders I noticed that when you specify no arguments it would not return any data. After digging in I saw that https://developer.tdameritrade.com/account-access/apis/get/orders-0 only accepts yyyy-MM-dd format. Per their documentation I set the "from date" to be 60 days from today. When testing, it seems like they are lenient around this date.

Changes

  • When passing in no date arguments pass in dates
  • Set the from date to be 60 days ago

@silasb silasb changed the title get_orders_by_path uses datetimes while expecting dates get_orders_by_path formats HTTP request with datetimes while TDA expects dates Feb 20, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant