alpacahq / alpaca-py

The Official Python SDK for Alpaca API
https://alpaca.markets/sdks/python/getting_started.html
Apache License 2.0
543 stars 135 forks source link

Update StockDataStream to support statuses #309

Closed impredicative closed 2 months ago

impredicative commented 1 year ago

Is there an existing issue for this?

Is your feature request related to a problem? Please describe.

Currently, StockDataStream doesn't look to provide statuses. Without this, it is not possible to know of trading halts.

Describe the solution you'd like.

Ideally, there could perhaps be subscribe_statuses and unsubscribe_statuses methods that are symbol(s) specific or global for all symbols.