pub async fn get_account_flag(
__arg0: State<RestState>,
rec: Option<Extension<Arc<KeyRecord>>>,
__arg2: Json<Value>,
) -> Result<Json<Value>, (StatusCode, Json<Value>)>Expand description
POST /api/account-flag — 查询账户合规标志 (mobile-driven)
用户:
- 高级交易准入 (期权 / 衍生品 / OTC / CFD 等) 必须 flag=1
- LLM agent 检查用户是否完成 KYC / 风披 / opt-in 等
参数:
- acc_id (u64, 必填): per-broker 路由
- trd_env (i32, 0=sim 1=real, default 1)
- flag_id (uint32, 必填): 标志 id (常用值 5=US 期权确认, 22=衍生品风批, 10=基金 KYC, 16=PDT, 23=OTC; 详见 proto 头部 36+ 项 flag_id 列表)
响应: ret_type / ret_msg / s2c.inner.item (general_flag: uid / flag_id / flag_value / updated_time). flag_value 通常 0=未确认 / 1=已确认 / 部分用 version.
Pitfall #42: backend 接受度 v1.4.95 仍 UNVERIFIED.