FinnhubWebSocket
Types
Functions
Disconnect from websocket server.
Subscribe to the news.
Subscribe to the trades.
Unsubscribe from news.
Unsubscribe from trades.
Properties
Flow of all news the client is subscribed to. If you are subscribed to multiple symbols, they might be mixed together and Finnhub currently doesn't seem to provide clear distinction from the response, but you can check the NewsItem.related item.
Callback called when any error occurred. For finnhub error responses you will get FinnhubException with the received message. For all other errors the original exception will be emitted.
Flow of all trades the client is subscribed to. Each list contains only items of single symbol. If there are subscriptions for multiple symbols, each will emit in separate lists, you have to distinguish them by TradeItem.s of any item in the list.