fix(bybit): Override fetchOrder to false for spot markets

closes #10777
This commit is contained in:
Matthias
2024-10-10 19:48:27 +02:00
parent d72f45a94b
commit 4b582b9d7e

View File

@@ -36,6 +36,12 @@ class Bybit(Exchange):
"order_time_in_force": ["GTC", "FOK", "IOC", "PO"],
"ws_enabled": True,
"trades_has_history": False, # Endpoint doesn't support pagination
"exchange_has_overrides": {
# Bybit spot does not support fetch_order
# Unless the account is unified.
# TODO: Can be removed once bybit fully forces all accounts to unified mode.
"fetchOrder": False,
},
}
_ft_has_futures: FtHas = {
"ohlcv_has_history": True,
@@ -51,6 +57,9 @@ class Bybit(Exchange):
PriceType.MARK: "MarkPrice",
PriceType.INDEX: "IndexPrice",
},
"exchange_has_overrides": {
"fetchOrder": True,
},
}
_supported_trading_mode_margin_pairs: list[tuple[TradingMode, MarginMode]] = [