#[repr(align(64))]pub struct OrderbookResponse {
pub message_type: String,
pub code: String,
pub total_ask_size: Decimal,
pub total_bid_size: Decimal,
pub orderbook_units: Vec<OrderbookUnit>,
pub level: f64,
pub timestamp: u64,
pub stream_type: String,
}Expand description
WebSocket response format for orderbook data
Fields§
§message_type: StringMessage type
code: StringMarket code (e.g., “KRW-BTC”)
total_ask_size: DecimalTotal ask volume
total_bid_size: DecimalTotal bid volume
orderbook_units: Vec<OrderbookUnit>Orderbook units (price levels)
level: f64Price level aggregation
timestamp: u64Message timestamp in milliseconds
stream_type: StringStream type (SNAPSHOT or REALTIME)
Trait Implementations§
Source§impl Clone for OrderbookResponse
impl Clone for OrderbookResponse
Source§fn clone(&self) -> OrderbookResponse
fn clone(&self) -> OrderbookResponse
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 moreSource§impl Debug for OrderbookResponse
impl Debug for OrderbookResponse
Source§impl<'de> Deserialize<'de> for OrderbookResponse
impl<'de> Deserialize<'de> for OrderbookResponse
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for OrderbookResponse
impl RefUnwindSafe for OrderbookResponse
impl Send for OrderbookResponse
impl Sync for OrderbookResponse
impl Unpin for OrderbookResponse
impl UnwindSafe for OrderbookResponse
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