mirror of
https://github.com/freqtrade/freqtrade.git
synced 2024-11-10 10:21:59 +00:00
Add toto-lev for order-leverage
This commit is contained in:
parent
de26844578
commit
e981d644e1
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue
Block a user