pub struct Position {
pub id: PositionId,
pub symbol: SymbolId,
pub side: Side,
pub quantity: Volume,
pub entry_price: Option<Price>,
}Expand description
An open position.
Fields§
§id: PositionIdIdentifier of the position, the same the other API of the server uses.
symbol: SymbolIdSymbol of the position.
side: SideSide of the position: bought or sold.
quantity: VolumeQuantity held, in units of the base asset.
entry_price: Option<Price>Price the position was opened at.
Trait Implementations§
impl Eq for Position
impl StructuralPartialEq for Position
Auto Trait Implementations§
impl Forget for Position
impl Freeze for Position
impl Move 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