From 1b1e35d32de965266cec47be7e6d034ab13a7219 Mon Sep 17 00:00:00 2001 From: jaredgoldman Date: Thu, 13 Apr 2023 22:28:44 -0400 Subject: [PATCH] Add comment explaining waiting for first trade quote --- piker/brokers/kucoin.py | 1 + 1 file changed, 1 insertion(+) diff --git a/piker/brokers/kucoin.py b/piker/brokers/kucoin.py index 8037d457..62b811ca 100644 --- a/piker/brokers/kucoin.py +++ b/piker/brokers/kucoin.py @@ -523,6 +523,7 @@ async def stream_quotes( typ, quote = await anext(msg_gen) while typ != 'trade': + # take care to not unblock here until we get a real trade quote typ, quote = await anext(msg_gen)