mirror of
https://github.com/freqtrade/freqtrade.git
synced 2025-11-29 08:33:07 +00:00
Add offset to "fetch_orders" to avoid missing the initial order
This commit is contained in:
@@ -456,7 +456,8 @@ class FreqtradeBot(LoggingMixin):
|
|||||||
Only used balance disappeared, which would make exiting impossible.
|
Only used balance disappeared, which would make exiting impossible.
|
||||||
"""
|
"""
|
||||||
try:
|
try:
|
||||||
orders = self.exchange.fetch_orders(trade.pair, trade.open_date_utc)
|
orders = self.exchange.fetch_orders(
|
||||||
|
trade.pair, trade.open_date_utc - timedelta(seconds=10))
|
||||||
prev_exit_reason = trade.exit_reason
|
prev_exit_reason = trade.exit_reason
|
||||||
prev_trade_state = trade.is_open
|
prev_trade_state = trade.is_open
|
||||||
for order in orders:
|
for order in orders:
|
||||||
|
|||||||
Reference in New Issue
Block a user