Rename variable
This commit is contained in:
parent
2cf17e04be
commit
c3e3188c6a
@ -956,9 +956,9 @@ class Exchange:
|
|||||||
from freqtrade.persistence import Order
|
from freqtrade.persistence import Order
|
||||||
order = Order.order_by_id(order_id)
|
order = Order.order_by_id(order_id)
|
||||||
if order:
|
if order:
|
||||||
x = order.to_ccxt_object()
|
ccxt_order = order.to_ccxt_object()
|
||||||
self._dry_run_open_orders[order_id] = x
|
self._dry_run_open_orders[order_id] = ccxt_order
|
||||||
return x
|
return ccxt_order
|
||||||
# Gracefully handle errors with dry-run orders.
|
# Gracefully handle errors with dry-run orders.
|
||||||
raise InvalidOrderException(
|
raise InvalidOrderException(
|
||||||
f'Tried to get an invalid dry-run-order (id: {order_id}). Message: {e}') from e
|
f'Tried to get an invalid dry-run-order (id: {order_id}). Message: {e}') from e
|
||||||
|
Loading…
Reference in New Issue
Block a user