Skip to main content

Module command_runtime

Module command_runtime 

Source
Expand description

Compatibility exports and backend transport adapter for futu-command-runtime.

Pure command execution contracts live in futu-command-runtime; this module keeps the stable futu_backend::command_runtime import path and wires the production backend connection into the new transport trait.

Structs§

ChannelBoundBackendTransport
CommandExecution
CommandExecutionContext
Caller-owned command execution input before command-spec lookup.
CommandRuntime
CommandRuntimeDecision
Decision returned by the pure command runtime.

Enums§

BackendExtensionOperation
ChannelId
Runtime identity for one backend channel.
ChannelLifecycleState
Coarse lifecycle state shared by recovery actors and operator diagnostics.
ChannelRuntimeAction
Side effect selected by a lifecycle transition.
CommandExecutionOutcome
CommandOutcome
Coarse outcome observed after one backend command attempt.
CommandRuntimeAction
Command-level action expected from the owner.
CommandRuntimeError
CryptoTradeOperation
IndicatorCommandOperation
MarketEventOperation
QotReadOperation
QotWriteOperation
StaticDataReadOperation
SystemReadOperation
TradeAccountDiscoveryOperation
TradeAuthOperation
TradeQueryEnvironment
TradeQueryOperation
TradeWriteOperation
UserCloudOperation

Constants§

CMD_ALGO_ORDER_LOGS
FTFinancialSDK algorithm execution-log query. The source request uses zero-based page_index/page_size and the response reports total_cnt.
CMD_BATCH_CLOSE_POSITIONS
CMD_BFF_ORDER_CANCEL
CMD_BFF_ORDER_CONFIRM
CMD_BFF_ORDER_DELETE
CMD_BFF_ORDER_DETAIL
CMD_BFF_ORDER_NEW_V2
FTFinancialSDK BFF mutation family used by guarded group/algo orders. Ref: FINProtocolCmdDefine.h:10-16; C++ OpenD NNInterCmdConfig.cpp:11961-11979 confirms Broker encrypted-sec wire.
CMD_BFF_ORDER_REPLACE
CMD_CLEAR_FUTURES_POSITIONS
CMD_CUSTOMER_BCAN
Desktop A-share customer BCAN refresh.
CMD_CUSTOMER_COMPANY_INFO
Desktop live customer-company classification. The request is sent on the authenticated broker channel and intentionally omits the optional uid.
CMD_GET_BIZ_GROUP
CMD_GET_BOND_ANSWER_STATE
CMD_GET_BOND_POSITION_LIST
CMD_GET_BOND_SINGLE_ASSET
CMD_GET_BOND_TOTAL_ASSET
Mobile bond query command identities. These are protocol enum constants, not server-discovered configuration. Body ownership comes from ftmobileapp/.../bond_client_view.proto; C++ OpenD NNInterCenter/NNInterCmdConfig.cpp:4937-4944,5309-5310,5351-5352 confirms Broker encrypted-sec wire. If either upstream source changes, update all five specs, runtime routing tests, and the candidate ledger.
CMD_GET_BOND_TRADE_REMINDER
CMD_GET_CASH_DETAIL
CMD_GET_CASH_LOG
CMD_GET_CN_AH_MARGIN_INFO
CMD_GET_HK_MARGIN_INFO
CMD_GET_US_MARGIN_INFO
CMD_POSITION_ACTION_RESULT
CMD_POSITION_CORPORATE_ACTION_DERIVATIVE
CMD_POSITION_CORPORATE_ACTION_STOCK
Desktop position-related corporate-action queries. C++ OpenD wire registry confirms both are broker-channel encrypted+sec commands.
CMD_PULL_ACCOUNT_FLAG
CMD_REVERSE_POSITION
CMD_ROLL_POSITION

Functions§

decide_command_outcome
Decide command-level handling while reusing the channel runtime contract.
execute_backend_extension
execute_backend_extension_guarded
execute_broker_discovery
execute_connection_discovery
execute_crypto_trade_command
execute_heartbeat
execute_indicator_read
execute_market_event
execute_qot_plaintext
execute_qot_read
execute_qot_read_with_reserved
execute_qot_subscription_set
execute_qot_write
execute_qot_write_guarded
execute_static_data_read
execute_system_read
execute_trade_account_discovery
execute_trade_auth
execute_trade_read
execute_trade_write
execute_user_cloud

Type Aliases§

QotWritePublishTerminal