pub async fn place_order(
__arg0: State<RestState>,
rec: Option<Extension<Arc<KeyRecord>>>,
__arg2: Json<Value>,
) -> Result<Json<Value>, (StatusCode, Json<Value>)>Expand description
POST /api/order — 下单
v1.2:在 dispatch 之前先解析 JSON 提取 CheckCtx,跑 check_full_skip_rate
做 market/symbol/value/side/daily 细粒度检查(auth 层已做 rate/hours 闸门)。
Extension<Arc<KeyRecord>> 来自 bearer_auth middleware;scope 模式下必有,
legacy 模式下没有该 extension → 跳过 handler 层检查(保持旧行为)。