stream: Add support for the real-time News beta API#64
stream: Add support for the real-time News beta API#64dgoulet wants to merge 2 commits intod-e-s-o:mainfrom
Conversation
Signed-off-by: David Goulet <dgoulet@ev0ke.net>
There was a problem hiding this comment.
The change seems fine, but apca does not expose anything labeled "beta", as it could break/vanish any time. That's why the news request bindings changes (https://github.com/d-e-s-o/apca/tree/topic/news) have been sitting around for forever.
I am afraid I don't have a good suggestion on how to move forward off hand. Perhaps we could introduce an unstable feature flag, but I suspect this would only help with the above, but couldn't be nicely made to work with the change at hand, because of the modification of the Data enum with a new generic argument. It would be great if you were to inquire with Alpaca when they intend to stabilize their stuff. I'd be interested to hear what what seems to be an indefinite beta period buys them.
| /// .subscribe::<RealtimeData<NewsFeed>>() | ||
| /// .await | ||
| /// .unwrap(); | ||
| /// # }) |
There was a problem hiding this comment.
There is no opening parenthesis/brace? I don't think that example can compile.
Co-authored-by: Daniel Müller <d-e-s-o@users.noreply.github.com>
|
Ah! I didn't know about your But, yeah I think having a I can try to ask them on their Slack but I bet I'll get an answer looking like: "We hope to make this stable soon" ;) |
I think it covers a different set of stuff than what you added: it's about the request interface, not the streaming support. So I'd say both complement each other. I should probably create a draft PR for improved visibility.
Probably :-( Let us know if you know something. |
Here is an attempt at supporting the beta News real time feed detailed here: https://alpaca.markets/docs/api-references/market-data-api/news-data/realtime/
It is quite straight forward as you'll see following how Quotes and Bars are streamed.