订单簿事件与市场微观结构
原能力
处理订单簿事件、盘口缺口及恢复,形成有来源的微观结构特征。(合同附件 R7 9.6)
首选项目
NautilusTrader(LGPL-3.0(仓库标注))。 NautilusTrader
匹配范围
Order book 和消息对象承载市场数据。
源码
NautilusTrader · pub struct OrderBook
crates/model/src/orderbook/book.rs · 59–72 行。 在 GitHub 查看源码 · 许可证与声明
源码片段
pub struct OrderBook {
/// The instrument ID for the order book.
pub instrument_id: InstrumentId,
/// The order book type (MBP types will aggregate orders).
pub book_type: BookType,
/// The last event sequence number for the order book.
pub sequence: u64,
/// The timestamp of the last event applied to the order book.
pub ts_last: UnixNanos,
/// The current count of updates applied to the order book.
pub update_count: u64,
pub(crate) bids: BookLadder,
pub(crate) asks: BookLadder,
}
- // Copyright (C) 2015-2026 Nautech Systems Pty Ltd. All rights reserved.
实现与验收要点
实际行情资格、撮合来源序列与微观结构规则。