Structs§
- Crypto
Cash LogInfo - Crypto
MaxBuy Sell QtyInfo - Crypto
MaxBuy Sell QtyRequest - Query crypto max buy/sell quantity through CMD20622.
- Crypto
Order FeeInfo - Crypto
Order FeeItem - Order
Fill Info
Enums§
Constants§
- CMD_
ACCOUNT_ INFO - 账户资产查询命令 ID (真实账户: 资金+持仓)
- CMD_
FUND_ BOND_ DETAIL_ ASSET - 基金/债券总资产查询命令 ID (真实账户 sidecar, C++ QueryFundNoLimit)
- CMD_
QUERY_ FUND - 资金查询 base command ID。真实
GetFunds不直接发此 cmd:C++ real 分支 走 CMD3020AccountInfoReq;SIM 分支走 registry 中的 14704。 注意:4704 不是模拟账户资金 wire cmd。 - CMD_
QUERY_ HISTORY_ ORDER_ FILL_ LIST - 历史成交查询命令 ID
- CMD_
QUERY_ HISTORY_ ORDER_ LIST - 历史订单查询命令 ID
- CMD_
QUERY_ ORDER_ FILL_ INFO - 指定成交 ID 查询命令 ID。C++
QueryDealInfo在成交通知NOTICE_TYPE_ORDER_FILL_UPDATE中使用,不等同于成交列表 4710。 - CMD_
QUERY_ ORDER_ FILL_ LIST - 成交列表查询命令 ID
- CMD_
QUERY_ ORDER_ INFO - 指定订单 ID 查询命令 ID。C++ push
NOTICE_TYPE_ORDER_UPDATE/NOTICE_TYPE_ORDER_OP_RESULT使用此 detail path,不用 4708 全量订单列表代替。 - CMD_
QUERY_ ORDER_ LIST - 订单查询命令 ID
- CMD_
QUERY_ POSITION - 持仓查询 base command ID。真实
GetPositionList不直接发此 cmd:C++ real 分支走 CMD3020AccountInfoReq;SIM 分支走 registry 中的 14705。 注意:4705 不是模拟账户持仓 wire cmd。 - CMD_
SIM_ QUERY_ FUND - v1.4.53 BUG-6: Sim 账户资金查询 CMD。显式登记,禁止调用点用 offset 推导。
- CMD_
SIM_ QUERY_ HISTORY_ ORDER_ FILL_ LIST - Sim 账户历史成交查询 CMD。显式登记,禁止调用点用 offset 推导。
- CMD_
SIM_ QUERY_ HISTORY_ ORDER_ LIST - Sim 账户历史订单查询 CMD。显式登记,禁止调用点用 offset 推导。
- CMD_
SIM_ QUERY_ ORDER_ FILL_ INFO - Sim 账户指定成交 ID 查询 CMD。显式登记,禁止调用点用 offset 推导。
- CMD_
SIM_ QUERY_ ORDER_ FILL_ LIST - Sim 账户成交列表查询 CMD。显式登记,禁止调用点用 offset 推导。
- CMD_
SIM_ QUERY_ ORDER_ INFO - Sim 账户指定订单 ID 查询 CMD。显式登记,禁止调用点用 offset 推导。
- CMD_
SIM_ QUERY_ ORDER_ LIST - v1.4.106: Sim 账户订单查询 CMD。显式登记,禁止调用点用 offset 推导。
- CMD_
SIM_ QUERY_ POSITION - v1.4.53 BUG-6: Sim 账户持仓查询 CMD。注意 4705 是 base QueryPositionList, 14705 才是 sim 专用 wire cmd。
- TRADE_
QUERY_ COMMANDS
Functions§
- backend_
deal_ status_ to_ ftapi backend_deal_status_to_ftapi— 对齐 C++NN_DealStatus(NNBase_Define_Enum.h:377-381) + C++NNProto_Trd_Deal.cpp:68-91转换:is_cancelled=true → 1 (Cancelled),is_corrected=true → 2 (Changed), otherwise →0 (OK).- backend_
order_ fill_ qty_ price_ for_ ftapi - Backend
odr_sys_cmn::OrderFill-> FTAPI 对外 qty/price。 - backend_
order_ status_ to_ ftapi - 指定成交 ID 查询 (push
NOTICE_TYPE_ORDER_FILL_UPDATE路径). - backend_
order_ type_ to_ ftapi - Backend
odr_sys_cmn::OrderType→ FTAPITrd_Common::OrderType. - backend_
real_ market_ to_ trd_ market_ like_ cpp - create_
backend_ req_ id - Create C++-shaped backend
MsgHeader.req_id. - derive_
backend_ market_ list - 派生 backend 用的 market list:
enabled_markets→ 过is_valid_trd_market(env, m)→convert_trd_market_c2s(m). - hash_
str_ to_ u64 - C++
HashStrToU64对齐实现,用于把 backend alphanumeric order/fill id 投影成 FTAPIuint64 orderID/fillID. - history_
order_ fill_ list_ cmd_ for_ env - history_
order_ list_ cmd_ for_ env - init_
trade_ data - 为所有真实账户查询资金和持仓 (CMD 3020)
- is_
valid_ real_ trd_ market_ like_ cpp - order_
fill_ info_ cmd_ for_ env - order_
fill_ list_ cmd_ for_ env - order_
info_ cmd_ for_ env - order_
proto_ to_ cached_ like_ cpp - order_
query_ security_ types_ like_ cpp - Security type list for order-list/history-order-list query body.
- query_
account_ info - 查询真实账户资金+持仓 (CMD 3020: AccountInfoReq)
- query_
crypto_ account_ info - Query crypto account funds through CMD20631.
- query_
crypto_ cash_ logs - Query crypto cash logs through CMD20632 for FTAPI Trd_FlowSummary.
- query_
crypto_ history_ order_ fills - Query crypto history fills through CMD21234.
- query_
crypto_ history_ orders - Query crypto history orders through CMD20623.
- query_
crypto_ max_ buy_ sell_ qty - query_
crypto_ order_ fees - query_
crypto_ order_ fills - query_
crypto_ order_ info - Query crypto order details through CMD20625 and merge them into order cache.
- query_
crypto_ order_ related_ fills - Query fills for one crypto order through CMD20624.
- query_
crypto_ orders - query_
crypto_ position_ account_ info - Query crypto positions through CMD20631.
- query_
crypto_ trade_ configs - Query crypto trade configs through CMD20102.
- query_
funds_ sim - query_
order_ fill_ info_ strict_ for_ push_ refresh - Match C++
CheckRspHeaderAndGetSvrRetresponse gating. - query_
order_ fills - query_
order_ fills_ strict_ for_ push_ refresh - v1.4.106 codex 0932 F3 [P2]: strict 版 query_order_fills for push-refresh path.
- query_
order_ info_ strict_ for_ push_ refresh - Strict order detail query for C++ push-refresh parity.
- query_
orders - query_
orders_ strict - v1.4.109: strict 版 query_orders for write/push safety paths.
- query_
orders_ strict_ for_ push_ refresh - v1.4.106 codex 0932 F3 [P2]: strict 版 query_orders for push-refresh path.
- query_
position_ account_ info - Query real-account positions through CMD3020 using the C++ PositionList request shape.
- query_
positions_ sim - trade_
query_ command - try_
order_ fill_ proto_ to_ info_ like_ cpp - Backend
odr_sys_cmn::OrderFill→ OpenD cache/APIOrderFillInfo.