1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
//! Order types, updates, and supporting domain primitives.
//!
//! This module defines the vocabulary for orders managed by a [`crate::PriceLevel`].
//!
//! # Key Types
//!
//! - [`OrderType`] — enum covering all supported order variants (Standard, Iceberg,
//! Reserve, PostOnly, TrailingStop, PeggedOrder, MarketToLimit).
//! - [`OrderUpdate`] — enum for order mutations (update price, quantity, cancel, replace).
//! - [`Id`] — flexible identifier supporting UUID, ULID, and sequential (`u64`) formats.
//! - [`Side`] — `Buy` or `Sell`, with `#[repr(u8)]` for compact representation.
//! - [`TimeInForce`] — order duration policies (GTC, IOC, FOK, GTD, Day),
//! with `#[repr(u8)]`.
//! - [`Hash32`] — opaque 32-byte user identifier.
//! - [`PegReferenceType`] — reference price type for pegged orders.
//!
//! # Order Lifecycle
//!
//! Orders are constructed as [`OrderType`] variants and added to a
//! [`PriceLevel`](crate::PriceLevel) via [`add_order()`](crate::PriceLevel::add_order).
//! Mutations are applied via [`update_order()`](crate::PriceLevel::update_order)
//! using [`OrderUpdate`] variants.
pub use crateId;
pub use ;
pub use DEFAULT_RESERVE_REPLENISH_AMOUNT;
pub use OrderType;
pub use PegReferenceType;
pub use TimeInForce;
pub use OrderUpdate;