matchcore 0.4.0

A high-performance order book and price-time matching engine implemented as a single-threaded, deterministic, in-memory state machine
Documentation
1
2
3
4
5
6
7
8
9
10
11
use crate::{OrderId, OrderKind};

/// Represents a command to cancel an existing order
#[cfg_attr(feature = "serde", derive(serde::Serialize, serde::Deserialize))]
#[derive(Debug, Clone, Copy, PartialEq, Eq)]
pub struct CancelCmd {
    /// The ID of the order to cancel
    pub order_id: OrderId,
    /// The type of the order to cancel
    pub order_kind: OrderKind,
}