From 650a5538231b3c14536fbb3aab7ffd31d6b94f01 Mon Sep 17 00:00:00 2001 From: moshferatu Date: Sat, 6 Jul 2024 05:12:01 -0700 Subject: [PATCH] Update options chain streaming example which now works due to Tastytrade allowing the streaming of options quotes --- streaming_option_chain_example.py | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/streaming_option_chain_example.py b/streaming_option_chain_example.py index e0e23a5..e891a5b 100644 --- a/streaming_option_chain_example.py +++ b/streaming_option_chain_example.py @@ -1,9 +1,3 @@ -""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" - This example does not currently work. - The DXLink connection does not currently support options data. - Refer to the comments on this video: https://www.youtube.com/watch?v=qHL4Jy6yIC8 -""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" - from datetime import datetime from dotenv import load_dotenv from os import getenv @@ -24,4 +18,4 @@ option_chain_data = client.get_option_chain_compact('SPX')['data']['items'][0] streamer_symbols = option_chain_data['streamer-symbols'] zero_dte_symbols = [symbol for symbol in streamer_symbols if symbol.startswith(symbol_prefix)] -client.start_streaming(zero_dte_symbols) \ No newline at end of file +client.stream_quotes(zero_dte_symbols) \ No newline at end of file