Reference / Trade execution

Where duplicates stop

A fill is offered to the event spine before anything acts on it, and only what the record accepts is passed on.

Contents

That makes the spine the one place a repeat is caught, and repeats are ordinary. The same trade reaches Praxis by three routes: the reply to the send that caused it, the venue's live reports, and a later check of the venue's own list of trades. It must count once however many of them arrive.

What counts as the same

Four things are kept together for every trade taken: the numbered period, the account, the trading pair, and the venue's own name for that trade.

That number is given to the host when it starts, and several starts can share one, so restarting under the same number keeps every refusal already earned. A fill matching all four is refused. The same venue name under a different account, a different pair, or a different numbered period is taken as new.

What a refusal leaves

Nothing comes back for a fill refused this way, and the running pictures are never touched about it. What it would have changed is left exactly as it was.

The refusal is not a failure. It is the ordinary outcome for a report Praxis has already counted, and the send that carried it goes on.

Source evidence
---
row: P2-32
baseline: 49aa659
created: 2026-09-25 19:41 UTC
modified: 2026-10-11 21:09 UTC
evidence:
  - claim: "A fill is offered to the record before anything else is told"
    source: "`execution_manager.py` 4328-4330"
  - claim: "The same execution can be made into a fill from a send's reply, from the venue's live reports, and from a later reconciling of its trade list"
    source: "`execution_manager.py` 4312, `praxis/trading.py` 1787 and 1045-1052"
  - claim: "The record holds the epoch, the account, the symbol and the venue's name for the execution together"
    source: "`event_spine.py` 147-152, written at 1019-1020"
  - claim: "The epoch is given to the host from outside, so a restart under the same number carries the same epoch"
    source: "`launcher.py` 4867, carried at 4962-4963"
  - claim: "A fill matching all four is refused there"
    source: "`event_spine.py` 1021-1022"
  - claim: "Nothing comes back for a fill refused that way"
    source: "`execution_manager.py` 4329-4330"
---

Edit this sourceCheckout revision · 7381aa49
Reference / keep your place
Find a passage