mirror of
https://github.com/freqtrade/freqtrade.git
synced 2025-12-03 18:43:04 +00:00
fix: send acknoledged to bybit fetch_order calls
This commit is contained in:
@@ -238,7 +238,13 @@ class Bybit(Exchange):
|
||||
return orders
|
||||
|
||||
def fetch_order(self, order_id: str, pair: str, params: Optional[Dict] = None) -> Dict:
|
||||
if self.exchange_has("fetchOrder"):
|
||||
# Set acknowledged to True to avoid ccxt exception
|
||||
params = {"acknowledged": True}
|
||||
|
||||
order = super().fetch_order(order_id, pair, params)
|
||||
if not order:
|
||||
order = self.fetch_order_emulated(order_id, pair, params)
|
||||
if (
|
||||
order.get("status") == "canceled"
|
||||
and order.get("filled") == 0.0
|
||||
|
||||
Reference in New Issue
Block a user