fix(okx): use OCO algo orders for hub TP/SL to avoid instant close

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
dekun
2026-06-03 21:00:08 +08:00
parent 2d8f65bf1d
commit fac28c402b
4 changed files with 120 additions and 46 deletions
+4 -1
View File
@@ -131,7 +131,10 @@ def _make_exchange() -> Any:
"secret": secret,
"password": password,
"enableRateLimit": True,
"options": {"defaultType": "swap"},
"options": {
"defaultType": "swap",
"hedged": OKX_POS_MODE == "hedge",
},
}
)
_attach_proxies(ex, "OKX")