Data & analysis

HyperX Data API

Try it

Use when building apps with HyperX Data API — Hyperliquid wallet analytics, market data, Twitter/news feeds. Triggers on: "HyperX API", "data-api.hyperx.trade", "wallet analysis", "Hyperliquid data", "crypto Twitter API", "market positions", "fills API", "trading analytics".

What it does

Use when building apps with HyperX Data API — Hyperliquid wallet analytics, market data, Twitter/news feeds. Triggers on: "HyperX API", "data-api.hyperx.trade", "wallet analysis", "Hyperliquid data", "crypto Twitter API", "market positions", "fills API", "trading analytics".

The skill document

HyperX Data API

Base URL: https://data-api.hyperx.trade

Hyperliquid on-chain analytics API — wallet PnL, market positions, crypto Twitter, news feeds.

Authentication

MethodHeader / FieldHow to get
API TokenX-API-Key: Login at hyperx.trade → Settings → API Token
CookieHyperX session cookieLogin at hyperx.trade

To get an API key: visit hyperx.trade/hyperliquid/settings, log in with your account, and generate a token in the API Token section. Free tier is available.

Twitter & News endpoints are free, no auth required.

Rate Limits

TierBudget / minMonthlyPrice
Free3010,000$0
Pro300500,000$99/mo
Ultra1,2005,000,000$399/mo

Each endpoint has a weight (1–5). Each call costs weight from your budget.

Endpoints

Wallet Analysis

MethodPathWeightAuthDescription
POST/wallet_analysis/{address}5optionalFull wallet PnL analysis with positions, trades, risk metrics
GET/wallet_metrics/{address}2nonePre-calculated wallet performance metrics (win rate, ROI, PnL)
POST/wallet_metrics_query2optionalBatch query wallet metrics with filters and sorting
GET/fills/{address}5optionalTrading history (fills) for a wallet address
WS/fills/ws5/msgoptionalReal-time fills stream. Addr limits: free=1, pro=50, ultra=300

Market Analysis

All weight 1, no auth required.

MethodPathDescription
GET/market/coinsAll tradable coins with metadata
GET/market/snapshotsMarket overview snapshots
GET/market/overviewAggregated market overview
GET/market/aggregate-positionsCross-asset aggregated position data
GET/market/top-positions/{asset}Top positions for a specific asset
GET/market/leverage-distribution/{asset}Leverage distribution
GET/market/pnl-distribution/{asset}PnL distribution
GET/market/concentration/{asset}Position concentration analysis
GET/market/whale-changes/{asset}Whale position changes tracking
GET/market/entry-price/{asset}Entry price distribution
GET/market/high-leverage-whales/{asset}High-leverage whale positions
GET/market/top-losers/{asset}Top losing positions
GET/market/top-winners/{asset}Top winning positions
GET/market/liquidation-heatmap/{asset}Liquidation price heatmap
GET/market/liquidation-positions/{asset}Positions near liquidation

Time Distribution

All weight 1, auth optional.

MethodPathDescription
GET/wallet/time-distribution/{address}/hourlyHourly trading activity
GET/wallet/time-distribution/{address}/day-of-weekDay-of-week patterns
GET/wallet/time-distribution/{address}/heatmapFull activity heatmap (hour × day)
GET/wallet/time-distribution/{address}/dailyDaily trading volume

Twitter (FREE)

All weight 1, no auth required.

MethodPathDescription
GET/twitterTwitter feed with filtering
GET/twitter/authorsActive authors ranked by tweet count
WS/twitter/wsReal-time Twitter feed stream

GET /twitter params:

ParamTypeDescription
screen_namestringFilter by author(s), comma-separated
min_followersintMinimum follower count
user_tagsstringFilter by tags: trader, kol, founder, featured
tweet_typestringreply, quote, retweet
keywordstringContent keyword search
hoursintTime range in hours (1–168, default 24)
page / page_sizeintPagination (max 100/page)

Response fields:

