Expand description
Position reconciliation calculation functions.
Structs§
- Fill
Snapshot - Immutable snapshot of fill data for position simulation.
- Reconciliation
Result - Result of processing fill reports for reconciliation.
- Venue
Position Snapshot - Represents a position snapshot from the venue.
Enums§
- Fill
Adjustment Result - Result of the fill adjustment process.
Functions§
- adjust_
fills_ for_ partial_ window - Adjust fills for partial reconciliation window to handle incomplete position lifecycles.
- calculate_
reconciliation_ price - Calculate the price needed for a reconciliation order to achieve target position.
- check_
position_ match - Check if simulated position matches venue position within tolerance.
- create_
synthetic_ fill_ report - Create a synthetic
FillReportfrom aFillSnapshot. - create_
synthetic_ order_ report - Create a synthetic
OrderStatusReportfrom aFillSnapshot. - create_
synthetic_ trade_ id - Create a synthetic
TradeIdusing timestamp and UUID suffix. - create_
synthetic_ venue_ order_ id - Create a synthetic
VenueOrderIdusing timestamp and UUID suffix. - detect_
zero_ crossings - Detect zero-crossing timestamps in a sequence of fills.
- process_
mass_ status_ for_ reconciliation - Process fill reports from a mass status for position reconciliation.
- simulate_
position - Simulate position from chronologically ordered fills using netting logic.