Cache instead of get pairs in symbol search
parent
89bb124728
commit
ebfd490a1a
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue