From 196a46cefd7a311a1ae3823e94cc58643d21ebcc Mon Sep 17 00:00:00 2001 From: Alex Golec Date: Mon, 5 Jun 2023 09:20:16 -0400 Subject: [PATCH] Looks like news streams work now (#336) --- docs/streaming.rst | 31 ++++--------------------------- 1 file changed, 4 insertions(+), 27 deletions(-) diff --git a/docs/streaming.rst b/docs/streaming.rst index a0bad0cb..e6fadd67 100644 --- a/docs/streaming.rst +++ b/docs/streaming.rst @@ -484,7 +484,7 @@ Options Order Book This stream provides the order book for options. It's not entirely clear what exchange it aggregates from, but it's been tested to work and deliver data. The -leading hypothesis is that it is bethe order book for the +leading hypothesis is that it is the order book for the `Chicago Board of Exchange `__ options exchanges, although this is an admittedly an uneducated guess. @@ -546,32 +546,9 @@ We currently believe this is an issue on TDA's side. News Headlines ++++++++++++++ -TD Ameritrade supposedly supports streaming news headlines. However, we have -yet to receive any reports of successful access to this stream. Attempts to read -this stream result in messages like the following, followed by TDA-initiated -stream closure: - -.. code-block:: JSON - - { - "notify": [ - { - "service": "NEWS_HEADLINE", - "timestamp": 1591500923797, - "content": { - "code": 17, - "msg": "Not authorized for all quotes." - } - } - ] - } - -The current hypothesis is that this stream requires some permissions or paid -access that so far no one has had.If you manage to get this stream working, or -even if you manage to get it to fail with a different message than the one -above, please `report it `__. In -the meantime, ``tda-api`` provides the following methods for attempting to -access this stream. +This stream returns news headlines for a set of symbols. If you encounter issues +activating this stream or receive an error response from TDA, please reach out to +our `Discord server `__ for help. .. automethod:: tda.streaming::StreamClient.news_headline_subs .. automethod:: tda.streaming::StreamClient.news_headline_unsubs