#[non_exhaustive]pub struct Position {
pub key: MarketKey,
pub size: Decimal,
pub average_price: Option<Decimal>,
pub extensions: Extensions,
}Expand description
What the account holds of one instrument or outcome.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.key: MarketKeyThe instrument or outcome.
size: DecimalThe size held, in the instrument’s native quantity: positive long, negative short. A position in an event’s outcome is never negative, since each outcome has its own key.
average_price: Option<Decimal>The average price paid.
extensions: ExtensionsThe venue’s own facts.
Implementations§
Trait Implementations§
impl StructuralPartialEq for Position
Auto Trait Implementations§
impl !RefUnwindSafe for Position
impl !UnwindSafe for Position
impl Freeze for Position
impl Send for Position
impl Sync for Position
impl Unpin for Position
impl UnsafeUnpin 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