#[repr(C)]pub struct MboMsg {
pub hd: RecordHeader,
pub order_id: u64,
pub price: i64,
pub size: u32,
pub flags: u8,
pub channel_id: u8,
pub action: c_char,
pub side: c_char,
pub ts_recv: u64,
pub ts_in_delta: i32,
pub sequence: u32,
}Expand description
Market-by-order (MBO) tick message.
hd.rtype = 0xA0
Fields§
§hd: RecordHeaderThe common header.
order_id: u64The order ID assigned at the venue.
price: i64The order price expressed as a signed integer where every 1 unit corresponds to 1e-9, i.e. 1/1,000,000,000 or 0.000000001.
size: u32The order quantity.
flags: u8A combination of packet end with matching engine status.
channel_id: u8A channel ID within the venue.
action: c_charThe event action. Can be M[odify], T[rade], C[ancel], A[dd] or special: [S]tatus, [U]pdate.
side: c_charThe order side. Can be A[sk], B[id] or N[one].
ts_recv: u64The capture server received timestamp expressed as number of nanoseconds since UNIX epoch.
ts_in_delta: i32The delta of ts_recv - ts_exchange_send, max 2 seconds.
sequence: u32The message sequence number assigned at the venue.
Trait Implementations§
Source§impl ConstTypeId for MboMsg
impl ConstTypeId for MboMsg
Source§const TYPE_ID: u8 = 160u8
const TYPE_ID: u8 = 160u8
The value of
RecordHeader::rtype for the implementing type.impl Eq for MboMsg
impl StructuralPartialEq for MboMsg
Auto Trait Implementations§
impl Freeze for MboMsg
impl RefUnwindSafe for MboMsg
impl Send for MboMsg
impl Sync for MboMsg
impl Unpin for MboMsg
impl UnwindSafe for MboMsg
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