pub struct MarketTrade {
pub id: String,
pub price: f64,
pub size: f64,
pub aggressor_side: Option<String>,
pub exchange_ts: DateTime<Utc>,
pub openpx_ts: DateTime<Utc>,
pub outcome: Option<String>,
pub yes_price: Option<f64>,
pub no_price: Option<f64>,
pub taker_address: Option<String>,
}Expand description
A public trade off the market tape.
Fields§
§id: StringGlobally-unique exchange trade id (e.g. "t-9c2...").
price: f64Trade price as YES probability in [0, 1] (e.g. 0.62).
size: f64Filled size in contracts (e.g. 25.0).
aggressor_side: Option<String>Direction of the taker relative to YES. Options: buy, sell; null when unknown.
exchange_ts: DateTime<Utc>Upstream trade time in UTC (e.g. "2026-04-25T12:00:00Z").
openpx_ts: DateTime<Utc>Wall-clock time OpenPX served the trade (UTC).
outcome: Option<String>Outcome label (e.g. "Yes", "No"); null when not exposed.
yes_price: Option<f64>YES-side reference price for binary markets (e.g. 0.62).
no_price: Option<f64>NO-side reference price for binary markets (e.g. 0.38).
taker_address: Option<String>Polymarket taker wallet address (e.g. "0x..."); null on Kalshi.
Trait Implementations§
Source§impl Clone for MarketTrade
impl Clone for MarketTrade
Source§fn clone(&self) -> MarketTrade
fn clone(&self) -> MarketTrade
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for MarketTrade
impl Debug for MarketTrade
Source§impl<'de> Deserialize<'de> for MarketTrade
impl<'de> Deserialize<'de> for MarketTrade
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
Auto Trait Implementations§
impl Freeze for MarketTrade
impl RefUnwindSafe for MarketTrade
impl Send for MarketTrade
impl Sync for MarketTrade
impl Unpin for MarketTrade
impl UnsafeUnpin for MarketTrade
impl UnwindSafe for MarketTrade
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