pub struct Trade {Show 19 fields
pub proxy_wallet: String,
pub side: TradeSide,
pub asset: String,
pub condition_id: String,
pub size: f64,
pub price: f64,
pub timestamp: i64,
pub title: String,
pub slug: String,
pub icon: Option<String>,
pub event_slug: Option<String>,
pub outcome: String,
pub outcome_index: u32,
pub name: Option<String>,
pub pseudonym: Option<String>,
pub bio: Option<String>,
pub profile_image: Option<String>,
pub profile_image_optimized: Option<String>,
pub transaction_hash: Option<String>,
}Expand description
Trade record
Fields§
§proxy_wallet: StringProxy wallet address
side: TradeSideTrade side (BUY or SELL)
asset: StringAsset identifier (token ID)
condition_id: StringCondition ID of the market
size: f64Trade size (number of shares)
price: f64Trade price
timestamp: i64Trade timestamp
title: StringMarket title
slug: StringMarket slug
icon: Option<String>Market icon URL
event_slug: Option<String>Event slug
outcome: StringOutcome name (e.g., “Yes”, “No”)
outcome_index: u32Outcome index (0 or 1 for binary markets)
name: Option<String>User display name
pseudonym: Option<String>User pseudonym
bio: Option<String>User bio
profile_image: Option<String>User profile image URL
profile_image_optimized: Option<String>Optimized profile image URL
transaction_hash: Option<String>Transaction hash
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Trade
impl<'de> Deserialize<'de> for Trade
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 Trade
impl RefUnwindSafe for Trade
impl Send for Trade
impl Sync for Trade
impl Unpin for Trade
impl UnwindSafe for Trade
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