Structs§
- Crypto
Cash LogInfo - Crypto
MaxBuy Sell QtyInfo - Crypto
Order FeeInfo - Crypto
Order FeeItem - Current
Order Query Result - Order
Fill Info - Cached current-order fill row, matching the public/backend projection used by current fill queries and direct fill notifications.
Enums§
- Cmd3020
Quote Level - C++
NNProto_Trd_AccReal::QueryAssetInnerquote-level fact for real CMD3020 requests. The caller must snapshot this from the sharedQotRightCache; the backend adapter deliberately has no silent default. - Trade
Backend Channel - Trade
Query Body Proto - Trade
Query Operation
Constants§
- CMD_
ACCOUNT_ INFO - 账户资产查询命令 ID (真实账户: 资金+持仓)
- CMD_
FUND_ BOND_ DETAIL_ ASSET - 基金/债券总资产查询命令 ID。仅真实账户 sidecar;C++ 从
NNProto_Trd_AccReal::QueryFundNoLimit经 Broker 通道发送,无模拟路径。 - 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 推导。
Offset/callback command exists, but C++
NNProto_Trd_DealSimulate::QueryDealInforeturns 0 without sending it. Do not treat this constant as runtime support. - CMD_
SIM_ QUERY_ ORDER_ FILL_ LIST - Sim 账户成交列表查询 CMD。显式登记,禁止调用点用 offset 推导。
Offset/callback command exists, but C++
NNProto_Trd_DealSimulate::QueryDealListreturns 0 without sending it. Do not treat this constant as runtime support. - 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_
order_ status_ to_ ftapi - Backend
odr_sys_cmn::OrderStatus-> FTAPITrd_Common::OrderStatus. - backend_
real_ market_ to_ trd_ market_ like_ cpp - Backend real market -> FTAPI
TrdMarket. - create_
backend_ req_ id - Create C++-shaped backend
MsgHeader.req_id. - hash_
str_ to_ u64 - C++
HashStrToU64compatibility wrapper for existing backend call sites. - 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 - C++ accepted real-account trade markets after backend-market conversion.
- order_
fill_ info_ cmd_ for_ env - order_
fill_ list_ cmd_ for_ env - order_
info_ cmd_ for_ env - order_
proto_ to_ cached_ like_ cpp - query_
account_ info - 查询真实账户资金+持仓 (CMD 3020: AccountInfoReq)
- query_
account_ info_ after_ trade_ push - Refresh real-account assets after CMD4716 ASSET/QUOTE notification.
- query_
crypto_ account_ info - Query crypto account funds through CMD20631.
- query_
crypto_ account_ info_ for_ startup - Startup-only Crypto asset read. Unlike public/write paths, C++ startup can query before trade unlock and serializes a present but empty asset cipher.
- 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 max buy/sell quantity through CMD20622.
- query_
crypto_ order_ fees - query_
crypto_ order_ fills - query_
crypto_ order_ fills_ for_ startup - Startup-only current-fill read. CMD21237 carries the long account id but no cipher field; C++ permits this Login read before trade unlock.
- 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_ orders_ for_ startup - Startup-only recent-order read. C++ permits this read before trade unlock;
an empty cipher is omitted from
CryptoMsgHeaderwhile strict/write paths continue to require the cached cipher. - 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_ for_ startup - Startup necessary-data read. A malformed, partial, or backend-error response must not be converted into an authoritative empty snapshot.
- 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. - try_
order_ fill_ proto_ to_ info_ with_ jp_ acc_ type_ like_ cpp