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 Franck Nijhof
parent 1e69ce9111
commit 9f1a830d32
No known key found for this signature in database
GPG Key ID: AB33ADACE7101952

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."""