> ## 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.

# fundingHistory | Hyperliquid Info API

> Hyperliquid fundingHistory: fetch a coin’s historical funding rates and premiums over a time window for funding analytics and basis strategies.

> [card] Credit Cost
>
> 1 per call

> [card] Processing
>
> Realtime

The Hyperliquid info endpoint with `type: "fundingHistory"` is used to fetch a coin’s historical funding rates and premiums over a time window for funding analytics and basis strategies.

> [!TIP]
>
> Estimate your monthly cost for this API using the [Pricing Calculator](https://goldrush.dev/docs/pricing-calculator.md?endpoint=%2Fapi-reference%2Fhyperliquid-info%2Ffunding-history).

> [!NOTE]
>
> * Wire-equal to `POST api.hyperliquid.xyz/info` with `{"type": "fundingHistory", "coin": "..."}`.
> * Each response contains at most 500 entries per call.
> * This is market-wide funding history for a coin. For a single wallet’s actual funding payments, use [userFunding](https://goldrush.dev/docs/api-reference/hyperliquid-info/user-funding.md) instead.
> * Hyperliquid retains funding history natively back to launch.
> * For the current funding rate alongside live market context, use [metaAndAssetCtxs](https://goldrush.dev/docs/api-reference/hyperliquid-info/meta-and-asset-ctxs.md).

Returns the sequence of applied funding intervals for a single coin within a `[startTime, endTime]` window. Each entry carries the funding rate that was applied and the mark-vs-oracle premium at that time. Use it for funding-rate charts, basis/carry analytics, and historical funding P\&L modeling.

This is a global, non-user-keyed type. Page through time by advancing `startTime`.

## Endpoint

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

## Request

**type** `string` *required* (default: fundingHistory)

Always `"fundingHistory"`.

**coin** `string` *required*

The asset symbol, e.g. `"BTC"`. HIP-3 markets use the deployer-prefixed form.

**startTime** `int` *required*

Unix timestamp in milliseconds. Inclusive lower bound for the window.

**endTime** `int`

Unix timestamp in milliseconds. Inclusive upper bound. Defaults to current server time when omitted.

### Example

```bash cURL theme={null}
curl -X POST https://hypercore.goldrushdata.com/info \
  -H "Authorization: Bearer $GOLDRUSH_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "type": "fundingHistory",
    "coin": "BTC",
    "startTime": 1735689600000,
    "endTime": 1735776000000
  }'
```

```typescript TypeScript theme={null}
const response = await fetch("https://hypercore.goldrushdata.com/info", {
  method: "POST",
  headers: {
    "Authorization": `Bearer ${process.env.GOLDRUSH_API_KEY}`,
    "Content-Type": "application/json",
  },
  body: JSON.stringify({
    type: "fundingHistory",
    coin: "BTC",
    startTime: 1735689600000,
    endTime: 1735776000000,
  }),
});

const history = await response.json();
```

```python Python theme={null}
import os, requests

response = requests.post(
    "https://hypercore.goldrushdata.com/info",
    headers={"Authorization": f"Bearer {os.environ['GOLDRUSH_API_KEY']}"},
    json={
        "type": "fundingHistory",
        "coin": "BTC",
        "startTime": 1735689600000,
        "endTime": 1735776000000,
    },
)

history = response.json()
```

## Response

An array of funding-interval objects, oldest first.

```json theme={null}
[
  {
    "coin": "BTC",
    "fundingRate": "0.0000054021",
    "premium": "-0.0004567829",
    "time": 1735693200000
  }
]
```

### Field descriptions

> [!NOTE]
>
> `fundingRate` and `premium` are returned as **decimal strings**, preserving upstream precision. Do not parse them as floats.

**coin** `string`

The asset the funding interval is for - echoes the request `coin`.

**fundingRate** `string`

The funding rate applied for this interval (decimal string, e.g. `"0.0000125"`).

**premium** `string`

Mark-vs-oracle premium at the time the funding was computed (decimal string).

**time** `int`

Unix timestamp in milliseconds when the funding interval was applied.

## Related endpoints

> [card] [allMids](https://goldrush.dev/docs/api-reference/hyperliquid-info/all-mids.md)
>
> fetch the current mid price for every actively traded asset in a single call.

> [card] [candleSnapshot](https://goldrush.dev/docs/api-reference/hyperliquid-info/candle-snapshot.md)
>
> fetch historical OHLCV candles for a coin and interval over a time window for charting and backtesting.

> [card] [l2Book](https://goldrush.dev/docs/api-reference/hyperliquid-info/l2-book.md)
>
> fetch an aggregated Level-2 order book snapshot for a single coin - bids and asks as price, size, and order-count levels.

> [card] [l2BookDiffSnapshot](https://goldrush.dev/docs/api-reference/hyperliquid-info/l2-book-diff-snapshot.md)
>
> fetch a full-depth L2 order book snapshot for one coin, with height, epoch, and seq to bootstrap the l2BookDiff2 stream.

See all Hyperliquid endpoints: [Overview hub](https://goldrush.dev/docs/goldrush-hyperliquid/overview.md) · [Info API reference](https://goldrush.dev/docs/goldrush-hyperliquid/info-api/overview.md)

*Last reviewed: 2026-08-20*


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.