# Hyperliquid — Retrieve historical funding rates

Get Hyperliquid Funding Rate History data via REST or OpenAny MCP—with pay-per-use pricing and no subscription. Powered by Hyperliquid, pass parameters such as coin, startTime, type, and retrieve structured data including coin identifier, reported historical funding rate, reported market premium, and funding record timestamp for market history, and rate comparisons.

Documentation: https://openany.si/hyperliquid/hyperliquid-retrieve-historical-funding-rates/4a9b87f3-2677-4e54-a630-fde90ff13881/
API ID: 4a9b87f3-2677-4e54-a630-fde90ff13881
Provider: hyperliquid
Contract revision: 4
Method: POST
Endpoint: https://api.openany.si/v1/agent-apis/hyperliquid/info/funding-history
Page update time: 2026-12-03T02:49:35.970Z
Access: OpenAny REST
OpenAny MCP: availability is not supplied by this REST contract. Check get_api on the configured OpenAny MCP server before execution.
Request content type: application/json
Execution mode: sync
Authentication: Authorization: Bearer $OPENANY_API_KEY

## Billing
Price: $0 / call
The published contract currently has no usage charge. Authentication and service limits still apply.
Price source: OpenAny public API contract.
Contract update time: 2026-12-03T02:49:35.363Z. This is not a price-change timestamp.
```json
{
  "currency": "USD",
  "mode": "fixed",
  "priceMicroUsd": "0",
  "rounding": null,
  "unit": "call",
  "unitQuantity": null
}
```

## Usage and limits
## Hyperliquid Funding Rate History API

Use type="fundingHistory", coin and required startTime. Optional endTime uses the same millisecond unit; both boundaries are inclusive. The response is an array of coin, fundingRate, premium and time records, with rates preserved as decimal strings.

## What You Can Build

- **Market history**: Plot funding rate and premium over time.
- **Rate comparisons**: Retain coin, sign and observation time.

## Documented Response Fields

| Field | Meaning |
| --- | --- |
| `[].coin` | Coin identifier |
| `[].fundingRate` | Reported historical funding rate |
| `[].premium` | Reported market premium |
| `[].time` | Funding record timestamp |

## Request parameters
```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "Hyperliquid — Retrieve historical funding rates request inputs",
  "$comment": "Declared input types grouped by HTTP location. Path, query and header values describe decoded inputs and are serialized as text on the wire; body is the payload. This is not an exhaustive provider contract or a schema for the raw HTTP request.",
  "type": "object",
  "properties": {
    "path": {
      "type": "object",
      "properties": {}
    },
    "query": {
      "type": "object",
      "properties": {}
    },
    "headers": {
      "type": "object",
      "properties": {}
    },
    "body": {
      "additionalProperties": false,
      "examples": [
        {
          "coin": "BTC",
          "startTime": 1793172099000,
          "type": "fundingHistory"
        }
      ],
      "properties": {
        "coin": {
          "description": "Coin, e.g. \"ETH\"",
          "example": "BTC",
          "type": "string"
        },
        "endTime": {
          "description": "End time in milliseconds, inclusive. Defaults to current time.",
          "type": "integer"
        },
        "startTime": {
          "description": "Start time in milliseconds, inclusive",
          "example": 1793172099000,
          "type": "integer"
        },
        "type": {
          "const": "fundingHistory",
          "description": "Fixed native Info query discriminator.",
          "enum": [
            "fundingHistory"
          ],
          "example": "fundingHistory",
          "type": "string"
        }
      },
      "required": [
        "type",
        "coin",
        "startTime"
      ],
      "type": "object",
      "description": "Retrieve historical funding rates Documentation prepared only; runtime not verified."
    }
  },
  "required": [
    "path",
    "query",
    "headers",
    "body"
  ]
}
```

## Response fields
Source: Inferred from examples; not an exhaustive provider schema.
```json
{
  "type": "array",
  "items": {
    "type": "object",
    "properties": {
      "coin": {
        "type": "string"
      },
      "fundingRate": {
        "type": "string"
      },
      "premium": {
        "type": "string"
      },
      "time": {
        "type": "integer"
      }
    }
  }
}
```

## Request example
Scenario: Documentation example
```bash
curl \
  'https://api.openany.si/v1/agent-apis/hyperliquid/info/funding-history' \
  -X POST \
  -H "Authorization: Bearer $OPENANY_API_KEY" \
  -H 'Content-Type: application/json' \
  --data-raw '{
  "coin": "BTC",
  "startTime": 1793172099000,
  "type": "fundingHistory"
}'
```

