From aba238e8b1f9533c8085fb2649cd09d49c4e1cbc Mon Sep 17 00:00:00 2001 From: Tyler Goodlet Date: Wed, 8 Mar 2023 17:22:13 -0500 Subject: [PATCH] `kraken`: expect `Pair` in search results.. --- piker/brokers/kraken/feed.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/piker/brokers/kraken/feed.py b/piker/brokers/kraken/feed.py index b4a2e666..a737aaad 100644 --- a/piker/brokers/kraken/feed.py +++ b/piker/brokers/kraken/feed.py @@ -453,7 +453,7 @@ async def open_symbol_search( score_cutoff=50, ) # repack in dict form - await stream.send( - {item[0]['altname']: item[0] - for item in matches} - ) + await stream.send({ + pair[0].altname: pair[0] + for pair in matches + })