pub struct RecordedFill {Show 13 fields
pub id: String,
pub action_id: Option<String>,
pub position_id: String,
pub symbol: String,
pub signal_ts: Option<NaiveDateTime>,
pub effective_ts: NaiveDateTime,
pub execution_ts: Option<NaiveDateTime>,
pub quote_ts: NaiveDateTime,
pub quote_age_millis: Option<i64>,
pub size: f64,
pub bid: f64,
pub ask: f64,
pub fill: ExecutionFill,
}Expand description
An execution fill enriched with all timing and quote context needed for an execution audit.
Fields§
§id: String§action_id: Option<String>§position_id: String§symbol: String§signal_ts: Option<NaiveDateTime>Source signal time. Engine-generated exits may have no source signal.
effective_ts: NaiveDateTimeTime at which the action became eligible for execution.
execution_ts: Option<NaiveDateTime>Timestamp at which the fill changed execution/account state.
quote_ts: NaiveDateTimeTimestamp of the source quote used by the execution pricer.
quote_age_millis: Option<i64>Age of the source quote at execution. Older payloads omit this field.
size: f64§bid: f64§ask: f64§fill: ExecutionFillPrice-selection and slippage result from qs_core.
Implementations§
Source§impl RecordedFill
impl RecordedFill
pub fn from_quote( position_id: impl Into<String>, action_id: Option<String>, sequence: u64, signal_ts: Option<NaiveDateTime>, effective_ts: NaiveDateTime, size: f64, quote: &PriceQuote, fill: ExecutionFill, ) -> Self
pub fn from_quote_at( position_id: impl Into<String>, action_id: Option<String>, sequence: u64, signal_ts: Option<NaiveDateTime>, effective_ts: NaiveDateTime, execution_ts: NaiveDateTime, size: f64, quote: &PriceQuote, fill: ExecutionFill, ) -> Self
Trait Implementations§
Source§impl Clone for RecordedFill
impl Clone for RecordedFill
Source§fn clone(&self) -> RecordedFill
fn clone(&self) -> RecordedFill
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 RecordedFill
impl Debug for RecordedFill
Source§impl<'de> Deserialize<'de> for RecordedFill
impl<'de> Deserialize<'de> for RecordedFill
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
Source§impl PartialEq for RecordedFill
impl PartialEq for RecordedFill
Source§impl Serialize for RecordedFill
impl Serialize for RecordedFill
impl StructuralPartialEq for RecordedFill
Auto Trait Implementations§
impl Freeze for RecordedFill
impl RefUnwindSafe for RecordedFill
impl Send for RecordedFill
impl Sync for RecordedFill
impl Unpin for RecordedFill
impl UnsafeUnpin for RecordedFill
impl UnwindSafe for RecordedFill
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