Fix kraken balance bug if open buy orders exist
This commit is contained in:
parent
238e9aabb1
commit
b607740dd1
@ -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]
|
||||
|
Loading…
Reference in New Issue
Block a user