HyperGrok Hyperliquid Api Reference
БесплатноБез исполняемых скриптовНе проверенCompact reference for the Hyperliquid API as the desk uses it - endpoints and envelopes, desk-used /info request types and /exchange actions with their…
от galleonlabs744 установки в других каталогахОб этом скилле
Hyperliquid API reference (desk edition)
Desk-used contracts rechecked against the official docs and SDKs on 2026-10-25 (scope and evidence). Funding cap, mark-price inputs, market-order notionals and CEX funding intervals were rechecked on 2026-11-12 (evidence). Scoped to what the desk uses, not exhaustive. When in doubt, fetch the page: append .md to any docs URL for raw markdown, for example https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api/exchange-endpoint.md.
Endpoints
| Mainnet | Testnet | |
|---|---|---|
| REST | https://api.hyperliquid.xyz |
https://api.hyperliquid-testnet.xyz |
| WebSocket | wss://api.hyperliquid.xyz/ws |
wss://api.hyperliquid-testnet.xyz/ws |
| HyperEVM RPC | https://rpc.hyperliquid.xyz/evm (chain 999) |
https://rpc.hyperliquid-testnet.xyz/evm (chain 998) |
POST /infobody{"type": "<request>", ...}, unsigned; response is the bare payload. Unknowntypeor missing field: HTTP 422; invalid JSON: HTTP 400; unknowndex: HTTP 500.POST /exchangebody{"action": {...}, "nonce": <ms>, "signature": {"r","s","v"}, "vaultAddress"?: "0x...", "expiresAfter"?: <ms>}; response{"status":"ok","response":{"type":"order"|"cancel"|"default"|..., "data"?: {...}}}or{"status":"err","response":"<string>"}, both HTTP 200.- Header
Content-Type: application/json.
/info request types
| type | params | returns |
|---|---|---|
allMids |
dex? |
{coin: midPx} |
meta |
dex? |
{universe:[{name, szDecimals, maxLeverage, marginTableId?, onlyIsolated?, marginMode?, isDelisted?}], marginTables:[[id,{description, marginTiers:[{lowerBound, maxLeverage}]}]], collateralToken} |
metaAndAssetCtxs |
dex? |
[meta, [{funding, openInterest, prevDayPx, dayNtlVlm, dayBaseVlm, premium, oraclePx, markPx, midPx, impactPxs}]] |
spotMeta |
{tokens:[{name, szDecimals, weiDecimals, index, tokenId, ...}], universe:[{name, tokens:[base,quote], index}]} |
|
spotMetaAndAssetCtxs |
[spotMeta, [{coin, dayNtlVlm, dayBaseVlm, markPx, midPx, prevDayPx, circulatingSupply, totalSupply}]] |
|
l2Book |
coin, nSigFigs? (2-5), mantissa? (1,2,5) |
{coin, time, levels:[[{px,sz,n}...bids],[...asks]]} up to 20 a side |
recentTrades |
coin |
[{coin, side, px, sz, time, hash, tid, users}] |
candleSnapshot |
req:{coin, interval, startTime, endTime} |
[{t,T,s,i,o,c,h,l,v,n}], most recent 5000 only |
fundingHistory |
coin, startTime, endTime? |
[{coin, fundingRate (hourly), premium, time}] |
predictedFundings |
[[coin, venue, {fundingRate, nextFundingTime, fundingIntervalHours?}]]; venue is HlPerp, BinPerp or BybitPerp, payload null when unlisted there. Normalise by fundingIntervalHours (HlPerp always 1; CEX venues 1, 4 or 8 per coin, or omitted), never by a fixed 8 |
|
perpsAtOpenInterestCap |
dex? |
[coin] |
perpDexs |
[null, {name, fullName, deployer, ...}] |
|
clearinghouseState |
user, dex? |
{assetPositions:[{type, position:{coin, szi, entryPx, leverage{type,value,rawUsd?}, liquidationPx, marginUsed, positionValue, unrealizedPnl, returnOnEquity, cumFunding, maxLeverage}}], marginSummary{accountValue,totalNtlPos,totalRawUsd,totalMarginUsed}, crossMarginSummary, crossMaintenanceMarginUsed, withdrawable, time} |
spotClearinghouseState |
user |
{balances:[{coin, token, hold, total, entryNtl}]} |
openOrders |
user, dex? |
[{coin, side (A/B), limitPx, sz, oid, timestamp}] |
frontendOpenOrders |
user, dex? |
adds origSz, cloid, orderType, tif, reduceOnly, isTrigger, triggerPx, triggerCondition, isPositionTpsl, children |
orderStatus |
user, oid (number or cloid hex) |
{status:"order", order:{order, status, statusTimestamp}} or {status:"unknownOid"} |
historicalOrders |
user |
[{order, status, statusTimestamp}] up to 2000 |
userFills |
user, aggregateByTime? |
[{coin, px, sz, side, time, startPosition, dir, closedPnl, hash, oid, crossed, fee, feeToken, builderFee?, tid, cloid?, twapId}] up to 2000 |
userFillsByTime |
user, startTime, endTime?, aggregateByTime? |
same, up to 2000 per call from the last 10000 |
userFunding |
user, startTime, endTime? |
[{time, hash, delta:{type:"funding", coin, usdc, szi, fundingRate, nSamples}}] |
userNonFundingLedgerUpdates |
user, startTime, endTime? |
deposits, withdrawals, transfers, liquidations, vault flows |
userTwapSliceFills |
user |
[{fill, twapId}] |
portfolio |
user |
[["day",{accountValueHistory, pnlHistory, vlm}], ["week",...], ["month",...], ["allTime",...], perp variants] |
userFees |
user |
{userCrossRate, userAddRate, userSpotCrossRate, userSpotAddRate, feeSchedule, activeReferralDiscount, activeStakingDiscount} |
userRateLimit |
user |
`{cumVlm, nRequestsUsed, nRequestsCap, nRequ |
Установить HyperGrok Hyperliquid Api Reference в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл HyperGrok Hyperliquid Api Reference?
Compact reference for the Hyperliquid API as the desk uses it - endpoints and envelopes, desk-used /info request types and /exchange actions with their signing schemes, 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.
Как установить скилл HyperGrok Hyperliquid Api Reference?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл HyperGrok Hyperliquid Api Reference запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
doc-coauthoring
Guide users through a structured workflow for co-authoring documentation. Use when user wants to write documentation, proposals, technical specs, decision…
от Anthropicacademy-guide
Stop and check this skill before finishing any reply to a question about how to use Claude or a Claude product — it recommends matching courses, tutorials…
от Anthropicinternal-comms
A set of resources to help me write all kinds of internal communications, using the formats that my company likes to use. Claude should use this skill…
от Anthropicskill-development
This skill should be used when the user wants to "create a skill", "add a skill to plugin", "write a new skill", "improve skill description", "organize skill…
от Anthropic