## Response example
Published documentation example. Verify the actual response after an approved call.
Sample response · Documented HTTP 200
```json
[
  {
    "coin": "BTC",
    "fundingRate": "0.0000122876",
    "premium": "-0.0004016992",
    "time": 1793174400085
  },
  {
    "coin": "BTC",
    "fundingRate": "0.0000125",
    "premium": "-0.0003085634",
    "time": 1793178000041
  },
  {
    "coin": "BTC",
    "fundingRate": "0.0000125",
    "premium": "-0.0002900201",
    "time": 1793181600042
  },
  {
    "coin": "BTC",
    "fundingRate": "0.0000125",
    "premium": "-0.0002900373",
    "time": 1793185200075
  },
  {
    "coin": "BTC",
    "fundingRate": "0.0000125",
    "premium": "-0.0003266291",
    "time": 1793188800086
  },
  {
    "coin": "BTC",
    "fundingRate": "0.0000125",
    "premium": "-0.0003507398",
    "time": 1793192400043
  },
  {
    "coin": "BTC",
    "fundingRate": "0.0000125",
    "premium": "-0.0003053996",
    "time": 1793196000014
  },
  {
    "coin": "BTC",
    "fundingRate": "0.0000125",
    "premium": "-0.0001655252",
    "time": 1793199600016
  },
  {
    "coin": "BTC",
    "fundingRate": "0.0000125",
    "premium": "-0.0001481002",
    "time": 1793203200004
  },
  {
    "coin": "BTC",
    "fundingRate": "0.0000125",
    "premium": "-0.0001945115",
    "time": 1793206800030
  },
  {
    "coin": "BTC",
    "fundingRate": "0.0000125",
    "premium": "-0.0002890375",
    "time": 1793210400005
  },
  {
    "coin": "BTC",
    "fundingRate": "0.0000125",
    "premium": "-0.0001278047",
    "time": 1793214000069
  },
  {
    "coin": "BTC",
    "fundingRate": "0.0000125",
    "premium": "-0.0000853863",
    "time": 1793217600037
  },
  {
    "coin": "BTC",
    "fundingRate": "0.0000125",
    "premium": "-0.0001772883",
    "time": 1793221200078
  },
  {
    "coin": "BTC",
    "fundingRate": "0.0000125",
    "premium": "-0.000228152",
    "time": 1793224800025
  },
  {
    "coin": "BTC",
    "fundingRate": "0.0000125",
    "premium": "-0.000261672",
    "time": 1793228400061
  },
  {
    "coin": "BTC",
    "fundingRate": "0.0000125",
    "premium": "-0.000303809",
    "time": 1793232000005
  },
  {
    "coin": "BTC",
    "fundingRate": "0.0000125",
    "premium": "-0.0003612183",
    "time": 1793235600043
  },
  {
    "coin": "BTC",
    "fundingRate": "0.0000125",
    "premium": "-0.0003897185",
    "time": 1793239200011
  },
  {
    "coin": "BTC",
    "fundingRate": "0.0000125",
    "premium": "-0.0003678761",
    "time": 1793242800053
  },
  {
    "coin": "BTC",
    "fundingRate": "0.0000125",
    "premium": "-0.0003652624",
    "time": 1793246400022
  },
  {
    "coin": "BTC",
    "fundingRate": "0.0000125",
    "premium": "-0.0003050441",
    "time": 1793250000007
  },
  {
    "coin": "BTC",
    "fundingRate": "0.0000125",
    "premium": "-0.0003757279",
    "time": 1793253600027
  },
  {
    "coin": "BTC",
    "fundingRate": "0.0000125",
    "premium": "-0.0003278181",
    "time": 1793257200062
  }
]
```

## Error handling
400: Check the request fields.
401 / 403: Verify credentials and access permissions.
402: Inspect payment requirements and balance.
429: Respect returned retry guidance.
5xx: Inspect the error and usage record before retrying a paid operation.

## Common questions
### Is this a user’s funding payment history?
No. It reads market rates by coin. Account-specific funding records use the separate userFunding query.

### Which time boundaries are required?
startTime is required; endTime is optional and defaults upstream to current time. Both are inclusive millisecond values.

### Can the rate or premium be negative?
Preserve the returned sign and decimal precision. Do not replace negative values with zero or take an absolute value without labelling that transformation.

### Can I request a cursor or page size?
This implementation exposes no cursor or limit. Use its supported time-window inputs.

### Which API key should I use?
Use your OpenAny API key as Bearer authentication on the documented OpenAny route.

### Where can I check the current request price?
Check the pricing area for the selected implementation. Follow its billing unit and any request-dependent rules before sending the request.

## Available implementations
- hyperliquid: https://openany.si/hyperliquid/hyperliquid-retrieve-historical-funding-rates/4a9b87f3-2677-4e54-a630-fde90ff13881/

Integration guide: https://openany.si/docs/
Agent setup: https://openany.si/SKILL.md
