pub struct AccountPosition {
pub entry_price: Decimal,
pub initial_margin: Decimal,
pub maint_margin: Decimal,
pub market_id: u16,
pub position_amt: Decimal,
pub position_side: String,
pub symbol: String,
pub unrealized_profit: Decimal,
pub update_time: i64,
}Expand description
AccountPosition
JSON schema
{
"type": "object",
"required": [
"entryPrice",
"initialMargin",
"maintMargin",
"marketId",
"positionAmt",
"positionSide",
"symbol",
"unrealizedProfit",
"updateTime"
],
"properties": {
"entryPrice": {
"type": "string",
"format": "decimal"
},
"initialMargin": {
"type": "string",
"format": "decimal"
},
"maintMargin": {
"type": "string",
"format": "decimal"
},
"marketId": {
"type": "integer",
"format": "uint16",
"minimum": 0.0
},
"positionAmt": {
"type": "string",
"format": "decimal"
},
"positionSide": {
"type": "string"
},
"symbol": {
"type": "string"
},
"unrealizedProfit": {
"type": "string",
"format": "decimal"
},
"updateTime": {
"type": "integer",
"format": "int64"
}
}
}Fields§
§entry_price: Decimal§initial_margin: Decimal§maint_margin: Decimal§market_id: u16§position_amt: Decimal§position_side: String§symbol: String§unrealized_profit: Decimal§update_time: i64Trait Implementations§
Source§impl Clone for AccountPosition
impl Clone for AccountPosition
Source§fn clone(&self) -> AccountPosition
fn clone(&self) -> AccountPosition
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 AccountPosition
impl Debug for AccountPosition
Source§impl<'de> Deserialize<'de> for AccountPosition
impl<'de> Deserialize<'de> for AccountPosition
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 AccountPosition
impl RefUnwindSafe for AccountPosition
impl Send for AccountPosition
impl Sync for AccountPosition
impl Unpin for AccountPosition
impl UnsafeUnpin for AccountPosition
impl UnwindSafe for AccountPosition
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