๐Ÿ”Œ API & Developers

Hyperliquid HIP-3: user_fills dex Parameter Missing Fix (2026)

โš ๏ธ Disclosure: Some links on this page are affiliate links. If you sign up through them, I may earn a commission โ€” at no extra cost to you.
For HIP-3 fill history, do not rely on a separate 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:

If your bot needs TWAP slice fills, query 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.

๐Ÿ’ก Hyperliquid

Like what you're reading? Try it yourself โ€” this link supports ChartedTrader at no cost to you.

Start Trading on Hyperliquid โ†’
๐ŸŽ You receive: 4% fee discount on first $25M volume ยท per account, lifetime

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:

The provided official docs do not state a backfill plan or a date when a separate dex field will appear. Do not build production logic around an unconfirmed future field.

Best practices for HIP-3 fill pipelines

  1. Parse coin, not a guessed venue name. HIP-3 fills use prefixes such as xyz:NVDA or io:SNDK in community examples, and xyz:XYZ100 in official docs.
  2. Keep TWAP slice fills separate. userTwapSliceFills is a distinct Info endpoint type.
  3. Respect response limits. Page userFillsByTime and remember the 10,000 most recent fill availability limit.
  4. Log unexpected coin formats. If a fill has no colon and is not expected to be from the first perp dex, flag it for review.
  5. 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

Continue with Hyperliquid

Browse the Hyperliquid guide hub for the complete user journey.

๐Ÿงฎ Free Hyperliquid calculators

Fee Calculator โ†’
Hyperliquid vs centralized exchange fee comparison
PnL & Liquidation โ†’
Perp PnL + liquidation price
Position Size โ†’
Risk-aware position sizing for HL perps
Hyperliquid

Ready to get started? Use the link below โ€” it helps support ChartedTrader at no cost to you.

Start Trading on Hyperliquid โ†’
๐ŸŽ You receive: 4% fee discount on first $25M volume ยท per account, lifetime
๐Ÿ“ˆ

About the author

I'm a systematic trader running live strategies on IB (USDJPY momentum) and Hyperliquid (crypto perps). Questions? Reach out.

๐Ÿ“š Related Articles

๐Ÿ”ง
Troubleshooting & Fixes

Hyperliquid SDK: HIP-3 dex Param Fix (2026)

The Hyperliquid Python SDK drops the HIP-3 dex parameter on user_state, open_orders, and all_mids. Here's what breaks, why it happens, and the fix path based on GitHub issue #286.

September 8, 2026 โฑ 9 min read
๐Ÿฆ
Brokers & Exchanges

Hyperliquid Commodity Perps: Oil, Gold, Silver 24/7 (2026)

Trade oil, gold, and silver 24/7 on Hyperliquid. A deep dive into HIP-3 commodity perpetuals, fees, leverage, and how onchain futures differ from CME.

March 11, 2026 โฑ 13 min read
๐Ÿ“–
Guides

Hyperliquid Trust Wallet HIP-4 Connection Guide (2026)

How to connect Trust Wallet to Hyperliquid via HIP-4 using QR codes. Step-by-step setup, troubleshooting, and security tips for seamless mobile trading.

August 11, 2026 โฑ 8 min read