#[non_exhaustive]pub struct StrategyFill {
pub sequence: u64,
pub time: DateTime<Utc>,
pub order_id: String,
pub side: OrderSide,
pub price: f64,
pub quantity: f64,
pub position: f64,
}Expand description
One executed order, including an entry, an exit or a margin liquidation. A reversal is one fill whose quantity includes closing the previous position.
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.sequence: u64Increasing identifier within this live run, starting at one. Retained across rebuilds.
time: DateTime<Utc>Source bar time, or the finer bar time for a historical magnified execution.
order_id: StringIdentifier placed through the strategy context, or "Margin call" for liquidation.
side: OrderSideExecuted order side.
price: f64Execution price, including applicable slippage.
quantity: f64Total executed units, always positive.
position: f64Signed position immediately after this fill, before any fill callback orders execute.
Trait Implementations§
Source§impl Clone for StrategyFill
impl Clone for StrategyFill
Source§fn clone(&self) -> StrategyFill
fn clone(&self) -> StrategyFill
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 StrategyFill
impl Debug for StrategyFill
Source§impl PartialEq for StrategyFill
impl PartialEq for StrategyFill
impl StructuralPartialEq for StrategyFill
Auto Trait Implementations§
impl Freeze for StrategyFill
impl RefUnwindSafe for StrategyFill
impl Send for StrategyFill
impl Sync for StrategyFill
impl Unpin for StrategyFill
impl UnsafeUnpin for StrategyFill
impl UnwindSafe for StrategyFill
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more