> ## Documentation Index
> Fetch the complete documentation index at: https://goldrush.dev/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Info API Overview

> A drop-in replacement for the public Hyperliquid `/info` REST API - fetch user trades (`userFills`), perp and spot account state (`clearinghouseState`), market metadata, and more with no rate limits and faster reads.

The GoldRush Hyperliquid Info API is a **drop-in replacement** for `POST https://api.hyperliquid.xyz/info`. The request body, the response shape, and the JSON keys are byte-for-byte identical to the public Hyperliquid API. The only differences are the URL and the authentication header.

Twenty-three wire-compatible `type` values are supported today across market metadata, user state, user history, vaults, and staking - plus four GoldRush-native types (two batched state lookups and two builder-keyed fill feeds) with no upstream equivalent.

## Endpoint

```
POST https://hypercore.goldrushdata.com/info
Authorization: Bearer <GOLDRUSH_API_KEY>
Content-Type: application/json
```

## The most-requested reads

Most Hyperliquid apps start from the same REST calls - a user's **trades** and their **account state**. Over the drop-in `/info` API that is:

* **User trades (fills)** - [`userFills`](/api-reference/hyperliquid-info/user-fills) for the latest fills, or [`userFillsByTime`](/api-reference/hyperliquid-info/user-fills-by-time) for a time window (GoldRush serves these past upstream's \~10,000-fill retention limit).
* **Perp account state** - [`clearinghouseState`](/api-reference/hyperliquid-info/clearinghouse-state) for a single wallet, or [`batchClearinghouseState`](/api-reference/hyperliquid-info/batch-clearinghouse-state) for up to 50 wallets in one request.
* **Spot balances** - [`spotClearinghouseState`](/api-reference/hyperliquid-info/spot-clearinghouse-state), or [`batchSpotClearinghouseState`](/api-reference/hyperliquid-info/batch-spot-clearinghouse-state) for many wallets at once.

Every type below is called the same way - `POST /info` with a `type` field - so these are the same requests you already make against `api.hyperliquid.xyz`, pointed at a faster, unthrottled host.

## Comparison with the public Hyperliquid API

|                          | Public API                                                                                               | GoldRush                                                                      |
| ------------------------ | -------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------- |
| URL                      | `https://api.hyperliquid.xyz/info`                                                                       | `https://hypercore.goldrushdata.com/info`                                     |
| Auth                     | None                                                                                                     | `Authorization: Bearer <key>`                                                 |
| Rate limit               | 1200 weight/min/IP                                                                                       | None                                                                          |
| Orderbook latency target | `p50`: `~280 ms`                                                                                         | `p50`: `<150 ms`                                                              |
| Wire compatibility       | n/a (it's the source)                                                                                    | Byte-for-byte                                                                 |
| Available types          | See [Hyperliquid Docs](https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api/info-endpoint) | See [Available types](#available-types)                                       |
| Types not in public API  | n/a                                                                                                      | Batched user state, builder fills, liquidation feed, composites               |
| Unsupported types        | n/a                                                                                                      | Return `{"error":"unsupported_type","type":"<x>"}` instead of being forwarded |

## Available types

The Info API supports the wire-compatible drop-in types below, organized by what they return. Four GoldRush-native types (`batchClearinghouseState`, `batchSpotClearinghouseState`, `builderFills`, `builderFillsByTime`) have no upstream Hyperliquid equivalent.

### Market metadata

| Type                                                                               | Body                                                                                   | Returns                                                                                                                                               |
| ---------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------- |
| [`metaAndAssetCtxs`](/api-reference/hyperliquid-info/meta-and-asset-ctxs)          | `{"type": "metaAndAssetCtxs", "dex": ""}`                                              | Tuple `[meta, assetCtxs[]]` - perp universe + per-asset live mark price, funding, OI, day volume.                                                     |
| [`meta`](/api-reference/hyperliquid-info/meta)                                     | `{"type": "meta", "dex": ""}`                                                          | Perp universe metadata only - size decimals, max leverage, margin tiers. No live context.                                                             |
| [`spotMetaAndAssetCtxs`](/api-reference/hyperliquid-info/spot-meta-and-asset-ctxs) | `{"type": "spotMetaAndAssetCtxs"}`                                                     | Tuple `[spotMeta, assetCtxs[]]` - spot universe + per-pair live mark price, mid, day volume.                                                          |
| [`spotMeta`](/api-reference/hyperliquid-info/spot-meta)                            | `{"type": "spotMeta"}`                                                                 | Spot universe metadata only - pairs and the full token registry. No live context.                                                                     |
| [`outcomeMeta`](/api-reference/hyperliquid-info/outcome-meta)                      | `{"type": "outcomeMeta"}`                                                              | Active HIP-4 outcome universe - integer outcome IDs, names, structured descriptions, and `sideSpecs` (`Yes` / `No`).                                  |
| [`settledOutcome`](/api-reference/hyperliquid-info/settled-outcome)                | `{"type": "settledOutcome", "outcome": 1}`                                             | Resolution data for a settled HIP-4 outcome - the original `spec`, `settleFraction` paid to `Yes`, and `details` describing how the outcome resolved. |
| [`l2Book`](/api-reference/hyperliquid-info/l2-book)                                | `{"type": "l2Book", "coin": "BTC"}`                                                    | Aggregated Level-2 order book snapshot for one coin - bids and asks as `{px, sz, n}` levels.                                                          |
| [`candleSnapshot`](/api-reference/hyperliquid-info/candle-snapshot)                | `{"type": "candleSnapshot", "req": {"coin": "BTC", "interval": "1h", "startTime": …}}` | Historical OHLCV candles for a coin and interval over a time window.                                                                                  |
| [`fundingHistory`](/api-reference/hyperliquid-info/funding-history)                | `{"type": "fundingHistory", "coin": "BTC", "startTime": …}`                            | Market-wide historical funding rates and premiums for a coin over a time window.                                                                      |

### User account state

| Type                                                                                 | Body                                                           | Returns                                                                                                                                                               |
| ------------------------------------------------------------------------------------ | -------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| [`clearinghouseState`](/api-reference/hyperliquid-info/clearinghouse-state)          | `{"type": "clearinghouseState", "user": "0x…", "dex": ""}`     | Perp account: positions, margin summary, account value, withdrawable.                                                                                                 |
| [`spotClearinghouseState`](/api-reference/hyperliquid-info/spot-clearinghouse-state) | `{"type": "spotClearinghouseState", "user": "0x…", "dex": ""}` | Spot balances per token, total USD value.                                                                                                                             |
| [`frontendOpenOrders`](/api-reference/hyperliquid-info/frontend-open-orders)         | `{"type": "frontendOpenOrders", "user": "0x…", "dex": ""}`     | Open orders + trigger metadata (TP/SL, `isPositionTpsl`, `reduceOnly`, `orderType`).                                                                                  |
| [`subAccounts`](/api-reference/hyperliquid-info/sub-accounts)                        | `{"type": "subAccounts", "user": "0x…"}`                       | List of sub-accounts owned by a master, each with its inlined perp and spot state.                                                                                    |
| [`webData2`](/api-reference/hyperliquid-info/web-data2)                              | `{"type": "webData2", "user": "0x…"}`                          | Composite frontend snapshot for a wallet - `clearinghouseState`, `openOrders`, perp `meta`/`assetCtxs`, `spotAssetCtxs`, TWAP and vault state in a single round-trip. |

### User history

| Type                                                                                             | Body                                                                     | Returns                                                                                                                                     |
| ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------- |
| [`userFills`](/api-reference/hyperliquid-info/user-fills)                                        | `{"type": "userFills", "user": "0x…"}`                                   | Most recent fills for a wallet (up to 2,000).                                                                                               |
| [`userFillsByTime`](/api-reference/hyperliquid-info/user-fills-by-time)                          | `{"type": "userFillsByTime", "user": "0x…", "startTime": …}`             | Fills bounded by a time window.                                                                                                             |
| [`userTwapSliceFills`](/api-reference/hyperliquid-info/user-twap-slice-fills)                    | `{"type": "userTwapSliceFills", "user": "0x…"}`                          | Most recent TWAP slice fills, each tagged with the parent `twapId`.                                                                         |
| [`userTwapSliceFillsByTime`](/api-reference/hyperliquid-info/user-twap-slice-fills-by-time)      | `{"type": "userTwapSliceFillsByTime", "user": "0x…", "startTime": …}`    | TWAP slice fills bounded by a time window. Served from GoldRush's historical store so windows extend past upstream's 10,000-fill retention. |
| [`userFunding`](/api-reference/hyperliquid-info/user-funding)                                    | `{"type": "userFunding", "user": "0x…", "startTime": …}`                 | Funding payment history with rate, applied size, and USDC delta per event.                                                                  |
| [`userNonFundingLedgerUpdates`](/api-reference/hyperliquid-info/user-non-funding-ledger-updates) | `{"type": "userNonFundingLedgerUpdates", "user": "0x…", "startTime": …}` | Ledger events except funding - deposits, withdrawals, transfers, vault flows, liquidations.                                                 |

### Vaults & staking

| Type                                                                       | Body                                           | Returns                                                             |
| -------------------------------------------------------------------------- | ---------------------------------------------- | ------------------------------------------------------------------- |
| [`userVaultEquities`](/api-reference/hyperliquid-info/user-vault-equities) | `{"type": "userVaultEquities", "user": "0x…"}` | Per-vault locked equity with unlock timestamps.                     |
| [`delegatorSummary`](/api-reference/hyperliquid-info/delegator-summary)    | `{"type": "delegatorSummary", "user": "0x…"}`  | Current delegated, undelegated, and pending-withdrawal HYPE totals. |
| [`delegatorHistory`](/api-reference/hyperliquid-info/delegator-history)    | `{"type": "delegatorHistory", "user": "0x…"}`  | Delegate, undelegate, deposit, and withdrawal staking events.       |
| [`delegatorRewards`](/api-reference/hyperliquid-info/delegator-rewards)    | `{"type": "delegatorRewards", "user": "0x…"}`  | Accrued staking rewards (delegation and validator commission).      |

### Builder activity

| Type                                                                          | Body                                                               | Returns                                                                                                       |
| ----------------------------------------------------------------------------- | ------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------- |
| [`builderFills`](/api-reference/hyperliquid-info/builder-fills)               | `{"type": "builderFills", "builder": "0x…"}`                       | Most recent fills attributed to a builder address (up to 2,000). **GoldRush-native**, no upstream equivalent. |
| [`builderFillsByTime`](/api-reference/hyperliquid-info/builder-fills-by-time) | `{"type": "builderFillsByTime", "builder": "0x…", "startTime": …}` | Builder-attributed fills bounded by a time window. **GoldRush-native**, no upstream equivalent.               |

### GoldRush-native batch

| Type                                                                                            | Body                                                                  | Returns                                                                                 |
| ----------------------------------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------------------------- |
| [`batchClearinghouseState`](/api-reference/hyperliquid-info/batch-clearinghouse-state)          | `{"type": "batchClearinghouseState", "users": ["0x…", …], "dex": ""}` | Array of `clearinghouseState` slots. **GoldRush-native**, 1 to 50 wallets per call.     |
| [`batchSpotClearinghouseState`](/api-reference/hyperliquid-info/batch-spot-clearinghouse-state) | `{"type": "batchSpotClearinghouseState", "users": ["0x…", …]}`        | Array of `spotClearinghouseState` slots. **GoldRush-native**, 1 to 50 wallets per call. |

If you send a `type` that isn't in the table above, the response body is `{"error":"unsupported_type","type":"<the type you sent>"}`. Requests are not forwarded to upstream Hyperliquid.

## How clients see it

Existing Hyperliquid SDKs work unchanged after a `baseUrl` override. See [SDK compatibility](/goldrush-hyperliquid/info-api/sdk-compatibility) for `nomeida/hyperliquid` (JS) and `hyperliquid-dex/hyperliquid-python-sdk` setup snippets.

## Errors

| Status | Body                                           | Cause                                                                                                                                                          |
| ------ | ---------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `400`  | `{"error":"invalid request"}`                  | Malformed body.                                                                                                                                                |
| `400`  | `{"error":"unsupported_type","type":"<type>"}` | The `type` field isn't one of the natively-supported types.                                                                                                    |
| `401`  | `{"error":"unauthorized"}`                     | Missing or invalid `Authorization` header.                                                                                                                     |
| `429`  | n/a                                            | **Not returned.** GoldRush has no per-IP rate limit on `/info` - any retry logic you carried over from `api.hyperliquid.xyz` can stay in place but won't fire. |
| `5xx`  | Server error                                   | Internal server error.                                                                                                                                         |

## Networks

Mainnet only. Testnet support is deferred.

## Next

<CardGroup cols={2}>
  <Card title="Migration guide" icon="rotate" href="/goldrush-hyperliquid/info-api/migration">
    Side-by-side examples - change one URL and one header.
  </Card>

  <Card title="SDK compatibility" icon="cube" href="/goldrush-hyperliquid/info-api/sdk-compatibility">
    Drop-in setup for `nomeida/hyperliquid` and `hyperliquid-python-sdk`.
  </Card>

  <Card title="Limits and caching" icon="gauge-high" href="/goldrush-hyperliquid/info-api/limits">
    No rate limits - what to know about caching and recommended polling cadences.
  </Card>

  <Card title="API reference" icon="code" href="/api-reference/hyperliquid-info/meta-and-asset-ctxs">
    Per-endpoint request and response schemas.
  </Card>
</CardGroup>
