Add toto-lev for order-leverage

This commit is contained in:
Matthias 2022-02-16 19:24:59 +01:00
parent de26844578
commit e981d644e1

View File

@ -161,6 +161,8 @@ class Order(_DECL_BASE):
self.average = order.get('average', self.average)
self.remaining = order.get('remaining', self.remaining)
self.cost = order.get('cost', self.cost)
# TODO-lev: ccxt order objects don't contain leverage.
# Therefore the below will always be 1.0 - which is wrong.
self.leverage = order.get('leverage', self.leverage)
if 'timestamp' in order and order['timestamp'] is not None: