Hyperliquid — Retrieve historical funding rates
Retrieve historical funding rates with the Hyperliquid API. The request takes a coin, a start time and a type. Use it for on-chain or crypto market research. Use the data in market research, dashboard views, or scheduled data collection for the relevant markets.
- Selected price
- $0 / callPublished pricing
- Sellers / APIs
- 1 / 1
- Requests · 30d
- —Loading...
- Success rate · 30d
- —Loading...
Hyperliquid — Retrieve historical funding rates
Prepare your request, then continue with your agent.
Selected price
$0 / call
- Provider
- Pricing
On this page
Playground
Run sends a real API request. Charges follow the published API contract.
Response structure
responseobject[]coinstringfundingRatestringpremiumstringtimeinteger
// Inferred from response examples. Fields are optional and other fields may be returned.
export type ApiResponse = Array<{
coin?: string;
fundingRate?: string;
premium?: string;
time?: number;
}>;Sellers
| Seller | Pricing | Requests · 30d | Performance | Access |
|---|---|---|---|---|
hyperliquidCurrent Hyperliquid — Retrieve historical funding rates · POST · View API reference | $0 / call | — | —successP50— |
- Unit price
- $0
Statistics use persisted gateway logs from the last 30 days up to now, including today.
Success rate = successful requests / all requests;
P50 = median latency of successful requests.
Prices reflect the published API contract. Contract revision: 3. Price update time: not supplied.
Total $0
API
- Method
- POST
- Endpoint
https://api.openany.si/v1/agent-apis/hyperliquid/info/funding-history- Content type
- application/json
- Authentication
Authorization: Bearer $OPENANY_API_KEY
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"
}'Input parameters
Fields in this listing; additional options and input encoding can vary by provider.
| Parameter | Location | Type | Required | Description |
|---|---|---|---|---|
coin | JSON request bodybody | string | Yes | Coin, e.g. "ETH" |
endTime | JSON request bodybody | integer | No | End time in milliseconds, inclusive. Defaults to current time. |
startTime | JSON request bodybody | integer | Yes | Start time in milliseconds, inclusive |
type | JSON request bodybody | string | Yes | Fixed native Info query discriminator. const: "fundingHistory" · enum: "fundingHistory" |
Required markers inside a nested object or variant apply when that object or variant is used.
Sample response
Sample response · Documented HTTP 200 Published documentation example. Verify the actual response after an approved call.
[
{
"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
}
]Agent integration
Copy the resource contract without sharing an API key.
View API Markdown
# Hyperliquid — Retrieve historical funding rates
Retrieve historical funding rates with the Hyperliquid API. The request takes a coin, a start time and a type. Use it for on-chain or crypto market research. Use the data in market research, dashboard views, or scheduled data collection for the relevant markets.
## Available implementations
hyperliquid · Hyperliquid — Retrieve historical funding rates: https://openany.si/markets/apis/capabilities/hyperliquid-retrieve-historical-funding-rates?offering=4a9b87f3-2677-4e54-a630-fde90ff13881 · $0 / call
## Selected API contract
Documentation: https://openany.si/apis/4a9b87f3-2677-4e54-a630-fde90ff13881
Method: POST
Endpoint: https://api.openany.si/v1/agent-apis/hyperliquid/info/funding-history
Price: $0 / call
Provider: hyperliquid
Contract revision: 3
Price source: OpenAny public API contract and documented provider unit rates. Price update time: not supplied.
Use OPENANY_API_KEY from the environment. API Key calls use your shared balance.
## Prepared request
```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"
}'
```
## API contract
```json
{
"resource_type": "api",
"name": "Hyperliquid — Retrieve historical funding rates",
"endpoint": "https://api.openany.si/v1/agent-apis/hyperliquid/info/funding-history",
"method": "POST",
"content_type": "application/json",
"execution_mode": "sync",
"authentication": {
"type": "bearer",
"environment_variable": "OPENANY_API_KEY"
},
"inputs": [
{
"description": "Retrieve historical funding rates Documentation prepared only; runtime not verified.",
"json_schema": {
"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"
},
"location": "body",
"name": "body",
"nullable": false,
"pointer": "",
"required": true,
"type": "object"
}
],
"billing": {
"currency": "USD",
"mode": "fixed",
"priceMicroUsd": "0",
"rounding": null,
"unit": "call",
"unitQuantity": null
},
"examples": [
{
"http_status": 200,
"name": "Documentation example",
"request": {
"body": {
"coin": "BTC",
"startTime": 1793172099000,
"type": "fundingHistory"
},
"headers": {},
"path": {},
"query": {}
},
"response_body": [
{
"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
| Status | Next step |
|---|---|
400 | Check the offering and request fields. |
401 / 403 | Verify your credentials and access permissions. |
402 | Inspect the selected access mode and returned payment requirements. |
429 | Respect the returned rate limit and retry guidance. |
5xx | Inspect the error and usage record before retrying a paid operation. |
Examples
Documentation example
Published documentation example. Verify the actual response after an approved call.
Prepare your environment
Use a terminal with cURL installed.
Use an OpenAny API key with shared-balance access. Confirm availability and price before running; a call may charge your balance.
Set the key in your terminal using the hidden prompt below. Keep its value out of source files and logs.
Terminal · macOS / Linuxprintf 'OpenAny API key: ' read -r -s OPENANY_API_KEY export OPENANY_API_KEY printf '\n'Run the request
Paste the complete command below into your terminal.
Values to replace before running 1
Review these request fields before running. Keep the published provider and request method unchanged.
body- Retrieve historical funding rates Documentation prepared only; runtime not verified.
Terminal · cURLcurl \ '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" }'Check the response
Sample response · Documented HTTP 200
Sample response[ { "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 } ]