pub struct AggTrade {
pub agg_trade_id: i64,
pub price: FixedPoint,
pub volume: FixedPoint,
pub first_trade_id: i64,
pub last_trade_id: i64,
pub timestamp: i64,
pub is_buyer_maker: bool,
pub is_best_match: Option<bool>,
}Expand description
Aggregate trade data from Binance markets
Represents a single AggTrade record which aggregates multiple individual exchange trades that occurred at the same price within ~100ms timeframe.
Fields§
§agg_trade_id: i64Aggregate trade ID (unique per AggTrade record)
price: FixedPointPrice as fixed-point integer
volume: FixedPointVolume as fixed-point integer (total quantity across all individual trades)
first_trade_id: i64First individual trade ID in this aggregation
last_trade_id: i64Last individual trade ID in this aggregation
timestamp: i64Timestamp in microseconds (preserves maximum precision)
is_buyer_maker: boolWhether buyer is market maker (true = sell pressure, false = buy pressure) Critical for order flow analysis and market microstructure
is_best_match: Option<bool>Whether trade was best price match (Spot market only) None for futures markets, Some(bool) for spot markets
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for AggTrade
impl<'de> Deserialize<'de> for AggTrade
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
Source§impl From<&AggTrade> for TradeSnapshot
impl From<&AggTrade> for TradeSnapshot
Auto Trait Implementations§
impl Freeze for AggTrade
impl RefUnwindSafe for AggTrade
impl Send for AggTrade
impl Sync for AggTrade
impl Unpin for AggTrade
impl UnsafeUnpin for AggTrade
impl UnwindSafe for AggTrade
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