-
Notifications
You must be signed in to change notification settings - Fork 540
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add news api #555
Add news api #555
Conversation
6e342e2
to
3a8e519
Compare
3a8e519
to
ffb030c
Compare
For It also acts as a The difference is that the other endpoints don't have a default query limit... So I wonder if I should add |
4621731
to
a062d02
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Thank you @ccnlui!
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. alpacahq#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.)
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. alpacahq#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.)
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. alpacahq#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.)
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. alpacahq#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.)
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. alpacahq#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.)
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.)
Context
Added support for news api, both stream and historical endpoint
TODO
Add tests(done)