pub struct OpenPosition {Show 17 fields
pub order_tx_id: String,
pub pos_status: PositionStatus,
pub pair: String,
pub time: f64,
pub side: BuySell,
pub order_type: OrderType,
pub cost: Decimal,
pub fee: Decimal,
pub volume: Decimal,
pub volume_closed: Decimal,
pub margin: Decimal,
pub value: Option<Decimal>,
pub net: Option<Decimal>,
pub terms: String,
pub rollover_time: String,
pub misc: String,
pub order_flags: Vec<OrderFlag>,
}
Expand description
Details of an open margin position
Fields§
§order_tx_id: String
§pos_status: PositionStatus
§pair: String
§time: f64
§side: BuySell
§order_type: OrderType
§cost: Decimal
§fee: Decimal
§volume: Decimal
§volume_closed: Decimal
§margin: Decimal
§value: Option<Decimal>
§net: Option<Decimal>
§terms: String
§rollover_time: String
§misc: String
§order_flags: Vec<OrderFlag>
Trait Implementations§
Source§impl Clone for OpenPosition
impl Clone for OpenPosition
Source§fn clone(&self) -> OpenPosition
fn clone(&self) -> OpenPosition
Returns a copy 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 OpenPosition
impl Debug for OpenPosition
Source§impl<'de> Deserialize<'de> for OpenPosition
impl<'de> Deserialize<'de> for OpenPosition
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
Source§impl PartialEq for OpenPosition
impl PartialEq for OpenPosition
impl StructuralPartialEq for OpenPosition
Auto Trait Implementations§
impl Freeze for OpenPosition
impl RefUnwindSafe for OpenPosition
impl Send for OpenPosition
impl Sync for OpenPosition
impl Unpin for OpenPosition
impl UnwindSafe for OpenPosition
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