chore: remove workaround for Kraken ".F" workaround
This commit is contained in:
@@ -69,7 +69,7 @@ class Kraken(Exchange):
|
|||||||
consolidated: CcxtBalances = {}
|
consolidated: CcxtBalances = {}
|
||||||
for currency, balance in balances.items():
|
for currency, balance in balances.items():
|
||||||
base_currency = currency[:-2] if currency.endswith(".F") else currency
|
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:
|
if base_currency in consolidated:
|
||||||
consolidated[base_currency]["free"] += balance["free"]
|
consolidated[base_currency]["free"] += balance["free"]
|
||||||
consolidated[base_currency]["used"] += balance["used"]
|
consolidated[base_currency]["used"] += balance["used"]
|
||||||
|
|||||||
@@ -71,7 +71,7 @@ def test_get_balances_prod_kraken(default_conf, mocker):
|
|||||||
"4TH": balance_item.copy(),
|
"4TH": balance_item.copy(),
|
||||||
"EUR": balance_item.copy(),
|
"EUR": balance_item.copy(),
|
||||||
"BTC": {"free": 0.0, "total": 0.0, "used": 0.0},
|
"BTC": {"free": 0.0, "total": 0.0, "used": 0.0},
|
||||||
"XBT.F": balance_item.copy(),
|
"BTC.F": balance_item.copy(),
|
||||||
"timestamp": 123123,
|
"timestamp": 123123,
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -156,7 +156,7 @@ EXCHANGES = {
|
|||||||
"ADA.F": {"free": 2.0, "total": 2.0, "used": 0.0},
|
"ADA.F": {"free": 2.0, "total": 2.0, "used": 0.0},
|
||||||
"BTC": {"free": 0.0006, "total": 0.0006, "used": 0.0},
|
"BTC": {"free": 0.0006, "total": 0.0006, "used": 0.0},
|
||||||
# XBT.F should be mapped to BTC.F
|
# 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},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user