pub struct OrderBookRecord {
pub timestamp_exchange: u64,
pub timestamp_system: u64,
pub symbol: String,
pub exchange: String,
pub bids: Vec<PriceLevel>,
pub asks: Vec<PriceLevel>,
pub sequence: u64,
pub checksum: Option<String>,
}Expand description
High-level orderbook data structure for easier manipulation
Represents a complete order book snapshot with bid/ask levels. Contains all price levels and metadata for a trading pair at a specific time.
Fields§
§timestamp_exchange: u64Timestamp when the orderbook was captured at the exchange (nanoseconds since epoch)
timestamp_system: u64Timestamp when the orderbook was processed by our system (nanoseconds since epoch)
symbol: StringTrading pair symbol (e.g., “BTCUSDT”)
exchange: StringExchange identifier (e.g., “binance”, “coinbase”)
bids: Vec<PriceLevel>Ordered list of bid price levels (highest to lowest)
asks: Vec<PriceLevel>Ordered list of ask price levels (lowest to highest)
sequence: u64Sequence number for ordering orderbook updates chronologically
checksum: Option<String>Optional checksum for data integrity verification
Trait Implementations§
Source§impl Clone for OrderBookRecord
impl Clone for OrderBookRecord
Source§fn clone(&self) -> OrderBookRecord
fn clone(&self) -> OrderBookRecord
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for OrderBookRecord
impl RefUnwindSafe for OrderBookRecord
impl Send for OrderBookRecord
impl Sync for OrderBookRecord
impl Unpin for OrderBookRecord
impl UnwindSafe for OrderBookRecord
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more