# Perp Funding Rate Snapshot (Hyperliquid + Kraken, annualized) (`galterapp/perp-funding-snapshot`) Actor

One call returns every liquid perpetual's current funding rate on Hyperliquid and Kraken Futures, annualized and normalized (each venue uses a different convention), with 24h volume, open interest, pay direction, and cross-venue spreads. Built for funding-carry screening, dashboards, and AI agents.

- **URL**: https://apify.com/galterapp/perp-funding-snapshot.md
- **Developed by:** [Galter Time](https://apify.com/galterapp) (community)
- **Categories:** Developer tools
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $3.00 / 1,000 result rows

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

Actors are web data automations that power AI and operations. They run on the Apify platform to scrape websites, process data, connect APIs, and automate workflows.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.
Actors are written with capital "A".

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.
The best way to integrate Actors is as follows.

- **AI agents and MCP clients** — the [Apify MCP server](https://docs.apify.com/integrations/mcp.md) at `https://mcp.apify.com` (remote, streamable HTTP, OAuth on first use).
- **Agentic workflows and local Actor development** — [Agent Skills](https://apify.com/.well-known/agent-skills/index.json) with the [Apify CLI](https://docs.apify.com/cli/docs.md): `npm install -g apify-cli`, then `apify login`.
- **JavaScript/TypeScript projects** — the official [JS/TS client](https://docs.apify.com/api/client/js/docs.md): `npm install apify-client`.
- **Python projects** — the official [Python client](https://docs.apify.com/api/client/python/docs.md): `pip install apify-client`.
- **Any other language** — the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).

# README

## Perp Funding Rate Snapshot — Hyperliquid + Kraken Futures, annualized

**What you get in one run:** the current funding rate of every liquid perpetual on Hyperliquid and Kraken Futures,
**normalized and annualized** so the two venues are directly comparable (they use different raw conventions), with
24h volume, open interest, who-pays-whom, and the **cross-venue funding spread** per coin.

Use it to:

- **Screen funding-carry trades** — find where longs are paying shorts 20–50%+ annualized (short perp + long spot collects it).
- **Spot cross-venue spreads** — the same coin funding +30% on one venue and −20% on the other is a two-leg, price-hedged carry.
- **Feed dashboards / alerts / agents** — JSON rows, stable schema, no auth, runs in ~5 seconds.

![Perp funding rate snapshot output table](https://files.catbox.moe/qogi6l.png)

### Sample output (one row per venue × coin)

```json
{"venue":"hyperliquid","coin":"ETH","funding_rate_raw":0.0000125,"funding_interval_sec":3600,
 "annualized_pct":10.95,"direction":"longs_pay_shorts","mark_price":2417.3,"volume_24h_usd":812340000,
 "open_interest_usd":1.9e9,"us_tradeable":false,"ts":1788360000}
```

The `OUTPUT` record in the key-value store additionally holds `top_positive` (10 fattest funding rates) and
`cross_venue_spreads` (coins on both venues, sorted by |spread|).

### Input

| Field | Default | Meaning |
|---|---|---|
| `venues` | both | `hyperliquid`, `kraken_futures` |
| `coins` | all | optional filter, e.g. `["BTC","ETH","SOL"]` |
| `minVolumeUsd` | 3,000,000 | drop illiquid perps |
| `minAbsAnnualizedPct` | 0 | only return |funding| ≥ this |

### Conventions (why "annualized" matters)

- Hyperliquid publishes an **hourly fraction** → `annualized = f × 24 × 365 × 100`.
- Kraken Futures publishes an **absolute hourly amount** → `annualized = f ÷ indexPrice × 24 × 365 × 100`.
  Raw values are also returned so you can apply your own convention. Rates above ±500%/yr are dropped as dead-market noise.

### Notes

- Public market-data endpoints only; nothing is stored, no keys.
- Neither venue serves US residents for trading (`us_tradeable: false`); the data is a reference for carry on venues you can use.
- Pricing: pay per result row. A typical full snapshot is ~120–200 rows.

# Actor input Schema

## `venues` (type: `array`):

Which venues to include.

## `coins` (type: `array`):

Only return these coins (e.g. BTC, ETH, SOL). Leave empty for all liquid perps.

## `minVolumeUsd` (type: `integer`):

Skip illiquid perps below this 24h notional volume.

## `minAbsAnnualizedPct` (type: `integer`):

Only return perps whose annualized funding magnitude is at least this (0 = all).

## Actor input object example

```json
{
  "venues": [
    "hyperliquid",
    "kraken_futures"
  ],
  "coins": [],
  "minVolumeUsd": 3000000,
  "minAbsAnnualizedPct": 0
}
```

# Actor output Schema

## `rows` (type: `string`):

Dataset items: venue, coin, funding\_rate\_raw, funding\_interval\_sec, annualized\_pct, direction, mark\_price, volume\_24h\_usd, open interest, us\_tradeable, ts.

## `summary` (type: `string`):

Key-value store record with rows count, top\_positive (10 fattest positive funding rates) and cross\_venue\_spreads (coins on both venues, sorted by |spread|).

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "venues": [
        "hyperliquid",
        "kraken_futures"
    ],
    "coins": []
};

// Run the Actor and wait for it to finish
const run = await client.actor("galterapp/perp-funding-snapshot").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {
    "venues": [
        "hyperliquid",
        "kraken_futures",
    ],
    "coins": [],
}

# Run the Actor and wait for it to finish
run = client.actor("galterapp/perp-funding-snapshot").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "venues": [
    "hyperliquid",
    "kraken_futures"
  ],
  "coins": []
}' |
apify call galterapp/perp-funding-snapshot --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,galterapp/perp-funding-snapshot"
        }
    }
}

```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/1Yyf44A0V14yYw60x/builds/gZOcZN6f0BfBbpcni/openapi.json
