Fix kraken balance bug if open buy orders exist

This commit is contained in:
Matthias 2020-12-29 20:06:37 +01:00
parent 238e9aabb1
commit b607740dd1

View File

@ -48,7 +48,7 @@ class Kraken(Exchange):
orders = self._api.fetch_open_orders()
order_list = [(x["symbol"].split("/")[0 if x["side"] == "sell" else 1],
x["remaining"],
x["remaining"] if x["side"] == "sell" else x["remaining"] * x["price"],
# Don't remove the below comment, this can be important for debuggung
# x["side"], x["amount"],
) for x in orders]