From ebfd490a1a14b44ee99467b0f0a2d346f583bc10 Mon Sep 17 00:00:00 2001 From: jaredgoldman Date: Thu, 13 Apr 2023 22:02:13 -0400 Subject: [PATCH] Cache instead of get pairs in symbol search --- piker/brokers/kucoin.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/piker/brokers/kucoin.py b/piker/brokers/kucoin.py index 6692d7f7..766cee62 100644 --- a/piker/brokers/kucoin.py +++ b/piker/brokers/kucoin.py @@ -302,7 +302,7 @@ class Client: pattern: str, limit: int = 30, ) -> dict[str, KucoinMktPair]: - data = await self._get_pairs() + data = await self.cache_pairs() matches = fuzzy.extractBests( pattern, data, score_cutoff=35, limit=limit)