pub struct Position {Show 23 fields
pub position_idx: i32,
pub risk_id: i32,
pub risk_limit_value: String,
pub symbol: String,
pub side: String,
pub size: String,
pub avg_price: String,
pub position_value: String,
pub trade_mode: i32,
pub position_status: String,
pub leverage: String,
pub mark_price: String,
pub liq_price: String,
pub bust_price: String,
pub position_mm: String,
pub position_im: String,
pub take_profit: String,
pub stop_loss: String,
pub trailing_stop: String,
pub unrealised_pnl: String,
pub cum_realised_pnl: String,
pub created_time: String,
pub updated_time: String,
}Expand description
Position info.
Fields§
§position_idx: i32Position index
risk_id: i32Risk ID
risk_limit_value: StringRisk limit value
symbol: StringSymbol
side: StringSide
size: StringSize
avg_price: StringAverage entry price
position_value: StringPosition value
trade_mode: i32Trade mode (0=cross, 1=isolated)
position_status: StringPosition status
leverage: StringLeverage
mark_price: StringMark price
liq_price: StringLiquidation price
bust_price: StringBust price
position_mm: StringPosition margin
position_im: StringPosition initial margin
take_profit: StringTake profit price
stop_loss: StringStop loss price
trailing_stop: StringTrailing stop
unrealised_pnl: StringUnrealised PnL
cum_realised_pnl: StringCumulative realised PnL
created_time: StringCreated time
updated_time: StringUpdated time
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 UnsafeUnpin 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