pub struct MarketData {
pub timestamp_ns: u64,
pub symbol: String,
pub bid_prices: Vec<Decimal>,
pub bid_quantities: Vec<Decimal>,
pub ask_prices: Vec<Decimal>,
pub ask_quantities: Vec<Decimal>,
pub trades: Vec<TradeUpdate>,
}Expand description
Market data for batch calculation Market data for batch calculation.
Fields§
§timestamp_ns: u64Nanosecond timestamp of the update.
symbol: StringThe trading symbol.
bid_prices: Vec<Decimal>A vector of bid prices.
bid_quantities: Vec<Decimal>A vector of bid quantities.
ask_prices: Vec<Decimal>A vector of ask prices.
ask_quantities: Vec<Decimal>A vector of ask quantities.
trades: Vec<TradeUpdate>A vector of trades.
Trait Implementations§
Source§impl Clone for MarketData
impl Clone for MarketData
Source§fn clone(&self) -> MarketData
fn clone(&self) -> MarketData
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 moreAuto Trait Implementations§
impl Freeze for MarketData
impl RefUnwindSafe for MarketData
impl Send for MarketData
impl Sync for MarketData
impl Unpin for MarketData
impl UnwindSafe for MarketData
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