pub struct CfmPosition {Show 16 fields
pub product_id: Ustr,
pub expiration_time: String,
pub side: CoinbaseFcmPositionSide,
pub number_of_contracts: Decimal,
pub current_price: CfmAmount,
pub avg_entry_price: CfmAmount,
pub unrealized_pnl: CfmAmount,
pub daily_realized_pnl: CfmAmount,
pub total_fees: Option<CfmAmount>,
pub contract_size: String,
pub entry_vwap: Option<CfmAmount>,
pub liquidation_price: Option<CfmAmount>,
pub leverage: String,
pub im_contribution: Option<CfmAmount>,
pub mm_contribution: Option<CfmAmount>,
pub position_notional: Option<CfmAmount>,
}Expand description
Position on the Coinbase FCM venue.
Fields§
§product_id: Ustr§expiration_time: String§side: CoinbaseFcmPositionSide§number_of_contracts: Decimal§current_price: CfmAmount§avg_entry_price: CfmAmount§unrealized_pnl: CfmAmount§daily_realized_pnl: CfmAmount§total_fees: Option<CfmAmount>§contract_size: String§entry_vwap: Option<CfmAmount>§liquidation_price: Option<CfmAmount>§leverage: String§im_contribution: Option<CfmAmount>§mm_contribution: Option<CfmAmount>§position_notional: Option<CfmAmount>Trait Implementations§
Source§impl Clone for CfmPosition
impl Clone for CfmPosition
Source§fn clone(&self) -> CfmPosition
fn clone(&self) -> CfmPosition
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 CfmPosition
impl Debug for CfmPosition
Source§impl<'de> Deserialize<'de> for CfmPosition
impl<'de> Deserialize<'de> for CfmPosition
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 CfmPosition
impl RefUnwindSafe for CfmPosition
impl Send for CfmPosition
impl Sync for CfmPosition
impl Unpin for CfmPosition
impl UnsafeUnpin for CfmPosition
impl UnwindSafe for CfmPosition
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,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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