Skip to content

Commit

Permalink
readded rpc status message for partial buys
Browse files Browse the repository at this point in the history
  • Loading branch information
yazeed committed Feb 11, 2020
1 parent 5f4c209 commit cde1b2b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions freqtrade/freqtradebot.py
Original file line number Diff line number Diff line change
Expand Up @@ -906,6 +906,10 @@ def handle_timedout_limit_buy(self, trade: Trade, order: Dict) -> bool:

trade.open_order_id = None
logger.info('Partial buy order timeout for %s.', trade)
self.rpc.send_msg({
'type': RPCMessageType.STATUS_NOTIFICATION,
'status': f'Remaining buy order for {trade.pair} cancelled due to timeout'
})
return False

def handle_timedout_limit_sell(self, trade: Trade, order: Dict) -> bool:
Expand Down

0 comments on commit cde1b2b

Please sign in to comment.