fix for mypy
This commit is contained in:
parent
5cfc670ada
commit
a8b1d1e10b
@ -498,7 +498,7 @@ class LocalTrade():
|
|||||||
orders = (self.select_filled_orders('buy'))
|
orders = (self.select_filled_orders('buy'))
|
||||||
sell_rate = float(safe_value_fallback(order, 'average', 'price'))
|
sell_rate = float(safe_value_fallback(order, 'average', 'price'))
|
||||||
sell_amount = float(safe_value_fallback(order, 'filled', 'amount'))
|
sell_amount = float(safe_value_fallback(order, 'filled', 'amount'))
|
||||||
profit = 0
|
profit = 0.0
|
||||||
idx = -1
|
idx = -1
|
||||||
while sell_amount:
|
while sell_amount:
|
||||||
b_order = orders[idx]
|
b_order = orders[idx]
|
||||||
|
Loading…
Reference in New Issue
Block a user