dex request parameter or a separate dex field in fill objects. The official Hyperliquid Info endpoint documentation does not list dex for userFills or userFillsByTime, and HIP-3 fills identify the builder-deployed perp dex by a prefix in coin, such as xyz:XYZ100. Parse that prefix client-side.
What is HIP-3 and why it matters for fills
HIP-3 is Hyperliquidโs proposal for permissionless builder-deployed perpetuals. It lets deployers create perp dexs with their own markets, oracles, leverage limits, and operational settings. HIP-3 is not a fill-data reporting standard; the fill-tracking issue comes from how HIP-3 assets are identified in API responses.The Info endpoint documentation shows that HIP-3 perp fills use a dex-prefixed asset name in coin, for example xyz:XYZ100. Documented first-perp-dex fills do not use that prefix, for example AVAX.
The core issue: no documented dex filter for user fills
GitHub issue #287 reports that the Python SDK methods user_fills and user_fills_by_time do not accept a dex parameter, while other SDK methods do. The official Info endpoint docs also do not list dex in the request body for userFills or userFillsByTime.
A commenter in that issue reported testing the live mainnet /info endpoint and found that userFills and userFillsByTime returned the same result set whether dex was omitted, set to a valid HIP-3 dex, or set to an invalid value. That is a community report in the issue, not a platform confirmation, but it supports the practical fix: filter fills client-side using the coin prefix.
Fix 1: Parse the dex prefix from coin
Use the coin field to identify HIP-3 fills. If coin contains a colon, the text before the colon is the dex prefix.
def dex_from_fill(fill: dict) -> str | None:
coin = str(fill.get("coin", ""))
if ":" in coin:
return coin.split(":", 1)[0]
return None
Example grouping:
from collections import defaultdict
by_dex = defaultdict(list)
for fill in fills:
dex = dex_from_fill(fill) or "unprefixed"
by_dex[dex].append(fill)
This avoids unsupported venue names and matches the documented HIP-3 asset format. For more background on asset identifiers, see Hyperliquid API Asset IDs: Spot, Builder Perps, and Token ID Mapping.
Fix 2: Page userFillsByTime with documented limits
The official Info endpoint docs state:
userFillsreturns at most 2,000 most recent fills.userFillsByTimereturns at most 2,000 fills per response.userFillsByTimeonly makes the 10,000 most recent fills available.userTwapSliceFillsreturns at most 2,000 most recent TWAP slice fills.
userTwapSliceFills separately.
The docs specify an inclusive startTime and say to use the last returned timestamp for the next page. Do not add one millisecond: that can skip fills sharing the boundary timestamp. This reference example keeps that boundary, deduplicates returned (coin, tid) pairs, and stops with an error if a full page cannot advance the cursor:
import requests
API = "https://api.hyperliquid.xyz/info"
address = "0x..."
start_ms = 0
fills = []
seen = set()
while True:
response = requests.post(
API,
json={"type": "userFillsByTime", "user": address, "startTime": start_ms},
timeout=10,
)
response.raise_for_status()
batch = response.json()
if not batch:
break
for fill in batch:
key = (fill["coin"], fill["tid"])
if key not in seen:
fills.append(fill)
seen.add(key)
if len(batch) < 2000:
break
next_start = max(int(fill["time"]) for fill in batch)
if next_start <= start_ms:
raise RuntimeError("Pagination cannot advance within this timestamp; history may be incomplete")
start_ms = next_start
A time-only cursor cannot guarantee complete retrieval when one timestamp saturates a full response. Treat the no-progress error as incomplete history, preserve previously captured fills, and investigate rather than silently skipping the boundary. The endpoint only exposes the 10,000 most recent fills, so this pattern is suitable for recent fill reconciliation, not unlimited history. For broader reconciliation workflows, see Hyperliquid Missing Fills: Reconciliation Guide.
Fix 3: Use the documented WebSocket userFills subscription
The WebSocket subscriptions docs define a userFills subscription with user and optional aggregateByTime. The docs do not list a dex parameter for userFills.
Like what you're reading? Try it yourself โ this link supports ChartedTrader at no cost to you.
Start Trading on Hyperliquid โSubscription message:
{
"method": "subscribe",
"subscription": {
"type": "userFills",
"user": "0x..."
}
}
Do not assume a separate dex field is present in WebSocket fill payloads. If the received fill object includes coin, apply the same prefix-parsing logic used for REST fills. For more WebSocket message context, see Hyperliquid WebSocket Subscriptions: Message Formats, Types, and Examples.
Public issue timeline
The public GitHub issue provides the current status:
- Apr 12, 2026: Issue #287 opened, reporting that
user_fillsanduser_fills_by_timelack adexparameter. - Jun 19, 2026: A commenter reported that live
userFillsanduserFillsByTimedid not appear to honordexserver-side. - Nov 4, 2026: A commenter suggested splitting fills client-side because HIP-3 fills carry the dex prefix in
coin.
dex field will appear. Do not build production logic around an unconfirmed future field.
Best practices for HIP-3 fill pipelines
- Parse
coin, not a guessed venue name. HIP-3 fills use prefixes such asxyz:NVDAorio:SNDKin community examples, andxyz:XYZ100in official docs. - Keep TWAP slice fills separate.
userTwapSliceFillsis a distinct Info endpoint type. - Respect response limits. Page
userFillsByTimeand remember the 10,000 most recent fill availability limit. - Log unexpected
coinformats. If a fill has no colon and is not expected to be from the first perp dex, flag it for review. - Check endpoint docs before adding parameters. Some Hyperliquid endpoints accept
dex; the documented fill endpoints do not.
Frequently asked questions
What is the dex parameter in Hyperliquid API?
dex identifies a perp dex in some Hyperliquid API calls. For the documented userFills and userFillsByTime Info requests, however, dex is not listed as a request parameter. HIP-3 fill responses identify the dex through the coin prefix.
Why canโt I filter user_fills by dex?
The Python SDK methods do not expose dex for those fill methods, and the official Info endpoint docs do not list dex for userFills or userFillsByTime. The practical workaround is to retrieve fills and filter client-side by the coin prefix.
How should I identify HIP-3 fills?
Check whether coin contains a colon. If it does, the prefix before the colon is the HIP-3 dex identifier. If it does not, treat it as unprefixed, such as a documented first-perp-dex fill.
Will historical fills be updated with a dex field?
The provided official docs and GitHub issue do not state a backfill plan. Do not rely on historical fills gaining a separate dex field.
Is HIP-3 affecting other API endpoints?
Some endpoints accept dex, while the documented fill endpoints do not. Check the specific endpoint documentation before adding or removing parameters. For related SDK parameter context, see Hyperliquid SDK: HIP-3 dex Param Fix.
Risk warning
Risk Warning: Crypto trading involves substantial risk of loss. Never invest more than you can afford to lose. This is not financial advice. API changes, missing fills, or incorrect venue attribution can affect PnL tracking, risk limits, and bot behavior. Validate fill data before using it for live trading decisions.
Conclusion
The HIP-3 fill issue is best handled by parsing the dex prefix from coin, not by waiting for a separate dex field. Use userFillsByTime with documented paging limits, query userTwapSliceFills separately when needed, and use the documented userFills WebSocket subscription for streaming fills.
If you want to trade on Hyperliquid, you can start trading on Hyperliquid.
Sources
- Hyperliquid Info endpoint docs
- HIP-3: Builder-deployed perpetuals
- Hyperliquid WebSocket subscriptions
- hyperliquid-python-sdk issue #287
Continue with Hyperliquid
Browse the Hyperliquid guide hub for the complete user journey.