---
title: Introduction
description: Read Hyperliquid perpetual funding rates from the public API, with no key and no SDK.
url: https://hl-funding.thally.app/
lastUpdated: 2026-12-04
last_updated: 2026-12-04
last_updated_source: git
lastVerified: 2026-12-04T00:00:00.000Z
---

# Introduction

Read Hyperliquid perpetual funding rates from the public API, with no key and no SDK.

> **Note:**
  This is an independent, community-written guide. It is not affiliated with or
  endorsed by Hyperliquid. The authoritative API reference is the
  [Hyperliquid docs](https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api/info-endpoint/perpetuals).

## What this guide covers

Hyperliquid is a perpetual futures exchange. Every hour, traders on one side of
each perp market pay traders on the other side a **funding payment** that keeps
the perp price close to the spot (oracle) price. Funding is the main input for
basis and funding-rate arbitrage strategies, and a useful signal of positioning.

Hyperliquid publishes funding data through one public endpoint,
`POST https://api.hyperliquid.xyz/info`. You select the data with a `type` field
in the JSON body. This guide uses three types:

| `type` | Returns | Used in |
| --- | --- | --- |
| `metaAndAssetCtxs` | Every perp market with its current funding rate, mark price, and open interest | [Quickstart](/quickstart) |
| `fundingHistory` | Hourly funding payments for one coin since a start time | [Funding monitor](/guides/funding-monitor) |
| `predictedFundings` | Next predicted funding on Hyperliquid, Binance, and Bybit | [Funding monitor](/guides/funding-monitor) |

No account, API key, or wallet is needed to read this data.

## What you'll be able to do

After the [quickstart](/quickstart) and the [guide](/guides/funding-monitor),
about 25 minutes in total, you can:

- Get the current funding rate for every Hyperliquid market and rank them.
- Download and summarize any market's funding history.
- Compare Hyperliquid funding with Binance and Bybit correctly.
- Run a script that alerts you when funding moves away from its average.

The examples use the [Hyperliquid Info API](https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api/info-endpoint),
[curl](https://curl.se/docs/manpage.html), and
[Node.js](https://nodejs.org/en/download) 18 or later. Each page lists exactly
what it needs.

## Who it is for

- **Bot and backend developers** who need funding data in a trading or alerting system.
- **Quant and research developers** pulling history for backtests.
- **Analysts** who want to compare Hyperliquid funding with centralized exchanges.

You should be comfortable running a command in a terminal and reading JSON.
The examples use `curl` and plain Node.js 18+ with no dependencies.

## Read a funding rate correctly: units and who pays

Three details cause most mistakes with this data:

1. **Rates are hourly decimals.** A `funding` value of `"0.0000125"` means
   0.00125% of position notional, paid every hour. To annualize, multiply by
   `24 * 365`: 0.0000125 × 8,760 ≈ 10.95% APR.
2. **Positive means longs pay shorts.** Negative means shorts pay longs.
3. **Numbers are strings.** The API returns decimals as strings to keep
   precision. Convert them with `Number()` (or a decimal library) before doing math.

> **Tip:**
  Many markets sit at exactly `0.0000125`. That is Hyperliquid's fixed interest
  component (0.01% per 8 hours, paid hourly), which applies when the perp
  premium is near zero. A rate at that value means the market is close to
  balanced, not that data is missing.

## Current, predicted, and settled rates

The three endpoints return three different views of funding. Pick the one
that matches your question:

| You want | Use | Field |
| --- | --- | --- |
| The rate each market is running at right now | `metaAndAssetCtxs` | `funding` |
| Hyperliquid next to Binance and Bybit, on the same basis | `predictedFundings` | `fundingRate` ÷ `fundingIntervalHours` |
| What was actually paid in past hours | `fundingHistory` | `fundingRate` |

The two live values, `funding` and the `HlPerp` entry of `predictedFundings`,
usually match but can differ slightly because each is updated separately.
On 2026-12-04 they differed for 65 of 235 markets, by small amounts in the cases checked. Use one
consistently within a calculation. Only `fundingHistory` records settled
payments.

## Using an AI agent

Point your agent at [`/AGENTS.md`](https://hl-funding.thally.app/AGENTS.md).
It condenses this guide into the request bodies, unit rules, pagination
rule, error table, and links to runnable scripts an agent needs to fetch
funding data correctly on the first try. Every page is also available as
Markdown by adding `.md` to its URL.

## Next steps

#### [Quickstart](/quickstart)

    Get current funding for every market and rank the top 10 by APR in about five minutes.

#### [Build a funding monitor](/guides/funding-monitor)

    Page through funding history, compare venues, and handle the errors you will hit.