Skip to content

Commit

Permalink
small fix in streamer docs
Browse files Browse the repository at this point in the history
  • Loading branch information
Graeme22 committed Apr 26, 2024
1 parent 739ee5f commit 5805e87
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions docs/data-streamer.rst
Original file line number Diff line number Diff line change
Expand Up @@ -98,11 +98,10 @@ For example, we can use the streamer to create an option chain that will continu
calls = [o for o in options if o.option_type == OptionType.CALL]
self = cls({}, {}, streamer, puts, calls)
t_listen_quotes = asyncio.create_task(self._update_quotes())
asyncio.gather(t_listen_greeks, t_listen_quotes)
asyncio.create_task(self._update_quotes())
# wait we have quotes and greeks for each option
while len(self.quotes) != len(options):
# wait we have quotes for each option
while len(self.quotes) != len(options) + 1:
await asyncio.sleep(0.1)
return self
Expand Down

0 comments on commit 5805e87

Please sign in to comment.