# Crypto Funding Rates & Open Interest Tracker (`foxlabs/crypto-funding-rates`) Actor

Track crypto perpetual funding rates & open interest across exchanges (CoinGecko) — filter by coin, exchange & min open interest, or compare funding rates across exchanges (cross-exchange spread). US-safe, flat CSV/Excel, no API key. Powered by CoinGecko.

- **URL**: https://apify.com/foxlabs/crypto-funding-rates.md
- **Developed by:** [Berkan Kaplan](https://apify.com/foxlabs) (community)
- **Categories:** Developer tools
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, NaN bookmarks
- **User rating**: No ratings yet

## Pricing

from $2.50 / 1,000 results

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/platform/actors/running/actors-in-store#pay-per-event

## What's an Apify Actor?

Actors are a software tools running on the Apify platform, for all kinds of web data extraction and automation use cases.
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.

In JavaScript/TypeScript projects, use official [JavaScript/TypeScript client](https://docs.apify.com/api/client/js.md):

```bash
npm install apify-client
```

In Python projects, use official [Python client library](https://docs.apify.com/api/client/python.md):

```bash
pip install apify-client
```

In shell scripts, use [Apify CLI](https://docs.apify.com/cli/docs.md):

````bash
# MacOS / Linux
curl -fsSL https://apify.com/install-cli.sh | bash
# Windows
irm https://apify.com/install-cli.ps1 | iex
```bash

In AI frameworks, you might use the [Apify MCP server](https://docs.apify.com/platform/integrations/mcp.md).

If your project is in a different language, use 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

## Crypto Funding Rates & Open Interest Tracker

<p align="center"><img alt="Funding rates" src="https://img.shields.io/badge/Funding%20Rates-%26%20Open%20Interest-6366F1?style=for-the-badge" />&nbsp;<img alt="Source" src="https://img.shields.io/badge/CoinGecko-Derivatives-10B981?style=for-the-badge" />&nbsp;<img alt="No key" src="https://img.shields.io/badge/No%20API%20Key-US--safe-22C55E?style=for-the-badge" />&nbsp;<img alt="Formats" src="https://img.shields.io/badge/JSON%20%7C%20CSV%20%7C%20Excel-F59E0B?style=for-the-badge" /></p>

**Funding rates and open interest for crypto perpetuals & futures — across every major exchange, plus a cross-exchange funding-rate comparison.** Clean, filterable CSV/Excel rows from the free CoinGecko derivatives data.

**US-safe:** CoinGecko relays the data, so this never calls a geo-blocked exchange API (Binance/Bybit/OKX work from Apify's US servers). **No API key, no proxy.**

---

### Two modes

**1. Tickers** — one row per market: funding rate, open interest, 24h volume, basis & price. Filter by coin, exchange, contract type and minimum open interest; sort by OI, funding rate (highest or most extreme), or volume.

**2. Funding comparison** — one row per coin showing the **cross-exchange funding-rate spread**: the highest-funding venue vs the lowest, the spread between them, and total open interest. A starting point for spotting funding dislocations between exchanges. Defaults to major exchanges only — because a spread is only meaningful across liquid venues.

> Honest note: exchanges report funding on different intervals (1h / 8h / annualized) and this actor does **not** normalize them, so the spread is **indicative, not a clean arbitrage** — confirm each venue's funding convention before acting.

| Coin | Spread | Max funding | Min funding |
|---|---|---|---|
| BTC | 0.22 | HTX | Deribit |

---

### Quick start

```json
{
  "mode": "tickers",
  "coin": "BTC",
  "minOpenInterest": 1000000,
  "sortBy": "open_interest",
  "maxResults": 500
}
````

**Presets to try:**

- **BTC funding across exchanges** — `mode: tickers`, `coin: BTC`
- **Highest funding (squeeze hunt)** — `mode: tickers`, `sortBy: funding_rate`
- **Funding comparison** — `mode: spread` (major exchanges, ranked by spread)
- **One exchange only** — `exchange: "Binance"`

No API key, no proxy, no setup.

***

### Output fields

**Tickers:** `rank, indexId (coin), symbol, market (exchange), contractType, fundingRate, openInterest, volume24h, basis, spread, price, priceChange24hPct`
**Spread:** `rank, indexId, fundingSpread, maxFundingRate, maxFundingExchange, minFundingRate, minFundingExchange, exchangeCount, totalOpenInterest, avgPrice`

### Why this actor

- **Funding + OI + cross-exchange comparison in one feed** — the things perp traders watch, filterable and schedulable.
- **Junk filtered out** — a sanity cap drops broken/illiquid exchanges reporting nonsense rates; spread mode restricts to major venues so the comparison is meaningful.
- **US-safe & free** — built on CoinGecko's relay, so no geo-blocks, no key, no proxy.
- **Schedulable** — re-run on a cron for a live funding/OI dataset into a sheet, bot or model.

> **Data source:** Powered by [CoinGecko](https://www.coingecko.com). Funding-rate values are passed through as CoinGecko reports them; smaller exchanges can report unreliable rates, so filter by exchange / open interest for the cleanest signal. Provided as-is for research, not financial advice.

***

### Changelog

#### 0.1.0 — 2026-06-05

- Initial release: crypto funding rates & open interest across exchanges from the free CoinGecko derivatives API — tickers mode (per market) + funding-comparison mode (cross-exchange spread), junk-rate sanity filter, major-exchange filter, US-safe, flat CSV/Excel, no API key.

***

*Built by foXLabs · Powered by CoinGecko.*

# Actor input Schema

## `mode` (type: `string`):

"Tickers" = one row per market (funding rate, OI, volume). "Funding comparison" = one row per coin showing the cross-exchange funding-rate spread (highest vs lowest funding venue). Note: exchanges report funding on different intervals, so the spread is indicative, not a normalized arbitrage.

## `coin` (type: `string`):

Filter to one coin by its index symbol (e.g. "BTC", "ETH", "SOL"). Leave empty for all.

## `exchange` (type: `string`):

Keep only markets whose exchange name contains this (e.g. "Binance", "Bybit", "OKX"). Leave empty for all.

## `contractType` (type: `string`):

Filter by contract type.

## `minOpenInterest` (type: `integer`):

Drop illiquid markets below this open interest. Defaults to 1,000,000 to filter out junk/low-liquidity exchanges — set to 0 to include everything.

## `minVolume24h` (type: `integer`):

Only include markets with at least this 24h volume. 0 = no filter.

## `maxAbsFundingRate` (type: `number`):

Drop markets whose absolute funding rate is above this — a sanity filter for broken/illiquid exchanges reporting nonsense rates. Default 1 (real rates cluster near 0). Set 0 to disable.

## `onlyMajorExchanges` (type: `boolean`):

Keep only well-known liquid venues (Binance, Bybit, OKX, Bitget, Gate, MEXC, Kraken, Deribit, Hyperliquid…). Defaults ON in spread mode (the comparison is only meaningful across liquid exchanges), OFF in tickers mode.

## `sortBy` (type: `string`):

How to rank rows in tickers mode.

## `maxResults` (type: `integer`):

Cap the number of rows returned.

## Actor input object example

```json
{
  "mode": "tickers",
  "coin": "",
  "exchange": "",
  "contractType": "",
  "minOpenInterest": 1000000,
  "minVolume24h": 0,
  "maxAbsFundingRate": 1,
  "sortBy": "open_interest",
  "maxResults": 500
}
```

# Actor output Schema

## `dataset` (type: `string`):

No description

# 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 = {
    "mode": "tickers",
    "minOpenInterest": 1000000,
    "maxAbsFundingRate": 1,
    "maxResults": 500
};

// Run the Actor and wait for it to finish
const run = await client.actor("foxlabs/crypto-funding-rates").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 = {
    "mode": "tickers",
    "minOpenInterest": 1000000,
    "maxAbsFundingRate": 1,
    "maxResults": 500,
}

# Run the Actor and wait for it to finish
run = client.actor("foxlabs/crypto-funding-rates").call(run_input=run_input)

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

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

```

## CLI example

```bash
echo '{
  "mode": "tickers",
  "minOpenInterest": 1000000,
  "maxAbsFundingRate": 1,
  "maxResults": 500
}' |
apify call foxlabs/crypto-funding-rates --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "command": "npx",
            "args": [
                "mcp-remote",
                "https://mcp.apify.com/?tools=foxlabs/crypto-funding-rates",
                "--header",
                "Authorization: Bearer <YOUR_API_TOKEN>"
            ]
        }
    }
}

