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

Session HTTPError #30

Open
RockStone opened this issue Nov 29, 2022 · 0 comments
Open

Session HTTPError #30

RockStone opened this issue Nov 29, 2022 · 0 comments

Comments

@RockStone
Copy link

Breaks on 3.11?

td_credentials = TdCredentials(
    client_id=client_id,
    redirect_uri=redirect_uri,
    credential_file='td_credentials.json'
)

td_client = TdAmeritradeClient(td_credentials)

market = td_client.market_hours().get_market_hours('EQUITY', trade_date)
print(market)
Traceback (most recent call last):
  File "sandbox.py", line 140, in <module>
    market = td_client.market_hours().get_market_hours('EQUITY', trade_date)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/td/rest/market_hours.py", line 125, in get_market_hours
    content = self.session.make_request(
              ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/td/session.py", line 194, in make_request
    raise requests.HTTPError()
requests.exceptions.HTTPError
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

No branches or pull requests

1 participant