added okex back to unsupported exchanges
This commit is contained in:
parent
2c1497b348
commit
43db4c34d1
@ -24,5 +24,5 @@ class Okex(Exchange):
|
|||||||
# TradingMode.SPOT always supported and not required in this list
|
# TradingMode.SPOT always supported and not required in this list
|
||||||
# (TradingMode.MARGIN, Collateral.CROSS),
|
# (TradingMode.MARGIN, Collateral.CROSS),
|
||||||
# (TradingMode.FUTURES, Collateral.CROSS),
|
# (TradingMode.FUTURES, Collateral.CROSS),
|
||||||
(TradingMode.FUTURES, Collateral.ISOLATED)
|
# (TradingMode.FUTURES, Collateral.ISOLATED)
|
||||||
]
|
]
|
||||||
|
@ -242,8 +242,8 @@ def test_validate_order_time_in_force(default_conf, mocker, caplog):
|
|||||||
(2.34559, 4, 0.001, 1, 2.345, 'spot'),
|
(2.34559, 4, 0.001, 1, 2.345, 'spot'),
|
||||||
(2.9999, 4, 0.001, 1, 2.999, 'spot'),
|
(2.9999, 4, 0.001, 1, 2.999, 'spot'),
|
||||||
(2.9909, 4, 0.001, 1, 2.990, 'spot'),
|
(2.9909, 4, 0.001, 1, 2.990, 'spot'),
|
||||||
(2.9909, 4, 0.005, 0.01, 299.09, 'futures'),
|
(2.9909, 4, 0.005, 0.01, 2.99, 'futures'),
|
||||||
(2.9999, 4, 0.005, 10, 0.295, 'futures'),
|
(2.9999, 4, 0.005, 10, 2.995, 'futures'),
|
||||||
])
|
])
|
||||||
def test_amount_to_precision(
|
def test_amount_to_precision(
|
||||||
default_conf,
|
default_conf,
|
||||||
@ -3451,9 +3451,9 @@ def test_set_margin_mode(mocker, default_conf, collateral):
|
|||||||
|
|
||||||
("binance", TradingMode.FUTURES, Collateral.ISOLATED, False),
|
("binance", TradingMode.FUTURES, Collateral.ISOLATED, False),
|
||||||
("gateio", TradingMode.FUTURES, Collateral.ISOLATED, False),
|
("gateio", TradingMode.FUTURES, Collateral.ISOLATED, False),
|
||||||
("okex", TradingMode.FUTURES, Collateral.ISOLATED, False),
|
|
||||||
|
|
||||||
# * Remove once implemented
|
# * Remove once implemented
|
||||||
|
("okex", TradingMode.FUTURES, Collateral.ISOLATED, True),
|
||||||
("binance", TradingMode.MARGIN, Collateral.CROSS, True),
|
("binance", TradingMode.MARGIN, Collateral.CROSS, True),
|
||||||
("binance", TradingMode.FUTURES, Collateral.CROSS, True),
|
("binance", TradingMode.FUTURES, Collateral.CROSS, True),
|
||||||
("kraken", TradingMode.MARGIN, Collateral.CROSS, True),
|
("kraken", TradingMode.MARGIN, Collateral.CROSS, True),
|
||||||
@ -3464,6 +3464,7 @@ def test_set_margin_mode(mocker, default_conf, collateral):
|
|||||||
("gateio", TradingMode.FUTURES, Collateral.CROSS, True),
|
("gateio", TradingMode.FUTURES, Collateral.CROSS, True),
|
||||||
|
|
||||||
# * Uncomment once implemented
|
# * Uncomment once implemented
|
||||||
|
# ("okex", TradingMode.FUTURES, Collateral.ISOLATED, False),
|
||||||
# ("binance", TradingMode.MARGIN, Collateral.CROSS, False),
|
# ("binance", TradingMode.MARGIN, Collateral.CROSS, False),
|
||||||
# ("binance", TradingMode.FUTURES, Collateral.CROSS, False),
|
# ("binance", TradingMode.FUTURES, Collateral.CROSS, False),
|
||||||
# ("kraken", TradingMode.MARGIN, Collateral.CROSS, False),
|
# ("kraken", TradingMode.MARGIN, Collateral.CROSS, False),
|
||||||
|
@ -718,8 +718,8 @@ def test_process_informative_pairs_added(default_conf_usdt, ticker_usdt, mocker)
|
|||||||
(False, 'futures', 'binance', 'isolated', 8.070707070707071),
|
(False, 'futures', 'binance', 'isolated', 8.070707070707071),
|
||||||
(True, 'futures', 'gateio', 'isolated', 11.87413417771621),
|
(True, 'futures', 'gateio', 'isolated', 11.87413417771621),
|
||||||
(False, 'futures', 'gateio', 'isolated', 8.085708510208207),
|
(False, 'futures', 'gateio', 'isolated', 8.085708510208207),
|
||||||
(True, 'futures', 'okex', 'isolated', 11.87413417771621),
|
# (True, 'futures', 'okex', 'isolated', 11.87413417771621),
|
||||||
(False, 'futures', 'okex', 'isolated', 8.085708510208207),
|
# (False, 'futures', 'okex', 'isolated', 8.085708510208207),
|
||||||
])
|
])
|
||||||
def test_execute_entry(mocker, default_conf_usdt, fee, limit_order,
|
def test_execute_entry(mocker, default_conf_usdt, fee, limit_order,
|
||||||
limit_order_open, is_short, trading_mode,
|
limit_order_open, is_short, trading_mode,
|
||||||
|
Loading…
Reference in New Issue
Block a user