{
  "id": 12345,
  "sfe_id": "a2552b68aad7c9fa",
  "tweet_type": "reply",
  "tweet_id": "2032041519130296698",
  "tweet_time": "2026-03-12T10:30:26",
  "content": "tweet text...",
  "screen_name": "elonmusk",
  "display_name": "Elon Musk",
  "avatar_url": "https://pbs.twimg.com/...",
  "follower_count": 694593,
  "user_tags": ["founder", "featured"],
  "tweet_interaction_type": "reply",
  "media": [{"t": "image", "u": "https://..."}],
  "source_tweet": {
    "tweet_id": "...",
    "content": "original tweet...",
    "screen_name": "...",
    "follower_count": 24977,
    "media": []
  }
}

WS /twitter/ws params: screen_names, min_followers, user_tags (same filters as REST). Messages are JSON objects with same fields as REST response items.

News (FREE)

All weight 1, no auth required.

MethodPathDescription
GET/newsTrading news from multiple sources
GET/news/channelsAvailable news channel categories

BTC Mining

MethodPathWeightAuthDescription
GET/btc-mining/shutdown-prices1noneBTC mining shutdown prices by miner model

Quick Start

import requests

BASE = "https://data-api.hyperx.trade"

# No auth needed for Twitter
tweets = requests.get(f"{BASE}/twitter", params={"hours": 1, "min_followers": 10000}).json()
for t in tweets["items"]:
    print(f"@{t['screen_name']}: {t['content']}")

# With API key for wallet analysis (get yours at hyperx.trade/hyperliquid/settings)
headers = {"X-API-Key": "your-api-key"}
pnl = requests.post(f"{BASE}/wallet_analysis/0x1234...", headers=headers).json()
# WebSocket — real-time Twitter stream
import asyncio, websockets, json

async def stream():
    async with websockets.connect(f"wss://data-api.hyperx.trade/twitter/ws?min_followers=5000") as ws:
        async for msg in ws:
            tweet = json.loads(msg)
            print(f"@{tweet['screen_name']}: {tweet.get('content', '')}")

asyncio.run(stream())

API Catalog Endpoint

GET /api-catalog — returns the full structured catalog as JSON with dynamic weights.

Related skills

Read live Hyperliquid market data from the desk computer with curl or the Python SDK - mid, mark and oracle prices, order book depth, funding (current, predicted, historical), open interest, volume, candles, perp and spot metadata, margin tiers, and how to save datasets for the strategy lab. Read-only, no key. Use for any market brief, depth read, funding question or data pull.

Subscribe to live Hyperliquid data over WebSocket from the desk computer - mids, order book, trades, candles, best bid/offer, and per-account fills, order updates and events - with raw JSON, Python SDK and TypeScript examples, plus how to run a supervised watch that logs to a file and alerts. Read-only. Use for monitoring, fill notifications and any watch that polling would make expensive.

Read a Hyperliquid account from the desk computer - positions and margin, spot balances, open orders including trigger details, fills, funding paid, ledger updates, order status by oid or cloid, historical orders, portfolio history, fee tier and rate-limit budget - with curl and Python SDK examples. Read-only, needs only the account address. Use for sizing inputs, book checks, reconciliation and reviews.

Manage Hyperliquid perp positions and margin from the desk computer - read positions and margin, set leverage and cross/isolated mode, add isolated margin, understand margin tiers and liquidation price, close a position with a reduce-only IOC, and clean up orphaned orders. Write actions are Execution Trader only, on an approved ticket. Use for leverage changes, closes, protection checks and margin questions.

Compact reference for the Hyperliquid API as the desk uses it - endpoints and envelopes, every /info request type, every /exchange action with its signing scheme, order and status vocabularies, asset ids, tick and lot rules, rate limits, WebSocket subscription list, error strings, and where the official docs are. Use to look up an exact field, request type or limit before writing a call, and to map an error string to its cause.

Less common Hyperliquid actions and their rules - dead-man's switch (scheduleCancel), TWAP orders, spot orders, expiresAfter and nonces, API wallet approval from code, sub-account and vault addressing, HIP-3 dexs, and what the desk deliberately does not do (transfers, withdrawals, builder fees, staking). Write actions are Execution Trader only, on an approved ticket. Use when a ticket asks for one of these or when a user asks whether the desk can.