pub struct FillReconciler { /* private fields */ }Expand description
Fill reconciler
Implementations§
Source§impl FillReconciler
impl FillReconciler
Sourcepub fn register_order(
&self,
order_id: String,
symbol: Symbol,
expected_qty: u32,
expected_price_range: Option<(Decimal, Decimal)>,
)
pub fn register_order( &self, order_id: String, symbol: Symbol, expected_qty: u32, expected_price_range: Option<(Decimal, Decimal)>, )
Register an order for reconciliation
Sourcepub async fn reconcile(
&self,
order_id: &str,
broker: &dyn BrokerClient,
) -> Result<ReconciliationResult>
pub async fn reconcile( &self, order_id: &str, broker: &dyn BrokerClient, ) -> Result<ReconciliationResult>
Reconcile an order against actual fill
Sourcepub async fn reconcile_all(
&self,
broker: &dyn BrokerClient,
) -> Result<Vec<ReconciliationResult>>
pub async fn reconcile_all( &self, broker: &dyn BrokerClient, ) -> Result<Vec<ReconciliationResult>>
Reconcile all pending orders
Sourcepub fn pending_count(&self) -> usize
pub fn pending_count(&self) -> usize
Get number of pending reconciliations
Auto Trait Implementations§
impl Freeze for FillReconciler
impl !RefUnwindSafe for FillReconciler
impl Send for FillReconciler
impl Sync for FillReconciler
impl Unpin for FillReconciler
impl !UnwindSafe for FillReconciler
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