Improved formatting for fetch order_or_stop calls
This commit is contained in:
parent
77985fa591
commit
1952e453bb
@ -1483,8 +1483,8 @@ class FreqtradeBot(LoggingMixin):
|
|||||||
return False
|
return False
|
||||||
|
|
||||||
try:
|
try:
|
||||||
order = self.exchange.cancel_order_with_result(order['id'], trade.pair,
|
order = self.exchange.cancel_order_with_result(
|
||||||
trade.amount)
|
order['id'], trade.pair, trade.amount)
|
||||||
except InvalidOrderException:
|
except InvalidOrderException:
|
||||||
logger.exception(
|
logger.exception(
|
||||||
f"Could not cancel {trade.exit_side} order {trade.open_order_id}")
|
f"Could not cancel {trade.exit_side} order {trade.open_order_id}")
|
||||||
@ -1786,9 +1786,8 @@ class FreqtradeBot(LoggingMixin):
|
|||||||
if not stoploss_order:
|
if not stoploss_order:
|
||||||
logger.info(f'Found open order for {trade}')
|
logger.info(f'Found open order for {trade}')
|
||||||
try:
|
try:
|
||||||
order = action_order or self.exchange.fetch_order_or_stoploss_order(order_id,
|
order = action_order or self.exchange.fetch_order_or_stoploss_order(
|
||||||
trade.pair,
|
order_id, trade.pair, stoploss_order)
|
||||||
stoploss_order)
|
|
||||||
except InvalidOrderException as exception:
|
except InvalidOrderException as exception:
|
||||||
logger.warning('Unable to fetch order %s: %s', order_id, exception)
|
logger.warning('Unable to fetch order %s: %s', order_id, exception)
|
||||||
return False
|
return False
|
||||||
|
Loading…
Reference in New Issue
Block a user