mirror of
https://github.com/freqtrade/freqtrade.git
synced 2026-01-29 02:10:24 +00:00
Merge pull request #10564 from iridescentGray/develop
chore: fix test param
This commit is contained in:
@@ -640,7 +640,7 @@ def test__get_stop_params_okx(mocker, default_conf):
|
|||||||
default_conf["trading_mode"] = "futures"
|
default_conf["trading_mode"] = "futures"
|
||||||
default_conf["margin_mode"] = "isolated"
|
default_conf["margin_mode"] = "isolated"
|
||||||
exchange = get_patched_exchange(mocker, default_conf, exchange="okx")
|
exchange = get_patched_exchange(mocker, default_conf, exchange="okx")
|
||||||
params = exchange._get_stop_params("ETH/USDT:USDT", 1500, "sell")
|
params = exchange._get_stop_params("sell", "market", 1500)
|
||||||
|
|
||||||
assert params["tdMode"] == "isolated"
|
assert params["tdMode"] == "isolated"
|
||||||
assert params["posSide"] == "net"
|
assert params["posSide"] == "net"
|
||||||
|
|||||||
Reference in New Issue
Block a user