Tous les livres

Professionnel

Applis À propos Coach Connexion Commencer la lecture

Quantitative Finance · Glossaire

Qu'est-ce que « In-flight order, cancel–fill race » ?

Aussi appelé : in-flight order · cancel--fill race

Definition 21.2 Low-Latency Software · Chapitre 21 — Order Gateway and Order Management

An in-flight order is an order in a pending state: a request about it has been sent and its answer has not arrived, so the order may have changed at the venue in ways the firm does not know yet. A cancel–fill race occurs when a fill and a request to cancel or replace the same order cross: the fill happens at the venue before the request arrives there, and its report reaches the firm after the request was sent.

A cancel–fill race. The cancel leaves at c and arrives L later; a fill at the venue between c - d and c + L is reported after the cancel was sent. The gateway, in the state pending cancel, applies the fill and then the “too late” answer, and ends in filled.
Figure 21.2. A cancel–fill race. The cancel leaves at cc and arrives LL later; a fill at the venue between c−dc - d and c+Lc + L is reported after the cancel was sent. The gateway, in the state pending cancel, applies the fill and then the “too late” answer, and ends in filled.
Cancel–fill races against the latency of the cancel, with fills at = 200 per second and reports delayed d = 20\, µ s. The points are the Python gateway against Book 10’s matching engine (two seeded runs of 2 000 orders each per point); the solid curve is the exact probability for orders held 1\, m s on average, the dashed one the formula for orders that have rested at least L + d when cancelled. Data: fig_races.py (deterministic).
Figure 21.3. Cancel–fill races against the latency of the cancel, with fills at λ=200\lambda = 200 per second and reports delayed d=20 µsd = 20\,\text{µ}\mathrm{s}. The points are the Python gateway against Book 10’s matching engine (two seeded runs of 2 000 orders each per point); the solid curve is the exact probability for orders held 1 ms1\,\mathrm{m}\mathrm{s} on average, the dashed one the formula for orders that have rested at least L+dL + d when cancelled. Data: fig_races.py (deterministic).
Lire dans le chapitre →