chore: remove workaround for Kraken ".F" workaround

This commit is contained in:
Matthias
2025-03-31 06:47:23 +02:00
parent 63010bc5e9
commit 795a0b81ee
3 changed files with 3 additions and 3 deletions

View File

@@ -69,7 +69,7 @@ class Kraken(Exchange):
consolidated: CcxtBalances = {}
for currency, balance in balances.items():
base_currency = currency[:-2] if currency.endswith(".F") else currency
base_currency = self._api.commonCurrencies.get(base_currency, base_currency)
if base_currency in consolidated:
consolidated[base_currency]["free"] += balance["free"]
consolidated[base_currency]["used"] += balance["used"]

View File

@@ -71,7 +71,7 @@ def test_get_balances_prod_kraken(default_conf, mocker):
"4TH": balance_item.copy(),
"EUR": balance_item.copy(),
"BTC": {"free": 0.0, "total": 0.0, "used": 0.0},
"XBT.F": balance_item.copy(),
"BTC.F": balance_item.copy(),
"timestamp": 123123,
}
)

View File

@@ -156,7 +156,7 @@ EXCHANGES = {
"ADA.F": {"free": 2.0, "total": 2.0, "used": 0.0},
"BTC": {"free": 0.0006, "total": 0.0006, "used": 0.0},
# XBT.F should be mapped to BTC.F
"XBT.F": {"free": 0.001, "total": 0.001, "used": 0.0},
"BTC.F": {"free": 0.001, "total": 0.001, "used": 0.0},
},
},
},