pub struct Position {
pub position_id: u64,
pub position_side: i32,
pub code: String,
pub name: String,
pub qty: f64,
pub can_sell_qty: f64,
pub price: f64,
pub cost_price: f64,
pub val: f64,
pub pl_val: f64,
pub pl_ratio: f64,
}Expand description
持仓信息
Fields§
§position_id: u64§position_side: i32§code: String§name: String§qty: f64§can_sell_qty: f64§price: f64§cost_price: f64§val: f64§pl_val: f64§pl_ratio: f64Implementations§
Trait Implementations§
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