tastyware / tastytrade

An unofficial Python SDK for Tastytrade!
MIT License
98 stars 33 forks source link

pydantic errors when I try to place order #129

Closed fogsy closed 4 months ago

fogsy commented 4 months ago

Describe the bug im using pydantic 2.6.3 and tastytrade latest 6.7

How to reproduce I cant seem to pass pydantic validation for everything i print out all the values everything is correct but pydantic throws errors any version I should use to work with tastytrade 6.7 ? any ideas of why it keeps causing value issues that are clearly defined. this happens when i try to place an order this is an example /.local/lib/python3.11/site-packages/pydantic/_internal/_config.py:322: UserWarning: Valid config keys have changed in V2:

Graeme22 commented 4 months ago

I see you closed this but for posterity: pydantic version needs to be 1, 2 has lots of breaking changes. If you install tastytrade through pip that should be taken care of.