mirror of
https://github.com/freqtrade/freqtrade.git
synced 2025-11-29 00:23:07 +00:00
fix: okxus doesn't support futures trading
This commit is contained in:
@@ -47,4 +47,4 @@ from freqtrade.exchange.kucoin import Kucoin
|
||||
from freqtrade.exchange.lbank import Lbank
|
||||
from freqtrade.exchange.luno import Luno
|
||||
from freqtrade.exchange.modetrade import Modetrade
|
||||
from freqtrade.exchange.okx import MyOkx, Okx
|
||||
from freqtrade.exchange.okx import Myokx, Okx, Okxus
|
||||
|
||||
@@ -48,7 +48,6 @@ MAP_EXCHANGE_CHILDCLASS = {
|
||||
"binanceus": "binance",
|
||||
"binanceusdm": "binance",
|
||||
"okex": "okx",
|
||||
"okxus": "okx",
|
||||
"gateio": "gate",
|
||||
"huboi": "htx",
|
||||
}
|
||||
|
||||
@@ -296,7 +296,7 @@ class Okx(Exchange):
|
||||
return orders
|
||||
|
||||
|
||||
class MyOkx(Okx):
|
||||
class Myokx(Okx):
|
||||
"""MyOkx exchange class.
|
||||
Minimal adjustment to disable futures trading for the EU subsidiary of Okx
|
||||
"""
|
||||
@@ -304,3 +304,13 @@ class MyOkx(Okx):
|
||||
_supported_trading_mode_margin_pairs: list[tuple[TradingMode, MarginMode]] = [
|
||||
(TradingMode.SPOT, MarginMode.NONE),
|
||||
]
|
||||
|
||||
|
||||
class Okxus(Okx):
|
||||
"""Okxus exchange class.
|
||||
Minimal adjustment to disable futures trading for the US subsidiary of Okx
|
||||
"""
|
||||
|
||||
_supported_trading_mode_margin_pairs: list[tuple[TradingMode, MarginMode]] = [
|
||||
(TradingMode.SPOT, MarginMode.NONE),
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user