feat: disable myOkx futures support
it's a product that doesn't exist.
This commit is contained in:
@@ -46,4 +46,4 @@ from freqtrade.exchange.kucoin import Kucoin
|
|||||||
from freqtrade.exchange.lbank import Lbank
|
from freqtrade.exchange.lbank import Lbank
|
||||||
from freqtrade.exchange.luno import Luno
|
from freqtrade.exchange.luno import Luno
|
||||||
from freqtrade.exchange.modetrade import Modetrade
|
from freqtrade.exchange.modetrade import Modetrade
|
||||||
from freqtrade.exchange.okx import Okx
|
from freqtrade.exchange.okx import MyOkx, Okx
|
||||||
|
|||||||
@@ -49,7 +49,6 @@ MAP_EXCHANGE_CHILDCLASS = {
|
|||||||
"binanceje": "binance",
|
"binanceje": "binance",
|
||||||
"binanceusdm": "binance",
|
"binanceusdm": "binance",
|
||||||
"okex": "okx",
|
"okex": "okx",
|
||||||
"myokx": "okx",
|
|
||||||
"okxus": "okx",
|
"okxus": "okx",
|
||||||
"gateio": "gate",
|
"gateio": "gate",
|
||||||
"huboi": "htx",
|
"huboi": "htx",
|
||||||
@@ -65,6 +64,7 @@ SUPPORTED_EXCHANGES = [
|
|||||||
"hyperliquid",
|
"hyperliquid",
|
||||||
"kraken",
|
"kraken",
|
||||||
"okx",
|
"okx",
|
||||||
|
"myokx",
|
||||||
]
|
]
|
||||||
|
|
||||||
# either the main, or replacement methods (array) is required
|
# either the main, or replacement methods (array) is required
|
||||||
|
|||||||
@@ -287,3 +287,14 @@ class Okx(Exchange):
|
|||||||
orders_open = self._api.fetch_open_orders(pair, since=since_ms)
|
orders_open = self._api.fetch_open_orders(pair, since=since_ms)
|
||||||
orders.extend(orders_open)
|
orders.extend(orders_open)
|
||||||
return orders
|
return orders
|
||||||
|
|
||||||
|
|
||||||
|
class MyOkx(Okx):
|
||||||
|
"""
|
||||||
|
MyOkx exchange class.
|
||||||
|
Minimal adjustment to disable futures trading for the EU subsidiary of Okx
|
||||||
|
"""
|
||||||
|
|
||||||
|
_supported_trading_mode_margin_pairs: list[tuple[TradingMode, MarginMode]] = [
|
||||||
|
(TradingMode.SPOT, MarginMode.NONE),
|
||||||
|
]
|
||||||
|
|||||||
Reference in New Issue
Block a user