The new httpx dependency introduced in version 8.1 has broken any requests involving enum parameters, like tastytrade.order.InstrumentType.
This commit reverts back to requests which handled these better, but still uses a session for HTTP connection pooling.
Pre-merge checklist
[x] 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.
Description
The new
httpx
dependency introduced in version 8.1 has broken any requests involving enum parameters, liketastytrade.order.InstrumentType
. This commit reverts back torequests
which handled these better, but still uses a session for HTTP connection pooling.Pre-merge checklist
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.