pub struct Position {Show 17 fields
pub ordertxid: String,
pub posstatus: String,
pub pair: String,
pub time: f64,
pub side: BuySell,
pub ordertype: OrderType,
pub cost: Decimal,
pub fee: Decimal,
pub vol: Decimal,
pub vol_closed: Decimal,
pub margin: Decimal,
pub value: Option<Decimal>,
pub net: Option<Decimal>,
pub terms: Option<String>,
pub rollovertm: Option<String>,
pub misc: String,
pub oflags: String,
}Expand description
Position details.
Fields§
§ordertxid: StringOrder ID.
posstatus: StringPosition status.
pair: StringAsset pair.
time: f64Open timestamp.
side: BuySellType (buy/sell).
ordertype: OrderTypeOrder type.
cost: DecimalOpening cost.
fee: DecimalOpening fee.
vol: DecimalPosition volume.
vol_closed: DecimalVolume closed.
margin: DecimalInitial margin.
value: Option<Decimal>Current value.
net: Option<Decimal>Unrealized profit/loss.
terms: Option<String>Terms.
rollovertm: Option<String>Roll over cost.
misc: StringMiscellaneous info.
oflags: StringOrder flags.
Trait 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