Add daily loss force-flatten at configurable equity limit

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
dekun
2026-07-03 12:42:13 +08:00
parent b6c3266a9e
commit 2081bf2da9
17 changed files with 850 additions and 97 deletions
+2 -2
View File
@@ -128,9 +128,9 @@ CTP_LIVE_ENV=实盘
| 页面选项 | vnpy 类型 | 说明 |
|----------|-----------|------|
| 限价 | `OrderType.LIMIT` | 价格按最小变动价位取整 |
| 市价 | `OrderType.FAK` + 对手价偏移 | 非「无价格市价单」,而是 **带滑点的限价 FAK**,以提高 SimNow/各前置成交率 |
| 市价 | `OrderType.FAK` + **对手价(买一/卖一)** + 滑点 | 非「无价格市价单」;止损约 12 跳、强平约 20 跳(强平另受权益滑点预留上限约束) |
止盈止损触发、手动平仓、策略平仓均走 **`order_type=market`** 的上述 FAK 逻辑
止盈止损触发、手动平仓`urgency=stop_loss`;日亏损强平走 `urgency=risk_flatten`
---