pub struct DepthSnapshot<'a> {
pub time: Timestamp,
pub prices: &'a [f64],
pub sizes: &'a [f64],
}Expand description
One order book snapshot: the resting size at each price (bids and asks together). Prices are expected in book order (sorted either way): adjacent prices in the same row are added up.
Fields§
§time: TimestampTime, UTC ms.
prices: &'a [f64]Prices.
sizes: &'a [f64]Resting sizes (≥ 0; 0 is ignored).
Trait Implementations§
Source§impl<'a> Clone for DepthSnapshot<'a>
impl<'a> Clone for DepthSnapshot<'a>
impl<'a> Copy for DepthSnapshot<'a>
Source§impl<'a> Debug for DepthSnapshot<'a>
impl<'a> Debug for DepthSnapshot<'a>
Source§impl<'a> PartialEq for DepthSnapshot<'a>
impl<'a> PartialEq for DepthSnapshot<'a>
impl<'a> StructuralPartialEq for DepthSnapshot<'a>
Auto Trait Implementations§
impl<'a> Forget for DepthSnapshot<'a>
impl<'a> Freeze for DepthSnapshot<'a>
impl<'a> Move for DepthSnapshot<'a>
impl<'a> RefUnwindSafe for DepthSnapshot<'a>
impl<'a> Send for DepthSnapshot<'a>
impl<'a> Sync for DepthSnapshot<'a>
impl<'a> Unpin for DepthSnapshot<'a>
impl<'a> UnsafeUnpin for DepthSnapshot<'a>
impl<'a> UnwindSafe for DepthSnapshot<'a>
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