Only get tracked pairs for kraken (#142877)

Only get tracked pairs

Getting all available pairs leads to a too long request URL
This commit is contained in:
Kevin Stillhammer 2025-04-14 09:39:01 +02:00 committed by GitHub
parent 3389ee4b80
commit 62a0932deb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -145,7 +145,10 @@ class KrakenData:
await asyncio.sleep(CALL_RATE_LIMIT_SLEEP)
def _get_websocket_name_asset_pairs(self) -> str:
return ",".join(wsname for wsname in self.tradable_asset_pairs.values())
return ",".join(
self.tradable_asset_pairs[tracked_pair]
for tracked_pair in self._config_entry.options[CONF_TRACKED_ASSET_PAIRS]
)
def set_update_interval(self, update_interval: int) -> None:
"""Set the coordinator update_interval to the supplied update_interval."""