pub struct OrderbookData {
pub ask_volume: Option<String>,
pub asks: Option<Vec<PriceLevel>>,
pub best_ask: Option<String>,
pub best_bid: Option<String>,
pub bid_volume: Option<String>,
pub bids: Option<Vec<PriceLevel>>,
pub price_change: Option<PriceChange>,
}Expand description
OrderbookData
JSON schema
{
"type": "object",
"properties": {
"ask_volume": {
"description": "Total ask-side volume",
"examples": [
"12.3"
],
"type": [
"string",
"null"
]
},
"asks": {
"type": [
"array",
"null"
],
"items": {
"$ref": "#/components/schemas/PriceLevel"
}
},
"best_ask": {
"description": "Lowest ask price",
"examples": [
"35100.00"
],
"type": [
"string",
"null"
]
},
"best_bid": {
"description": "Highest bid price",
"examples": [
"34900.00"
],
"type": [
"string",
"null"
]
},
"bid_volume": {
"description": "Total bid-side volume",
"examples": [
"15.5"
],
"type": [
"string",
"null"
]
},
"bids": {
"type": [
"array",
"null"
],
"items": {
"$ref": "#/components/schemas/PriceLevel"
}
},
"price_change": {
"$ref": "#/components/schemas/PriceChange"
}
}
}Fields§
§ask_volume: Option<String>Total ask-side volume
asks: Option<Vec<PriceLevel>>§best_ask: Option<String>Lowest ask price
best_bid: Option<String>Highest bid price
bid_volume: Option<String>Total bid-side volume
bids: Option<Vec<PriceLevel>>§price_change: Option<PriceChange>Trait Implementations§
Source§impl Clone for OrderbookData
impl Clone for OrderbookData
Source§fn clone(&self) -> OrderbookData
fn clone(&self) -> OrderbookData
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 OrderbookData
impl Debug for OrderbookData
Source§impl Default for OrderbookData
impl Default for OrderbookData
Source§impl<'de> Deserialize<'de> for OrderbookData
impl<'de> Deserialize<'de> for OrderbookData
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 OrderbookData
impl RefUnwindSafe for OrderbookData
impl Send for OrderbookData
impl Sync for OrderbookData
impl Unpin for OrderbookData
impl UnsafeUnpin for OrderbookData
impl UnwindSafe for OrderbookData
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