```

## OpenAPI specification

```json
{
    "openapi": "3.0.1",
    "info": {
        "title": "Crypto Funding Rates & Open Interest Tracker",
        "description": "Track crypto perpetual funding rates & open interest across exchanges (CoinGecko) — filter by coin, exchange & min open interest, or compare funding rates across exchanges (cross-exchange spread). US-safe, flat CSV/Excel, no API key. Powered by CoinGecko.",
        "version": "0.1",
        "x-build-id": "9dOheLw4OexD6X1uH"
    },
    "servers": [
        {
            "url": "https://api.apify.com/v2"
        }
    ],
    "paths": {
        "/acts/foxlabs~crypto-funding-rates/run-sync-get-dataset-items": {
            "post": {
                "operationId": "run-sync-get-dataset-items-foxlabs-crypto-funding-rates",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        },
        "/acts/foxlabs~crypto-funding-rates/runs": {
            "post": {
                "operationId": "runs-sync-foxlabs-crypto-funding-rates",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor and returns information about the initiated run in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/runsResponseSchema"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/acts/foxlabs~crypto-funding-rates/run-sync": {
            "post": {
                "operationId": "run-sync-foxlabs-crypto-funding-rates",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        }
    },
    "components": {
        "schemas": {
            "inputSchema": {
                "type": "object",
                "properties": {
                    "mode": {
                        "title": "Mode",
                        "enum": [
                            "tickers",
                            "spread"
                        ],
                        "type": "string",
                        "description": "\"Tickers\" = one row per market (funding rate, OI, volume). \"Funding comparison\" = one row per coin showing the cross-exchange funding-rate spread (highest vs lowest funding venue). Note: exchanges report funding on different intervals, so the spread is indicative, not a normalized arbitrage.",
                        "default": "tickers"
                    },
                    "coin": {
                        "title": "Coin (optional)",
                        "type": "string",
                        "description": "Filter to one coin by its index symbol (e.g. \"BTC\", \"ETH\", \"SOL\"). Leave empty for all.",
                        "default": ""
                    },
                    "exchange": {
                        "title": "Exchange (optional)",
                        "type": "string",
                        "description": "Keep only markets whose exchange name contains this (e.g. \"Binance\", \"Bybit\", \"OKX\"). Leave empty for all.",
                        "default": ""
                    },
                    "contractType": {
                        "title": "Contract type (optional)",
                        "enum": [
                            "",
                            "perpetual",
                            "futures"
                        ],
                        "type": "string",
                        "description": "Filter by contract type.",
                        "default": ""
                    },
                    "minOpenInterest": {
                        "title": "Min open interest (USD)",
                        "type": "integer",
                        "description": "Drop illiquid markets below this open interest. Defaults to 1,000,000 to filter out junk/low-liquidity exchanges — set to 0 to include everything."
                    },
                    "minVolume24h": {
                        "title": "Min 24h volume (USD)",
                        "type": "integer",
                        "description": "Only include markets with at least this 24h volume. 0 = no filter.",
                        "default": 0
                    },
                    "maxAbsFundingRate": {
                        "title": "Max abs funding rate (junk filter)",
                        "type": "number",
                        "description": "Drop markets whose absolute funding rate is above this — a sanity filter for broken/illiquid exchanges reporting nonsense rates. Default 1 (real rates cluster near 0). Set 0 to disable."
                    },
                    "onlyMajorExchanges": {
                        "title": "Only major exchanges",
                        "type": "boolean",
                        "description": "Keep only well-known liquid venues (Binance, Bybit, OKX, Bitget, Gate, MEXC, Kraken, Deribit, Hyperliquid…). Defaults ON in spread mode (the comparison is only meaningful across liquid exchanges), OFF in tickers mode."
                    },
                    "sortBy": {
                        "title": "Sort by (tickers mode)",
                        "enum": [
                            "open_interest",
                            "funding_rate",
                            "fundingAbs",
                            "volume_24h",
                            "spread"
                        ],
                        "type": "string",
                        "description": "How to rank rows in tickers mode.",
                        "default": "open_interest"
                    },
                    "maxResults": {
                        "title": "Max results",
                        "minimum": 1,
                        "maximum": 100000,
                        "type": "integer",
                        "description": "Cap the number of rows returned.",
                        "default": 500
                    }
                }
            },
            "runsResponseSchema": {
                "type": "object",
                "properties": {
                    "data": {
                        "type": "object",
                        "properties": {
                            "id": {
                                "type": "string"
                            },
                            "actId": {
                                "type": "string"
                            },
                            "userId": {
                                "type": "string"
                            },
                            "startedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "finishedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "status": {
                                "type": "string",
                                "example": "READY"
                            },
                            "meta": {
                                "type": "object",
                                "properties": {
                                    "origin": {
                                        "type": "string",
                                        "example": "API"
                                    },
                                    "userAgent": {
                                        "type": "string"
                                    }
                                }
                            },
                            "stats": {
                                "type": "object",
                                "properties": {
                                    "inputBodyLen": {
                                        "type": "integer",
                                        "example": 2000
                                    },
                                    "rebootCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "restartCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "resurrectCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "computeUnits": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "options": {
                                "type": "object",
                                "properties": {
                                    "build": {
                                        "type": "string",
                                        "example": "latest"
                                    },
                                    "timeoutSecs": {
                                        "type": "integer",
                                        "example": 300
                                    },
                                    "memoryMbytes": {
                                        "type": "integer",
                                        "example": 1024
                                    },
                                    "diskMbytes": {
                                        "type": "integer",
                                        "example": 2048
                                    }
                                }
                            },
                            "buildId": {
                                "type": "string"
                            },
                            "defaultKeyValueStoreId": {
                                "type": "string"
                            },
                            "defaultDatasetId": {
                                "type": "string"
                            },
                            "defaultRequestQueueId": {
                                "type": "string"
                            },
                            "buildNumber": {
                                "type": "string",
                                "example": "1.0.0"
                            },
                            "containerUrl": {
                                "type": "string"
                            },
                            "usage": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "integer",
                                        "example": 1
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "usageTotalUsd": {
                                "type": "number",
                                "example": 0.00005
                            },
                            "usageUsd": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "number",
                                        "example": 0.00005
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
```
