mirror of
https://github.com/freqtrade/freqtrade.git
synced 2026-02-21 20:01:39 +00:00
fix(bybit): Override fetchOrder to false for spot markets
closes #10777
This commit is contained in:
@@ -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]] = [
|
||||
|
||||
Reference in New Issue
Block a user