Skip to main content

AggTradeMessage

Struct AggTradeMessage 

Source
pub struct AggTradeMessage {
Show 25 fields pub event_type: String, pub event_time: u64, pub symbol: String, pub agg_trade_id: u64, pub price: String, pub quantity: String, pub first_trade_id: u64, pub last_trade_id: u64, pub trade_time: u64, pub is_buyer_maker: bool, pub tx_hash: String, pub user_address: Option<String>, pub order_id: Option<u64>, pub is_maker: Option<bool>, pub is_full_fill: Option<bool>, pub is_liquidation: Option<bool>, pub fee: Option<String>, pub net_fee: Option<String>, pub fee_asset: Option<String>, pub client_order_id: Option<ClientOrderId>, pub side: Option<String>, pub fill_type: Option<String>, pub cumulative_filled_size: Option<String>, pub cumulative_filled_cot: Option<String>, pub remaining_size: Option<String>,
}
Expand description

AggTrade message with DEX-specific fields.

As of trading-api 2026-05-23, the DEX-specific fields (ua, oi, mk, ff, lq, fe, nf, fa, co, sd, ft, z, Z, rs) are emitted as deprecated empty/zero placeholders. Consumers should treat their values as meaningless and use @user.orders for real fill data.

Fields§

§event_type: String§event_time: u64§symbol: String§agg_trade_id: u64§price: String§quantity: String§first_trade_id: u64§last_trade_id: u64§trade_time: u64§is_buyer_maker: bool§tx_hash: String§user_address: Option<String>

Deprecated: empty-string placeholder as of 2026-05-23. Use @user.orders.

§order_id: Option<u64>

Deprecated: zero placeholder as of 2026-05-23. Use @user.orders i field.

§is_maker: Option<bool>

Deprecated: empty placeholder as of 2026-05-23. Use @user.orders m field.

§is_full_fill: Option<bool>

Deprecated: empty placeholder as of 2026-05-23. Use order status X or rs == 0.

§is_liquidation: Option<bool>

Deprecated: empty placeholder as of 2026-05-23. Use @user.orders fill type ft.

§fee: Option<String>

Deprecated: zero placeholder as of 2026-05-23. Use @user.orders n.

§net_fee: Option<String>

Deprecated: zero placeholder as of 2026-05-23.

§fee_asset: Option<String>

Deprecated: empty-string placeholder as of 2026-05-23. Use @user.orders N.

§client_order_id: Option<ClientOrderId>

Deprecated: empty placeholder as of 2026-05-23. Use @user.orders co.

§side: Option<String>

Deprecated: empty-string placeholder as of 2026-05-23. Use @user.orders S.

§fill_type: Option<String>

Deprecated: emitted as zero/empty placeholder. Use @user.orders ft.

§cumulative_filled_size: Option<String>

Deprecated: emitted as zero/empty placeholder. Use @user.orders z.

§cumulative_filled_cot: Option<String>

Deprecated: emitted as zero/empty placeholder. Use @user.orders Z.

§remaining_size: Option<String>

Deprecated: emitted as zero/empty placeholder. Use @user.orders rs.

Trait Implementations§

Source§

impl Clone for AggTradeMessage

Source§

fn clone(&self) -> AggTradeMessage

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for AggTradeMessage

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'de> Deserialize<'de> for AggTradeMessage

Source§

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 Serialize for AggTradeMessage

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,