fundingPayments

Get all funding payments for the most recent hour across all markets and users as a compressed snapshot.

Overview

The fundingPayments endpoint returns all funding payments from the most recent funding hour across every market and user on Hyperliquid. Data is grouped by coin and compressed using msgpack + zstd.

There are two endpoints:

  1. Metadata Endpoint (Fast): Check the current snapshot timestamp and event count

  2. Snapshot Endpoint (Heavy): Download the full funding payment data

Funding Payment Metadata (Fast)

  • Endpoint: POST /info

  • Purpose: Check the current snapshot timestamp and size without downloading data

Request

{
  "type": "fundingPaymentTimestamp"
}

Response

{
  "time": 1709251200000,
  "count": 198432
}
Field
Description

time

Funding hour timestamp in milliseconds

count

Total number of funding payment events

Funding Payments Snapshot (Heavy)

  • Endpoint: POST /info

  • Purpose: Download the full funding payment snapshot

  • Response: zstd-compressed msgpack binary

Request

Response Headers

Header
Value

Content-Type

application/zstd

x-payload-format

msgpack

x-snapshot-time

Funding hour timestamp (ms)

x-snapshot-count

Total event count

Data Format

The response body is a zstd-compressed msgpack binary. After decompressing (zstd) and decoding (msgpack), the payload is an array:

Index
Description

[0]

Funding hour timestamp in milliseconds

[1]

Array of per-coin funding data

[1][][0]

Coin name (e.g., "BTC", "ETH")

[1][][1]

Funding rate for this coin (string, same for all users)

[1][][2]

User addresses (parallel array)

[1][][3]

Funding payment amounts per user (string, parallel with [2])

[1][][4]

Position sizes per user (string, parallel with [2])

All numeric values (rate, amounts, sizes) are decimal strings for exact precision.

Implementation Examples

Note: Set HYDROMANCER_API_KEY in your .env file.

Last updated