和顺 / 衡律 返回所属 Agent
17.6

订单状态和外部回报

原能力

处理订单、成交和外部回报,保留对端原状态、身份、累计量及更正链。(合同附件 R7 17.6)

首选项目

NautilusTrader(LGPL-3.0(仓库标注))。 NautilusTrader

匹配范围

OrderEvent、ExecutionReport 和会话序列状态。

源码

NautilusTrader · pub enum OrderEventAny

crates/model/src/events/order/any.rs · 39–52 行。 在 GitHub 查看源码 · 许可证与声明

源码片段
pub enum OrderEventAny {
    Initialized(OrderInitialized),
    Denied(OrderDenied),
    Emulated(OrderEmulated),
    Released(OrderReleased),
    Submitted(OrderSubmitted),
    Accepted(OrderAccepted),
    Rejected(OrderRejected),
    Canceled(OrderCanceled),
    Expired(OrderExpired),
    Triggered(OrderTriggered),
    PendingUpdate(OrderPendingUpdate),
    PendingCancel(OrderPendingCancel),
    ModifyDenied(OrderModifyDenied),
  • // Copyright (C) 2015-2026 Nautech Systems Pty Ltd. All rights reserved.

NautilusTrader · pub struct OrderFilled

crates/model/src/events/order/filled.rs · 49–62 行。 在 GitHub 查看源码 · 许可证与声明

源码片段
pub struct OrderFilled {
    /// The trader ID associated with the event.
    pub trader_id: TraderId,
    /// The strategy ID associated with the event.
    pub strategy_id: StrategyId,
    /// The instrument ID associated with the event.
    pub instrument_id: InstrumentId,
    /// The client order ID associated with the event.
    pub client_order_id: ClientOrderId,
    /// The venue order ID associated with the event.
    pub venue_order_id: VenueOrderId,
    /// The account ID associated with the event.
    pub account_id: AccountId,
    /// The trade match ID (assigned by the venue).
  • // Copyright (C) 2015-2026 Nautech Systems Pty Ltd. All rights reserved.

实现与验收要点

真实券商、权威回报、来源核验和未决外发。