Improve check to cover more potential api oddities

This commit is contained in:
Matthias 2024-09-14 10:04:28 +02:00
parent ae155c78c2
commit 0f505c6d7b

View File

@ -78,7 +78,7 @@ class Kraken(Exchange):
# x["side"], x["amount"],
)
for x in orders
if x["price"] is not None
if (x["price"] is not None or x["side"] != "sell") and x["remaining"] is not None
]
for bal in balances:
if not isinstance(balances[bal], dict):