pub struct GetOrderbookResponse {
pub base_decimals: Option<i32>,
pub base_token: Option<String>,
pub data: Option<OrderbookData>,
pub event_type: Option<String>,
pub quote_decimals: Option<i32>,
pub quote_token: Option<String>,
pub sequence_number: Option<u32>,
pub symbol: Option<String>,
pub timestamp: Option<String>,
pub trading_mode: Option<String>,
pub trading_pair_id: Option<Uuid>,
}Expand description
Orderbook snapshot with token metadata and sequence number.
JSON schema
{
"description": "Orderbook snapshot with token metadata and sequence number.",
"type": "object",
"properties": {
"base_decimals": {
"description": "Base token decimal places",
"examples": [
8
],
"type": [
"integer",
"null"
],
"format": "int32"
},
"base_token": {
"description": "Base token symbol",
"examples": [
"BTC"
],
"type": [
"string",
"null"
]
},
"data": {
"$ref": "#/components/schemas/OrderbookData"
},
"event_type": {
"description": "Event type identifier",
"examples": [
"orderbook_snapshot"
],
"type": [
"string",
"null"
]
},
"quote_decimals": {
"description": "Quote token decimal places",
"examples": [
6
],
"type": [
"integer",
"null"
],
"format": "int32"
},
"quote_token": {
"description": "Quote token symbol",
"examples": [
"USDC"
],
"type": [
"string",
"null"
]
},
"sequence_number": {
"description": "Orderbook sequence number",
"examples": [
12345
],
"type": [
"integer",
"null"
],
"format": "uint32"
},
"symbol": {
"description": "Trading pair symbol",
"examples": [
"BTC/USDC"
],
"type": [
"string",
"null"
]
},
"timestamp": {
"description": "Snapshot timestamp",
"examples": [
"2023-11-13T10:30:00Z"
],
"type": [
"string",
"null"
]
},
"trading_mode": {
"description": "Trading mode",
"examples": [
"Spot"
],
"type": [
"string",
"null"
]
},
"trading_pair_id": {
"description": "Trading pair UUID",
"examples": [
"123e4567-e89b-12d3-a456-426614174000"
],
"type": [
"string",
"null"
],
"format": "uuid"
}
}
}Fields§
§base_decimals: Option<i32>Base token decimal places
base_token: Option<String>Base token symbol
data: Option<OrderbookData>§event_type: Option<String>Event type identifier
quote_decimals: Option<i32>Quote token decimal places
quote_token: Option<String>Quote token symbol
sequence_number: Option<u32>Orderbook sequence number
symbol: Option<String>Trading pair symbol
timestamp: Option<String>Snapshot timestamp
trading_mode: Option<String>Trading mode
trading_pair_id: Option<Uuid>Trading pair UUID
Trait Implementations§
Source§impl Clone for GetOrderbookResponse
impl Clone for GetOrderbookResponse
Source§fn clone(&self) -> GetOrderbookResponse
fn clone(&self) -> GetOrderbookResponse
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for GetOrderbookResponse
impl Debug for GetOrderbookResponse
Source§impl Default for GetOrderbookResponse
impl Default for GetOrderbookResponse
Source§impl<'de> Deserialize<'de> for GetOrderbookResponse
impl<'de> Deserialize<'de> for GetOrderbookResponse
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 GetOrderbookResponse
impl RefUnwindSafe for GetOrderbookResponse
impl Send for GetOrderbookResponse
impl Sync for GetOrderbookResponse
impl Unpin for GetOrderbookResponse
impl UnsafeUnpin for GetOrderbookResponse
impl UnwindSafe for GetOrderbookResponse
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