Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix streaming news article event dispatching. (#691)
News article events are different from other types of events (e.g. stock trades) because a single news article could be applicable to multiple symbols. For that reason, the streamed event does not have the usual `S` field that contains a single symbol; instead, the event has a `symbols` field that contains a list of symbols. #555 mistakenly assumes that the event has an `S` field. This commit changes the dispatching logic to instead use the `symbols` field. (There is a similar [commit](alpacahq/alpaca-trade-api-csharp@be67b62) for the C# library.)
- Loading branch information