pub struct Spread {
pub bid: Decimal,
pub ask: Decimal,
pub timestamp: String,
pub bid_volume: Decimal,
pub ask_volume: Decimal,
}
Expand description
Best bid and ask and volumes at the recorded timestamp
Fields§
§bid: Decimal
§ask: Decimal
§timestamp: String
§bid_volume: Decimal
§ask_volume: Decimal
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Spread
impl<'de> Deserialize<'de> for Spread
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
impl StructuralPartialEq for Spread
Auto Trait Implementations§
impl Freeze for Spread
impl RefUnwindSafe for Spread
impl Send for Spread
impl Sync for Spread
impl Unpin for Spread
impl UnwindSafe for Spread
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