mirror of
https://github.com/freqtrade/freqtrade.git
synced 2025-11-29 00:23:07 +00:00
remove legacy sl management code from handle_insufficient_funds
This commit is contained in:
@@ -439,10 +439,6 @@ class FreqtradeBot(LoggingMixin):
|
|||||||
try:
|
try:
|
||||||
fo = self.exchange.fetch_order_or_stoploss_order(order.order_id, order.ft_pair,
|
fo = self.exchange.fetch_order_or_stoploss_order(order.order_id, order.ft_pair,
|
||||||
order.ft_order_side == 'stoploss')
|
order.ft_order_side == 'stoploss')
|
||||||
if order.ft_order_side == 'stoploss':
|
|
||||||
if fo and fo['status'] == 'open':
|
|
||||||
# Assume this as the open stoploss order
|
|
||||||
trade.stoploss_order_id = order.order_id
|
|
||||||
if fo:
|
if fo:
|
||||||
logger.info(f"Found {order} for trade {trade}.")
|
logger.info(f"Found {order} for trade {trade}.")
|
||||||
self.update_trade_state(trade, order.order_id, fo,
|
self.update_trade_state(trade, order.order_id, fo,
|
||||||
|
|||||||
Reference in New Issue
Block a user