Skip to content

Commit

Permalink
Fix the wrong usage in the example (#189)
Browse files Browse the repository at this point in the history
  • Loading branch information
steven5538 authored Dec 23, 2024
1 parent 4195df8 commit 5c379fe
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/data-streamer.rst
Original file line number Diff line number Diff line change
Expand Up @@ -131,11 +131,11 @@ For example, we can use the streamer to create an option chain that will continu
async def _update_greeks(self):
async for e in self.streamer.listen(Greeks):
self.greeks[e.eventSymbol] = e
self.greeks[e.event_symbol] = e
async def _update_quotes(self):
async for e in self.streamer.listen(Quote):
self.quotes[e.eventSymbol] = e
self.quotes[e.event_symbol] = e
Now, we can access the quotes and greeks at any time, and they'll be up-to-date with the live prices from the streamer:

Expand Down

1 comment on commit 5c379fe

@khazaddim
Copy link

@khazaddim khazaddim commented on 5c379fe Dec 28, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why did this naming change need to be made? Took me a while to figure out what happened when i updated.

Please sign in to comment.