Cache instead of get pairs in symbol search

small_kucoin_fixes
jaredgoldman 2023-04-13 22:02:13 -04:00
parent 89bb124728
commit ebfd490a1a
1 changed files with 1 additions and 1 deletions

View File

@ -302,7 +302,7 @@ class Client:
pattern: str, pattern: str,
limit: int = 30, limit: int = 30,
) -> dict[str, KucoinMktPair]: ) -> dict[str, KucoinMktPair]:
data = await self._get_pairs() data = await self.cache_pairs()
matches = fuzzy.extractBests( matches = fuzzy.extractBests(
pattern, data, score_cutoff=35, limit=limit) pattern, data, score_cutoff=35, limit=limit)