pub struct Position {Show 23 fields
pub proxy_wallet: String,
pub asset: String,
pub condition_id: String,
pub size: Decimal,
pub avg_price: Decimal,
pub initial_value: Decimal,
pub current_value: Decimal,
pub cash_pnl: Decimal,
pub percent_pnl: Decimal,
pub total_bought: Decimal,
pub realized_pnl: Decimal,
pub percent_realized_pnl: Decimal,
pub cur_price: Decimal,
pub redeemable: bool,
pub mergeable: bool,
pub title: String,
pub event_id: String,
pub outcome: String,
pub outcome_index: u32,
pub opposite_outcome: String,
pub opposite_asset: String,
pub end_date: String,
pub negative_risk: bool,
}Expand description
User position information
Fields§
§proxy_wallet: String§asset: String§condition_id: String§size: Decimal§avg_price: Decimal§initial_value: Decimal§current_value: Decimal§cash_pnl: Decimal§percent_pnl: Decimal§total_bought: Decimal§realized_pnl: Decimal§percent_realized_pnl: Decimal§cur_price: Decimal§redeemable: bool§mergeable: bool§title: String§event_id: String§outcome: String§outcome_index: u32§opposite_outcome: String§opposite_asset: String§end_date: String§negative_risk: boolTrait Implementations§
Source§impl<'de> Deserialize<'de> for Position
impl<'de> Deserialize<'de> for Position
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 Position
impl RefUnwindSafe for Position
impl Send for Position
impl Sync for Position
impl Unpin for Position
impl UnwindSafe for Position
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more