Expand description
限额:单笔、日累计、市场/品种白名单、时间窗口
Structs§
- Check
Ctx - 限额检查上下文:一次下单的 market/symbol/金额/方向
- Limit
Guard - v1.4.106 codex 0538 F3 (P2): LimitGuard architecture — accepted-quota 模型而非 attempted-quota.
- Limits
- 限额配置(与 KeyRecord 字段平级,独立出来便于传递)
- Runtime
Counters
Enums§
- Limit
Outcome - 限额检查结果
- Limit
Reason - v1.4.106 codex 0542 F2 [P2 SECURITY]: 限额拒绝原因 typed enum.
- Value
Reject Reason - 金额拒绝的结构化原因(v1.4.106 codex 0538 F1 P1 SECURITY)
Functions§
- market_
to_ currency - v1.4.106 codex 0538 F4 (P3): trd market → currency 推导.
- validate_
order_ value - 校验 order_value 数值合法性(v1.4.106 codex 0538 F1 P1 SECURITY)