When the following code is executed:
resp = client.get_orders_for_account(account_hash,from_entered_datetime=datetime.now() - timedelta(days=8),to_entered_datetime=datetime.now(),)
gives the following error:
Traceback (most recent call last):File "/Users/developer/Code/python/tg/schwab/examples.py", line 61, in <module>resp = client.get_orders_for_account(^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^File "/Users/developer/.pyenv/versions/tg/lib/python3.11/site-packages/schwab/client/base.py", line 258, in get_orders_for_accountreturn self._get_request(path, self._make_order_query(^^^^^^^^^^^^^^^^^^^^^^^File "/Users/developer/.pyenv/versions/tg/lib/python3.11/site-packages/schwab/client/base.py", line 222, in _make_order_query'toEnteredTime': self._format_datetime(^^^^^^^^^^^^^^^^^^^^^AttributeError: 'Client' object has no attribute '_format_datetime'. Did you mean: '_format_date_as_iso'?
When the following code is executed:
resp = client.get_orders_for_account(
account_hash,
from_entered_datetime=datetime.now() - timedelta(days=8),
to_entered_datetime=datetime.now(),
)
gives the following error:
Traceback (most recent call last):
File "/Users/developer/Code/python/tg/schwab/examples.py", line 61, in <module>
resp = client.get_orders_for_account(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/developer/.pyenv/versions/tg/lib/python3.11/site-packages/schwab/client/base.py", line 258, in get_orders_for_account
return self._get_request(path, self._make_order_query(
^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/developer/.pyenv/versions/tg/lib/python3.11/site-packages/schwab/client/base.py", line 222, in _make_order_query
'toEnteredTime': self._format_datetime(
^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'Client' object has no attribute '_format_datetime'. Did you mean: '_format_date_as_iso'?
Corrected in PR#22