Skip to main content

Crate futu_rest

Crate futu_rest 

Source
Expand description

FutuOpenD REST API 服务

将 HTTP JSON 请求转换为 protobuf,调用现有 RequestRouter, 再将 protobuf 响应转回 JSON 返回。

架构: HTTP JSON → IncomingRequest(proto_id, body) → RequestHandler → protobuf → JSON

Modules§

adapter
通用适配器:JSON ↔ Protobuf 转换 + 请求分发
auth
REST API 的 Bearer Token 鉴权
caller_context
Caller context — 跨 REST surface 统一携带 caller key id + allowed_acc_ids 快照.
routes
REST API 路由定义
server
REST API HTTP 服务
strict_fields
v1.4.93 P0-2 (BUG-002): REST unknown-field validation for strict POST routes.
ws
WebSocket 推送模块