๐Ÿ”Œ API & Developers

Hyperliquid Outcome Asset IDs: Encoding, Coin Names, and Token Names

โš ๏ธ 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. I only review tools I actually use.
For Hyperliquid outcome assets, the API uses a single numeric encoding derived from the outcome ID and binary side:

encoding = 10 * outcome + side

Only side = 0 and side = 1 are valid.

The same encoding is used in three representations:

RepresentationFormatExample for outcome 1, side 0
Outcome spot coin#<encoding>#10
Outcome token name+<encoding>+10
Outcome asset ID100000000 + encoding100000010
So, for outcome 1 and side 0:

encoding = 10 * 1 + 0 = 10
coin = #10
token = +10
asset ID = 100000010

The outcome ID and side are found in the outcomeMeta info response. Hyperliquidโ€™s documentation notes that outcomes share most implementation details with spot trading, but their API representation is different from both spot and perps.

Reference: Hyperliquid Asset IDs documentation.

๐Ÿ’ก Hyperliquid

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

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

Example helper

This is a reference example based on the documented formula, not a tested integration:

def outcome_asset_id(outcome: int, side: int) -> int:
    if side not in (0, 1):
        raise ValueError("Only side 0 and side 1 are valid.")
    encoding = 10 * outcome + side
    return 100_000_000 + encoding

For outcome = 1 and side = 0, the helper returns 100000010.

For spot and builder-deployed perp asset IDs, see Hyperliquid API Asset IDs: Spot, Builder Perps, and Token ID Mapping.

This article includes a Hyperliquid referral link. If you create an account through Create a Hyperliquid account, I may earn a referral reward. The link may provide a 4% fee discount on the first $25M of volume; Vaults and sub-accounts are excluded.

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.

Create a Hyperliquid account โ†’
๐ŸŽ 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). Every tool reviewed here is something I've used with real capital. Questions? Reach out.

๐Ÿ“š Related Articles

๐Ÿ”Œ
API & Developers

Hyperliquid WebSocket Subscriptions: Message Formats, Types, and Examples

How to subscribe to Hyperliquid WebSocket feeds, with subscription message formats, supported types, snapshots, unsubscribe messages, and user-address pitfalls.

November 9, 2026 โฑ 5 min read
๐Ÿ”Œ
API & Developers

Hyperliquid API Limit Order TIF: Gtc, Ioc, and Alo in the Order Action (2026)

How Hyperliquid limit orders encode TIF in the exchange endpoint: Gtc has no special first-hit behavior, Ioc cancels the unfilled part, and Alo cancels instead of matching.

November 13, 2026 โฑ 3 min read
๐Ÿ”Œ
API & Developers

Hyperliquid API Asset IDs: Spot, Builder Perps, and Token ID Mapping

Use the official Hyperliquid API asset-ID formulas for standard perps, builder-deployed perps, spot pairs, and token IDs, with examples.

November 10, 2026 โฑ 3 min read