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

Prepare v8.1: use httpx Session, prepare for async version, combine Production and Certification sessions #158

Merged
merged 4 commits into from
Jul 29, 2024

Conversation

Graeme22
Copy link
Contributor

prepare v8.1 release: use connection pooling, simplify code

Description

Prepares v8.1 release. Replaces requests dependency with httpx, and uses a single session for all requests, allowing for the benefits of HTTP connection pooling.
Additionally, ProductionSession and CertificationSession have been combined into a single Session class, and the same functionality is obtained using the parameter is_test in the constructor.

Pre-merge checklist

  • Passing tests LOCALLY
  • New tests added (if applicable)

Please note that, in order to pass the tests, you'll need to set up your Tastytrade credentials as repository secrets on your local fork. Read more at CONTRIBUTING.md.

@Graeme22 Graeme22 merged commit 0128eee into master Jul 29, 2024
1 check failed
@Graeme22 Graeme22 deleted the httpx branch July 29, 2024 20:16
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.

1 participant