You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Description of Bug get_orders_by_path is returning an empty list [] instead of a list of my orders. If I use the tool on TDA's page for this function, it successfully returns my orders. I'm also able to use get_account with the ORDERS field to return my orders.
Code to Reproduce
from tda import auth, client
import json
import config
try:
c = auth.client_from_token_file(config.token_path, config.api_key)
except FileNotFoundError:
from selenium import webdriver
with webdriver.Chrome(executable_path='/home/user/chromedriver') as driver:
c = auth.client_from_login_flow(
driver, config.api_key, config.redirect_uri, config.token_path)
def getOrders(client):
r = client.get_orders_by_path(config.account_id)
return r.json()
r = getPutOrders(client=c)
print(json.dumps(r, indent=4))
Expected Behavior
Return a list populated with my orders.
Actual Behavior
Returns an empty list.
Error/Exception Log, If Applicable
N/A
The text was updated successfully, but these errors were encountered:
ivnle
changed the title
get_orders_by_path returns empty listget_orders_by_path returns empty list
Mar 26, 2021
For anyone else with the same issue, a temporary work around is to use c.get_order("", config.account_id). This is equivalent to using the Get Orders By Path endpoint.
Description of Bug
get_orders_by_path
is returning an empty list[]
instead of a list of my orders. If I use the tool on TDA's page for this function, it successfully returns my orders. I'm also able to useget_account
with theORDERS
field to return my orders.Code to Reproduce
Expected Behavior
Return a list populated with my orders.
Actual Behavior
Returns an empty list.
Error/Exception Log, If Applicable
N/A
The text was updated successfully, but these errors were encountered: