tastyware / tastytrade

An unofficial, sync/async Python SDK for Tastytrade!
https://tastyworks-api.rtfd.io
MIT License
126 stars 43 forks source link

go back to requests to fix problems with httpx #159

Closed Graeme22 closed 4 months ago

Graeme22 commented 4 months ago

Description

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

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.