cancelled order bug fixed

This commit is contained in:
Kavinkumar 2022-02-27 19:55:55 +05:30
parent 502c352bbd
commit f1b66a8af7
3 changed files with 4 additions and 4 deletions

View File

@ -56,7 +56,7 @@ WEBHOOK_FORMAT_OPTIONS = ['form', 'json', 'raw']
ENV_VAR_PREFIX = 'FREQTRADE__'
NON_OPEN_EXCHANGE_STATES = ('cancelled', 'canceled', 'closed', 'expired')
NON_OPEN_EXCHANGE_STATES = ('cancelled', 'canceled', 'expired')
# Define decimals per coin for outputs
# Only used for outputs.

View File

@ -1232,7 +1232,7 @@ class FreqtradeBot(LoggingMixin):
trade.open_order_id = order['id']
trade.sell_order_status = ''
trade.close_rate_requested = limit
trade.sell_reason = exit_tag or sell_reason.sell_reason + order['id'] + ' debug'
trade.sell_reason = exit_tag or sell_reason.sell_reason
# Lock pair for one candle to prevent immediate re-buys
self.strategy.lock_pair(trade.pair, datetime.now(timezone.utc),

View File

@ -688,7 +688,7 @@ class LocalTrade():
if (o.ft_is_open or
(o.ft_order_side != 'buy') or
o.is_fully_realized or
(o.status not in NON_OPEN_EXCHANGE_STATES)):
(o.status in NON_OPEN_EXCHANGE_STATES)):
continue
tmp_amount = o.amount
@ -745,7 +745,7 @@ class LocalTrade():
and o.ft_is_open is False and
(o.filled or 0) > 0 and
not o.is_fully_realized and
o.status in NON_OPEN_EXCHANGE_STATES]
o.status not in NON_OPEN_EXCHANGE_STATES]
@property
def nr_of_successful_buys(self) -> int: