Skip to main content

py_create_inferred_reconciliation_trade_id

Function py_create_inferred_reconciliation_trade_id 

Source
pub fn py_create_inferred_reconciliation_trade_id(
    account_id: AccountId,
    instrument_id: InstrumentId,
    client_order_id: ClientOrderId,
    venue_order_id: Option<VenueOrderId>,
    order_side: OrderSide,
    order_type: OrderType,
    filled_qty: Quantity,
    last_qty: Quantity,
    last_px: Price,
    position_id: PositionId,
    ts_last: u64,
) -> TradeId
Expand description

Create a deterministic TradeId for an inferred reconciliation fill.

The account_id scopes the ID to the venue account, preventing cross-account collisions on venues where venue_order_id is only account-unique. The ts_last (venue-provided) differentiates successive reconciliation incidents with the same shape while keeping cross-restart replays deterministic.