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

Perpetual futures funding rates and open interest across OKX, Gate.io, Bitget and KuCoin, lined up per coin so you can see which venue is cheapest to hold. Rates annualized using each venue's own funding interval. No API key.

- **URL**: https://apify.com/scrapemint/crypto-funding-rates-tracker.md
- **Developed by:** [Ken M](https://apify.com/scrapemint) (community)
- **Categories:** Business, News
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

Pay per usage

This Actor is paid per platform usage. The Actor is free to use, and you only pay for the Apify platform usage, which gets cheaper the higher subscription plan you have.

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

## 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

## Crypto Funding Rates & Open Interest Tracker

Perpetual futures never expire, so exchanges charge a periodic funding payment to keep them tethered to spot. Positive funding means longs are paying shorts, which is what a crowded long side looks like. Negative means the reverse. This actor reads funding and open interest across four venues and lines them up per coin. No API key, no login, no browser.

### Three modes

**Compare venues** - one row per coin, every venue side by side, ranked by the spread between the most and least expensive place to hold the position:

```json
{
    "mode": "compare",
    "coins": ["BTC", "ETH", "SOL"]
}
```

Each row carries the per venue funding rate, the annualized equivalent, the funding interval, open interest in USD, and the mark price, plus the highest and lowest venue and the spread between them.

**Screen all contracts** - every contract across every selected venue, ranked by funding. Sort by highest to find crowded longs, or lowest to find crowded shorts.

**Watchlist** - only the coins you name.

### Why the annualized number matters

Funding intervals are not the same everywhere. Most contracts settle every 8 hours, but 4 hour and 1 hour contracts exist, and a 1 hour rate of 0.01% is eight times more expensive than an 8 hour rate of 0.01%. Comparing raw rates across venues is therefore misleading. Every row is annualized using the interval that venue reports for that specific contract, and the interval is included so you can check the arithmetic.

### Exchanges

OKX, Gate.io, Bitget and KuCoin.

**Binance and Bybit are not included.** Both block datacenter traffic, so they cannot be served from this platform. They are the two deepest perp venues, so treat this as a strong directional read on funding rather than a complete picture of the market. Saying so up front seemed better than letting you find out later.

Coin margined and USDT margined contracts are both returned where a venue lists them, so a single coin can have several contracts on one venue. Open interest is converted to USD using each venue's own contract multiplier and margin convention.

### Who uses this

- **Perp and basis traders**: find where funding is extreme, and which venue is cheapest to carry a position.
- **Funding arbitrage**: the spread column is the whole trade. Long the cheap venue, short the expensive one.
- **Quant researchers**: a clean cross venue funding and open interest series to join with price data.
- **Risk desks**: watch open interest build up before it unwinds.

Pairs with our Crypto Market Data Scraper for spot prices and market caps, and Crypto Whale & Token Launch Tracker for on chain activity.

### Pricing

A small fee per row: per coin in compare mode, per contract in the other modes. Empty results are free note rows, and the first 2 rows of every run are free.

### Notes

- Sources are the public market endpoints of each exchange, read in one or two bulk calls per venue, so a run is a handful of requests regardless of how many contracts come back.
- A venue that fails is reported and skipped rather than failing the run, so a single exchange outage still returns the others.
- The default open interest floor removes illiquid listings whose funding swings wildly and cannot actually be traded at size.
- Funding rates are the current or predicted rate for the next settlement, not a historical average.

# Actor input Schema

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

Compare returns one row per coin with every venue's funding side by side and the spread between them - the flagship view. Screen returns one row per contract across all venues. Watchlist returns only the coins you name.

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

Base assets such as BTC, ETH, SOL. Required in watchlist mode. In compare and screen modes leave it empty to cover the whole market, or list coins to narrow it. KuCoin's XBT is treated as BTC.

## `exchanges` (type: `array`):

Which venues to read. Binance and Bybit are not available: both block datacenter traffic, so they cannot be served from here.

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

Spread ranks coins by the gap between the most and least expensive venue. Highest and lowest funding surface crowded longs and crowded shorts.

## `minOpenInterestUsd` (type: `integer`):

Ignore contracts with less open interest than this. Filters out illiquid listings whose funding rates swing wildly and are not tradeable.

## `maxRows` (type: `integer`):

Maximum rows to return, ranked first.

## Actor input object example

```json
{
  "mode": "compare",
  "coins": [],
  "exchanges": [
    "okx",
    "gate",
    "bitget",
    "kucoin"
  ],
  "sortBy": "spread",
  "minOpenInterestUsd": 1000000,
  "maxRows": 50
}
```

# 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": "compare",
    "exchanges": [
        "okx",
        "gate",
        "bitget",
        "kucoin"
    ],
    "minOpenInterestUsd": 1000000,
    "maxRows": 50
};

