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

<CardGroup cols={2}>
  <Card title="Credit Cost"> 1 per call</Card>
  <Card title="Processing"> Realtime</Card>
</CardGroup>

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](/pricing-calculator?endpoint=%2Fapi-reference%2Fhyperliquid-info%2Ffunding-history).
</Tip>

<Info>
  * 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 <a href="https://goldrush.dev/docs/api-reference/hyperliquid-info/user-funding" target="_blank" rel="noopener noreferrer">userFunding</a> instead.
  * For the current funding rate alongside live market context, use <a href="https://goldrush.dev/docs/api-reference/hyperliquid-info/meta-and-asset-ctxs" target="_blank" rel="noopener noreferrer">metaAndAssetCtxs</a>.
</Info>

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

<ParamField body="type" type="string" required default="fundingHistory">
  Always `"fundingHistory"`.
</ParamField>

<ParamField body="coin" type="string" required>
  The asset symbol, e.g. `"BTC"`. HIP-3 markets use the deployer-prefixed form.
</ParamField>

<ParamField body="startTime" type="int" required>
  Unix timestamp in milliseconds. Inclusive lower bound for the window.
</ParamField>

<ParamField body="endTime" type="int">
  Unix timestamp in milliseconds. Inclusive upper bound. Defaults to current server time when omitted.
</ParamField>

### Example

<CodeGroup>
  ```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()
  ```
</CodeGroup>

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

<ResponseField name="coin" type="string">The asset the funding interval is for - echoes the request `coin`.</ResponseField>
<ResponseField name="fundingRate" type="string">The funding rate applied for this interval (decimal string, e.g. `"0.0000125"`).</ResponseField>
<ResponseField name="premium" type="string">Mark-vs-oracle premium at the time the funding was computed (decimal string).</ResponseField>
<ResponseField name="time" type="int">Unix timestamp in milliseconds when the funding interval was applied.</ResponseField>

## Related endpoints

<CardGroup cols={2}>
  <Card title="delegatorHistory" href="/api-reference/hyperliquid-info/delegator-history">reconstruct the sequence of HYPE staking events behind the totals shown in delegatorSummary.</Card>
  <Card title="userFunding" href="/api-reference/hyperliquid-info/user-funding">fetch a user's per-coin funding payment history within a time window for funding-only P\&L attribution.</Card>
  <Card title="userNonFundingLedgerUpdates" href="/api-reference/hyperliquid-info/user-non-funding-ledger-updates">fetch a user's non-funding USDC ledger history (deposits, withdrawals, transfers, vault flows) within a time…</Card>
</CardGroup>

*Last reviewed: 2026-06-13*
