tastyware / tastytrade

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

Feature request: Non-Blocking DXLinkStreamer.get_event #148

Closed Quenos closed 1 month ago

Quenos commented 1 month ago

Describe the feature Use case:

In the current implementation of the streamer it's necessary to stop and start the streamer, when subscribing or unsubscribing symbols. This is necessary because - especially when the exchanges are closed - the stream can be waiting for new events to arrive. As long as it's waiting no new symbols can be added or removed.

As stopping and then starting the DXLinkStreamer again is expensive is expensive, there is a use case for a non-blocking version of DXLinkStreamer.get_event.

Graeme22 commented 1 month ago

Thanks!