From 5c379fef397296acfd435487749ba43aac3ecb83 Mon Sep 17 00:00:00 2001 From: steven5538 Date: Mon, 23 Dec 2024 22:11:07 +0100 Subject: [PATCH] Fix the wrong usage in the example (#189) --- docs/data-streamer.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/data-streamer.rst b/docs/data-streamer.rst index 4f85755..7eb9eea 100644 --- a/docs/data-streamer.rst +++ b/docs/data-streamer.rst @@ -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: