Hyperliquid Fill Reconciliation: Matching Orders, Fills and Positions
Local bot state is a decision cache; the exchange remains authoritative after disconnects and timeouts.
Hyperliquid Fill Reconciliation: Matching Orders, Fills and Positions
Local bot state is a decision cache; the exchange remains authoritative after disconnects and timeouts.
Model the failure correctly
Ingest fills with an overlapping cursor window and deduplicate by stable exchange identifiers.
Collect evidence
Compare desired orders, observed open orders, recorded fills, and authoritative positions.
Build the control path
Apply each fill once in the same database transaction as inventory and PnL projection updates.
Handle edge cases
Treat an absent order as ambiguous until fills or a terminal state explain it.
Recovery procedure
Pause risk-increasing actions when unexplained position divergence exceeds a threshold.
Production metrics
Track oldest unresolved order, ingestion delay, duplicates, position delta, and repair frequency.
TierZero can help implement or review this architecture through our relevant engineering service.
Primary reference
See the official technical documentation and pin the exact API behavior used by your deployment.
Building this for production?
We turn this architecture into tested, non-custodial software with monitoring, documentation and deployment support.
Related technical guides
Hyperliquid Market Making: A Practical Guide
How market-making bots earn on Hyperliquid perps — quoting around fair value, skewing by inventory, capturing funding, and the risk controls that keep the book safe.
Read articleHyperliquid Market Making: HFT Bot Strategies for Perps
A deep-dive into building market-making bots on Hyperliquid perps, covering spread capture, inventory management, and how to compete against professional MMs on the order book. Includes real config patterns for tick-size quoting and delta hedging.
Read articleHyperliquid Market Making: Capturing Maker Rebates at Scale
A practical breakdown of how to build a hyperliquid maker rebate bot that optimizes quote placement around tier thresholds, inventory limits, and CLOB dynamics.
Read article