Update options chain streaming example which now works due to Tastytrade allowing the streaming of options quotes
This commit is contained in:
parent
61f477443b
commit
650a553823
@ -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)
|
||||
client.stream_quotes(zero_dte_symbols)
|
Loading…
Reference in New Issue
Block a user