Add OKX trading-account USDC auto-swap and lock exit target while in position.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
dekun
2026-07-30 00:16:47 +08:00
parent f0b0b91f1b
commit 0837982714
16 changed files with 626 additions and 36 deletions
+7
View File
@@ -115,6 +115,13 @@ async def sim_open_group(
if not rs.ok:
raise HTTPException(status_code=409, detail=rs.detail)
try:
from ..strategy.auto_usdc import ensure_okx_trading_usdc
ensure_okx_trading_usdc(db)
except Exception:
pass
try:
from ..strategy.open_capacity import assess_open_capacity