pub struct ClosedPosition {Show 17 fields
pub proxy_wallet: String,
pub asset: String,
pub condition_id: String,
pub avg_price: f64,
pub total_bought: f64,
pub realized_pnl: f64,
pub cur_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 opposite_outcome: String,
pub opposite_asset: String,
pub end_date: Option<String>,
}Expand description
Closed position record
Fields§
§proxy_wallet: StringProxy wallet address
asset: StringAsset identifier (token ID)
condition_id: StringCondition ID of the market
avg_price: f64Average entry price
total_bought: f64Total amount bought
realized_pnl: f64Realized profit and loss
cur_price: f64Current market price
timestamp: i64Timestamp when position was closed
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)
opposite_outcome: StringOpposite outcome name
opposite_asset: StringOpposite outcome asset ID
end_date: Option<String>Market end date
Trait Implementations§
Source§impl Clone for ClosedPosition
impl Clone for ClosedPosition
Source§fn clone(&self) -> ClosedPosition
fn clone(&self) -> ClosedPosition
Returns a duplicate of the value. Read more
1.0.0 · 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 ClosedPosition
impl Debug for ClosedPosition
Source§impl<'de> Deserialize<'de> for ClosedPosition
impl<'de> Deserialize<'de> for ClosedPosition
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 ClosedPosition
impl RefUnwindSafe for ClosedPosition
impl Send for ClosedPosition
impl Sync for ClosedPosition
impl Unpin for ClosedPosition
impl UnwindSafe for ClosedPosition
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