tastyware / tastytrade

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

Missing field in Strike #138

Closed tirthb closed 2 months ago

tirthb commented 2 months ago

Describe the bug NestedFutureOptionChainExpiration has a list of Strike. But the Strike is missing the streamer-symbol fields.

https://github.com/tastyware/tastytrade/blob/master/tastytrade/instruments.py#L130

Here is an example JSON for strike:

{ "strike-price": "4400.0", "call": "./ESU4 EW3N4 240719C4400", "call-streamer-symbol": "./EW3N24C4400:XCME", "put": "./ESU4 EW3N4 240719P4400", "put-streamer-symbol": "./EW3N24P4400:XCME" }

How to reproduce There is no error, just missing data in the json in the class.

Graeme22 commented 2 months ago

Well I'll be darned! I wonder how long this has been there? I'm guessing the API got changed at some point. I'll definitely be adding this, it's so much easier to use. Thanks!

I wonder if this applies to the normal option chain as well...