pub struct CheckCtx {
pub market: String,
pub symbol: String,
pub order_value: Option<f64>,
pub trd_side: Option<String>,
}Expand description
限额检查上下文:一次下单的 market/symbol/金额/方向
Fields§
§market: String“HK” / “US” / “CN” / “HKCC” 等
symbol: String“HK.00700” 格式(market + code);空串 表示调用方无法推导 symbol (改单 / 撤单路径),此时 symbol 白名单检查被跳过(但 market 仍会被校验)。
order_value: Option<f64>qty × price(本币);None 表示无法计算(如 MARKET 单),跳过金额检查
trd_side: Option<String>交易方向字符串("BUY" / "SELL" / …);None 表示无需方向校验
(改单 / 撤单路径)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for CheckCtx
impl RefUnwindSafe for CheckCtx
impl Send for CheckCtx
impl Sync for CheckCtx
impl Unpin for CheckCtx
impl UnwindSafe for CheckCtx
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more