// Run the Actor and wait for it to finish
const run = await client.actor("scrapemint/crypto-funding-rates-tracker").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": "compare",
    "exchanges": [
        "okx",
        "gate",
        "bitget",
        "kucoin",
    ],
    "minOpenInterestUsd": 1000000,
    "maxRows": 50,
}

# Run the Actor and wait for it to finish
run = client.actor("scrapemint/crypto-funding-rates-tracker").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": "compare",
  "exchanges": [
    "okx",
    "gate",
    "bitget",
    "kucoin"
  ],
  "minOpenInterestUsd": 1000000,
  "maxRows": 50
}' |
apify call scrapemint/crypto-funding-rates-tracker --silent --output-dataset

```

## MCP server setup

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

```

## OpenAPI specification

```json
{
    "openapi": "3.0.1",
    "info": {
        "title": "Crypto Funding Rates & Open Interest Tracker",
        "description": "Perpetual futures funding rates and open interest across OKX, Gate.io, Bitget and KuCoin, lined up per coin so you can see which venue is cheapest to hold. Rates annualized using each venue's own funding interval. No API key.",
        "version": "0.1",
        "x-build-id": "7OiYGRhXIFTTlH9Yr"
    },
    "servers": [
        {
            "url": "https://api.apify.com/v2"
        }
    ],
    "paths": {
        "/acts/scrapemint~crypto-funding-rates-tracker/run-sync-get-dataset-items": {
            "post": {
                "operationId": "run-sync-get-dataset-items-scrapemint-crypto-funding-rates-tracker",
                "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/scrapemint~crypto-funding-rates-tracker/runs": {
            "post": {
                "operationId": "runs-sync-scrapemint-crypto-funding-rates-tracker",
                "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/scrapemint~crypto-funding-rates-tracker/run-sync": {
            "post": {
                "operationId": "run-sync-scrapemint-crypto-funding-rates-tracker",
                "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": [
                            "compare",
                            "screen",
                            "symbols"
                        ],
                        "type": "string",
                        "description": "Compare returns one row per coin with every venue's funding side by side and the spread between them - the flagship view. Screen returns one row per contract across all venues. Watchlist returns only the coins you name.",
                        "default": "compare"
                    },
                    "coins": {
                        "title": "Coins",
                        "type": "array",
                        "description": "Base assets such as BTC, ETH, SOL. Required in watchlist mode. In compare and screen modes leave it empty to cover the whole market, or list coins to narrow it. KuCoin's XBT is treated as BTC.",
                        "default": [],
                        "items": {
                            "type": "string"
                        }
                    },
                    "exchanges": {
                        "title": "Exchanges",
                        "type": "array",
                        "description": "Which venues to read. Binance and Bybit are not available: both block datacenter traffic, so they cannot be served from here.",
                        "items": {
                            "type": "string",
                            "enum": [
                                "okx",
                                "gate",
                                "bitget",
                                "kucoin"
                            ],
                            "enumTitles": [
                                "OKX",
                                "Gate.io",
                                "Bitget",
                                "KuCoin"
                            ]
                        },
                        "default": [
                            "okx",
                            "gate",
                            "bitget",
                            "kucoin"
                        ]
                    },
                    "sortBy": {
                        "title": "Rank by",
                        "enum": [
                            "spread",
                            "funding_high",
                            "funding_low",
                            "open_interest"
                        ],
                        "type": "string",
                        "description": "Spread ranks coins by the gap between the most and least expensive venue. Highest and lowest funding surface crowded longs and crowded shorts.",
                        "default": "spread"
                    },
                    "minOpenInterestUsd": {
                        "title": "Minimum open interest (USD)",
                        "minimum": 0,
                        "maximum": 100000000000,
                        "type": "integer",
                        "description": "Ignore contracts with less open interest than this. Filters out illiquid listings whose funding rates swing wildly and are not tradeable.",
                        "default": 1000000
                    },
                    "maxRows": {
                        "title": "Max rows",
                        "minimum": 1,
                        "maximum": 50000,
                        "type": "integer",
                        "description": "Maximum rows to return, ranked first.",
                        "default": 200
                    }
                }
            },
            "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
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
```
