OpenHedgeDocs
Menu

Part VI · Unified Executor

Section 065

Order Lifecycle

Every order moves through a fixed set of recorded states, from intent to reconciled fill.

INTENTCHECKEDSENTACKEDFILLEDRECONCILEDREJECTEDReason stored, book unchanged
Figure 65Order states; rejection can happen at check, send or acknowledgement.

The executor records every order as a state machine. Each transition is written to the database before the next step runs, so a restart resumes exactly where the previous process stopped.

StateMeaning
INTENTThe model produced a target and sizing produced a non-zero order. A deterministic cloid is assigned.
CHECKEDRisk state, data freshness, lease (for entries) and the entry band were verified.
SENTThe order was submitted to Hyperliquid.
ACKEDThe venue returned an oid or a resting status.
FILLEDFills for that oid arrived; partial fills keep the order open.
RECONCILEDThe position ledger and the venue agree after the fill.
REJECTEDThe venue rejected the order or a check failed; the reason is stored.

Orders that rest without filling are cancelled when their signal expires. A timeout between SENT and ACKED never causes a resend: the executor queries the venue by cloid first (see Idempotency). Partial fills are common on thin markets; the ledger is updated fill by fill, and the order reaches FILLED only when the full size is done or the remainder is cancelled.

© 2026 HedgeFund DAO · OpenHedgeNot investment advice. Trading leveraged perpetuals can lose all deposited funds.