# Crypto Funding Rates & Open Interest Scraper (`datamole/crypto-funding-rates-open-interest`) Actor

Funding rates, open interest and basis for every perpetual and future on Binance, Bybit, OKX, Hyperliquid, Deribit, Bitget, Gate, MEXC, KuCoin and dYdX. Funding normalized to 8h and APR, cross exchange funding arbitrage, long short ratios, Deribit options max pain and monitor alerts.

- **URL**: https://apify.com/datamole/crypto-funding-rates-open-interest.md
- **Developed by:** [DataMole](https://apify.com/datamole) (community)
- **Categories:** Automation
- **Features:** Limited permissions
- **Stats:** 3 total users, 2 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $12.00 / 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/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
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.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

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

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

![DataMole](https://raw.githubusercontent.com/YoiderD/datamole-assets/main/banner.png)

## 📈 Crypto Funding Rates & Open Interest Scraper

> **Get the funding rate, open interest, basis and long/short ratio of every perpetual and dated future on Binance, Bybit, OKX, Hyperliquid, Deribit, Bitget, Gate, MEXC, KuCoin and dYdX in one run, with the same fields and units on every exchange.** Funding is normalized to 8 hours and to a yearly rate (APR), open interest is in USD, and each coin gets a summary across exchanges with funding arbitrage and price dislocation signals.

> 🕒 **Last updated:** 2026-11-08 · 10 exchanges · about 6,500 contracts and 1,750 coins · Deribit options per expiry · monitor mode for open interest jumps and funding flips · no login, no API key

**Crypto Funding Rates & Open Interest Scraper** reads the public market data each exchange publishes and turns it into one table. Each exchange counts things in its own way: Hyperliquid and dYdX charge funding every hour, Binance every 1, 4 or 8 hours depending on the contract, Deribit reports an 8 hour rate. Some exchanges count open interest in coins, others in contracts of 0.0001 BTC or in USD. Some list 1000PEPE or kPEPE instead of PEPE. The Actor converts all of it, so a BTC row from Gate and a BTC row from Hyperliquid can be compared directly.

| 📈 Who uses it | 💡 What for |
|---|---|
| Crypto traders, funding and basis traders, quant funds, trading bots, market researchers, data journalists, AI agents | Funding rate arbitrage, cash and carry, crowded trade alerts, open interest share by exchange, options positioning, market dashboards |

### 📋 What it does

- 🏦 **10 exchanges in one run.** Binance (USD-M and COIN-M), Bybit, OKX, Hyperliquid, Deribit, Bitget, Gate, MEXC, KuCoin and dYdX. Perpetual swaps and dated futures, linear (USDT, USDC) and inverse (coin margined).
- ⏱️ **Funding you can compare.** The rate as published, its interval in hours, the rate per 8 hours and the yearly rate (`fundingAprPercent`), the next funding time and the exchange's cap and floor.
- 💵 **Open interest in USD and coins.** Contract sizes, quanto multipliers and bundled tickers (1000PEPE, kPEPE, 1MBABYDOGE) are converted, so `asset` is always the coin and `unitPrice` is the price of one coin.
- 📐 **Basis.** Mark price against index price for every contract, and the basis annualized to expiry for dated futures, the cash and carry yield.
- 🪙 **Coin summaries across exchanges.** Total open interest and volume, open interest share by exchange, the open interest weighted funding, the highest and lowest funding with exchange and symbol, the funding spread and the price spread.
- 🚨 **Signals.** `funding arbitrage` when two liquid perpetuals of the same coin differ by at least 20% APR, `extreme positive funding` and `extreme negative funding` above 50% APR, `funding at cap` or `funding at floor`, and `price dislocation` between exchanges. Every threshold can be changed.
- 👥 **Long/short ratios.** Share of accounts long on Binance, Bybit and OKX, and Binance's top trader ratio, for the 100 most traded contracts of each. Gate's long and short user counts are always included.
- 🎯 **Deribit options per expiry.** Open interest and volume by side, put/call ratios, at the money implied volatility, 10% skew, expected move from the at the money straddle and the max pain strike, for BTC, ETH and the USDC options (SOL, XRP, AVAX, HYPE, TRX).
- 🔔 **Monitor mode.** Schedule it and every row gets the change in open interest, funding and price since the previous run, with `open interest jump`, `open interest drop` and `funding flipped` signals.

> ℹ️ **Free Apify plan:** runs return a preview of up to 10 results. Any paid Apify plan unlocks all results.

### ⚙️ Input

| Field | What it does |
|---|---|
| `exchanges` | Exchanges to scrape. Default all 10. |
| `assets` | Coin tickers such as `BTC`, `ETH`, `PEPE`. Empty means every coin. |
| `contractTypes` | `perpetual`, `future`. Default perpetual. |
| `margins` | `linear`, `inverse`. Default both. |
| `recordTypes` | `assets` (coin summaries), `contracts`, `options` (Deribit). Default the first two. |
| `minVolume24hUsd` / `minOpenInterestUsd` | Skip small contracts. |
| `minAbsFundingApr` | Keep contracts whose yearly funding is at least this high, positive or negative. |
| `onlySignals` | Keep only contracts and coins with a signal. |
| `sortBy` | `openInterest`, `volume`, `fundingHighest`, `fundingLowest`, `fundingAbsolute`, `basisAbsolute`. |
| `extremeFundingApr` / `arbitrageMinApr` / `arbitrageMinVolumeUsd` / `priceDislocationPercent` | Signal thresholds. Defaults 50% APR, 20% APR, $1,000,000 and 1%. |
| `includeLongShort` | Long/short ratios on Binance, Bybit and OKX. |
| `monitorMode` / `monitorName` / `oiChangeAlertPercent` | Changes since the previous run, and the open interest move that raises an alert (default 10%). |
| `maxItems` | Maximum rows. Coin summaries come first, then contracts, then options. |
| `proxyConfiguration` | Used only for Binance and Bybit. Default residential, Germany. |

**Example: BTC, ETH and SOL across every exchange**

```json
{
    "assets": ["BTC", "ETH", "SOL"]
}
```

**Example: funding arbitrage and extreme funding on liquid contracts, whole market**

```json
{
    "assets": [],
    "minVolume24hUsd": 1000000,
    "onlySignals": true,
    "sortBy": "fundingAbsolute"
}
```

**Example: cash and carry, every dated future with its annualized basis**

```json
{
    "assets": ["BTC", "ETH"],
    "contractTypes": ["future"],
    "recordTypes": ["contracts"]
}
```

**Example: Deribit options positioning only**

```json
{
    "recordTypes": ["options"],
    "assets": ["BTC", "ETH"]
}
```

**Example: hourly monitor for open interest jumps of 5% or more**

```json
{
    "assets": ["BTC", "ETH", "SOL", "HYPE", "XRP", "DOGE"],
    "monitorMode": true,
    "oiChangeAlertPercent": 5,
    "onlySignals": true
}
```

### 📊 Output

Every row has a `recordType`: `asset`, `contract` or `options-expiry`. Real records from cloud runs on 2026-11-08.

**Coin summary** (`asset`), BTC across the 10 exchanges:

```json
{
    "recordType": "asset",
    "asset": "BTC",
    "exchanges": 10,
    "contracts": 71,
    "unitPrice": 75950.075,
    "openInterestUsd": 36882054424,
    "perpetualOpenInterestUsd": 35842120432,
    "volume24hUsd": 21477939499,
    "avgFundingAprPercent": 5.49,
    "oiWeightedFundingAprPercent": 5.18,
    "highestFundingExchange": "kucoin",
    "highestFundingSymbol": "XBTUSDCM",
    "highestFundingAprPercent": 21.13,
    "lowestFundingExchange": "mexc",
    "lowestFundingSymbol": "BTC_USD1",
    "lowestFundingAprPercent": -12.81,
    "fundingSpreadAprPercent": 33.94,
    "priceSpreadPercent": 0.3127,
    "fundingAprByExchange": { "binance": 3.94, "bitget": 2.41, "bybit": 8.03, "deribit": 0.03, "dydx": 3.26, "gate": 3.94, "hyperliquid": 10.95, "kucoin": 4.82, "mexc": 3.94, "okx": 1.83 },
    "openInterestShareByExchange": { "binance": 29.13, "bybit": 17.17, "mexc": 13.97, "okx": 10.38, "hyperliquid": 8.61, "bitget": 8.14, "gate": 6.29, "deribit": 3.86, "kucoin": 2.4, "dydx": 0.05 },
    "signals": ["funding arbitrage"],
    "scrapedAt": "2026-11-08T16:35:21.096Z"
}
```

**Perpetual** (`contract`), Binance BTCUSDT with long/short ratios:

```json
{
    "recordType": "contract",
    "exchange": "binance",
    "symbol": "BTCUSDT",
    "asset": "BTC",
    "multiplier": 1,
    "quoteAsset": "USDT",
    "margin": "linear",
    "contractType": "perpetual",
    "markPrice": 75996.4,
    "indexPrice": 76030.57,
    "lastPrice": 75996.5,
    "unitPrice": 75996.4,
    "bidPrice": 75996.4,
    "askPrice": 75996.5,
    "spreadPercent": 0.0001,
    "priceChange24hPercent": 0.33,
    "volume24hUsd": 2049537655,
    "openInterest": 96061.863,
    "openInterestUsd": 7300355765,
    "fundingRate": 0.00003602,
    "fundingRatePercent": 0.0036,
    "fundingIntervalHours": 8,
    "fundingRate8hPercent": 0.0036,
    "fundingAprPercent": 3.94,
    "nextFundingTime": "2026-11-09T00:00:00.000Z",
    "fundingRateCap": 0.003,
    "fundingRateFloor": -0.003,
    "basisPercent": -0.0449,
    "longShortRatio": 3.0323,
    "longAccountsPercent": 75.2,
    "topTraderLongShortRatio": 1.861,
    "signals": [],
    "url": "https://www.binance.com/en/futures/BTCUSDT",
    "scrapedAt": "2026-11-08T16:35:21.096Z"
}
```

**Dated future** (`contract`), OKX BTC December 2026, coin margined: `basisAnnualizedPercent` is the yield of buying spot and selling the future.

```json
{
    "exchange": "okx",
    "symbol": "BTC-USD-261225",
    "margin": "inverse",
    "contractType": "future",
    "expiry": "2026-12-25T08:00:00.000Z",
    "daysToExpiry": 46.64,
    "markPrice": 76500.4,
    "indexPrice": 75937,
    "openInterestUsd": 52879100,
    "basisPercent": 0.7419,
    "basisAnnualizedPercent": 5.81,
    "maxLeverage": 20
}
```

**Options expiry** (`options-expiry`), Deribit BTC December 2026:

```json
{
    "recordType": "options-expiry",
    "exchange": "deribit",
    "asset": "BTC",
    "settlement": "BTC",
    "expiry": "2026-12-25T08:00:00.000Z",
    "daysToExpiry": 46.64,
    "underlyingPrice": 76470,
    "strikes": 60,
    "callOpenInterest": 83640.9,
    "putOpenInterest": 56738.1,
    "openInterestUsd": 10659293323,
    "putCallOpenInterestRatio": 0.678,
    "volume24hUsd": 25710660,
    "premiumVolume24hUsd": 321742,
    "putCallVolumeRatio": 0.211,
    "atmStrike": 76000,
    "atmImpliedVolatility": 38.64,
    "skew10Percent": 5,
    "skewPutStrike": 68000,
    "skewCallStrike": 84000,
    "expectedMoveUsd": 8344.56,
    "expectedMovePercent": 10.91,
    "maxPainStrike": 75000,
    "maxPainDistancePercent": -1.92,
    "url": "https://www.deribit.com/options/BTC"
}
```

A whole market run on 2026-11-08 returned 6,559 contracts and 1,753 coins, and flagged 116 coins with funding arbitrage, for example:

| Coin | Highest funding | Lowest funding | Spread (APR) | Open interest |
|---|---|---|---|---|
| ZEC | Gate 112.24% | KuCoin -37.45% | 149.69% | $2.28B |
| NEAR | Binance 10.95% | Gate -27.70% | 38.65% | $733M |
| BTC | KuCoin 21.13% | MEXC -12.81% | 33.94% | $35.8B |
| SOL | Deribit 24.03% | Hyperliquid 1.56% | 22.47% | $3.73B |
| HYPE | Binance 10.95% | Bybit -9.88% | 20.83% | $3.08B |

and these contracts with the most extreme funding among those trading over $20M a day:

| Exchange | Contract | Funding | Every | APR |
|---|---|---|---|---|
| Binance | HOTUSDT | -0.392% | 1 h | -3,437% |
| Binance | CYBERUSDT | -0.772% | 4 h | -1,690% |
| OKX | ONE-USDT-SWAP | -0.240% | 4 h | -525% |
| Binance | JCTUSDT | +0.211% | 4 h | +462% |

| Field | Meaning |
|---|---|
| `fundingRate` | The rate per interval as the exchange publishes it (0.0001 = 0.01%). Positive means longs pay shorts. |
| `fundingRate8hPercent` | The same rate scaled to 8 hours, the usual way to compare. |
| `fundingAprPercent` | Rate × intervals per year × 100, without compounding. |
| `openInterestUsd` | Open interest at the mark price. One side of the book, as exchanges report it. |
| `unitPrice` | Mark price divided by `multiplier`, the price of one coin even for 1000PEPE style contracts. |
| `basisPercent` | (Mark − index) ÷ index × 100. |
| `basisAnnualizedPercent` | Dated futures only: basis × 365 ÷ days to expiry. |
| `fundingSpreadAprPercent` | Coin summaries: highest minus lowest funding APR among perpetuals with at least `arbitrageMinVolumeUsd` of 24h volume. |
| `oiWeightedFundingAprPercent` | Coin summaries: funding APR of all perpetuals weighted by their open interest. |
| `maxPainStrike` | Options: the strike where option holders would get the least at expiry. |
| `expectedMovePercent` | Options: the at the money call plus put, as a share of the underlying price. |
| `openInterestChangePercent`, `fundingAprChange`, `priceChangeSincePreviousPercent` | Monitor mode: changes since the previous run, with `previousSnapshotAt`. |

### ✨ Why this one

| | This Actor | Typical crypto scrapers |
|---|---|---|
| 10 exchanges in one run, same fields | ✅ | ⚠️ one exchange |
| Funding normalized to 8 hours and APR | ✅ | ❌ raw rate only |
| Open interest in USD with contract sizes converted | ✅ | ⚠️ in contracts |
| Coin summary with funding arbitrage across exchanges | ✅ | ❌ |
| Annualized basis of dated futures | ✅ | ❌ |
| Deribit options max pain, skew and expected move | ✅ | ❌ |
| Monitor mode with open interest jumps and funding flips | ✅ | ❌ |
| No API keys or exchange accounts | ✅ | ⚠️ some need keys |

### 🚀 How to use

1. Pick the coins, or leave the list empty for the whole market.
2. Choose perpetuals, dated futures or both, and the rows you want.
3. Set filters or `onlySignals` if you want alerts instead of the full board.
4. Run it, or schedule it every hour in monitor mode and connect a webhook.

### 💼 Use cases

- 🔀 **Funding rate arbitrage.** Long the perpetual with the lowest funding and short the one with the highest, on two exchanges. The coin summary gives both legs.
- 🧺 **Cash and carry.** Compare the annualized basis of every dated future with perpetual funding.
- 🔥 **Crowded trades.** Extreme funding, funding at cap and open interest jumps often come before squeezes.
- 🗺️ **Market share.** Open interest share by exchange for every coin, tracked over time with scheduled runs.
- 🎯 **Options positioning.** Max pain, put/call ratios and expected move before each Deribit expiry.
- 🤖 **Bots and dashboards.** Flat, consistent fields ready for Python, Google Sheets, Grafana or a trading bot.

### ❓ FAQ

**Do I need exchange accounts or API keys?** No. All data comes from the public market endpoints of each exchange.

**Why does it use a proxy?** Binance and Bybit block US servers, where Apify runs. Their requests go through the proxy you set (default residential, Germany). The other 8 exchanges are called directly. Without a proxy you still get those 8, and Binance and Bybit return an error row.

**How fresh is the data?** It is the live state at the time of the run. Funding rates are the current rate for the next settlement, which the exchanges update every few seconds or minutes. Schedule the Actor to follow them.

**How many results does a run give?** One row per contract, plus one per coin and one per options expiry. BTC, ETH and SOL with perpetuals and futures gave 233 rows in a cloud run on 2026-11-08. The whole market gave 8,312 rows, or 1,346 contracts with `minVolume24hUsd` set to 1,000,000. Use `assets`, `minVolume24hUsd`, `onlySignals` and `maxItems` to keep runs small.

**Why is the open interest different from other sites?** Exchanges report one side of the book and the Actor keeps it that way, valued at the mark price. Sites that add both sides or use the last price show different numbers. Volume is the 24 hour value each exchange reports; Deribit's USDC perpetuals report very high volume compared to their open interest.

**How is the funding arbitrage signal computed?** Among perpetuals of the same coin with at least `arbitrageMinVolumeUsd` of 24h volume, it compares the highest and lowest funding APR on different exchanges. It does not include trading fees, borrowing or the price gap between the two contracts, and funding can change before the next settlement.

**Are pre-IPO and stock perpetuals included?** Yes, when an exchange lists them (for example SOXL or SKHYNIX). Their prices sometimes use different units between exchanges, so the price dislocation signal ignores prices more than 20% away from the median.

**How does monitor mode work?** The first run saves a snapshot of every contract and coin. Each next run adds the change since the previous one and raises `open interest jump`, `open interest drop` and `funding flipped positive` or `funding flipped negative` signals. Use `monitorName` to keep separate monitors. Snapshots older than 7 days are dropped.

### 🔌 Integrations

Works with the Apify API, schedules, webhooks, Google Sheets, Make, Zapier, n8n, Slack and any tool that reads JSON or CSV.

### 🕳️ More from DataMole

| Actor | What it does |
|---|---|
| [TradingView Stock Screener & Market Scanner](https://apify.com/datamole/tradingview-stock-screener) | Stock screens and signals across 68 markets |
| [ForexFactory Economic Calendar Scraper](https://apify.com/datamole/forexfactory-economic-calendar) | Economic events with surprise, currency signal and history stats |
| [Truth Social Posts Scraper & Trump Monitor](https://apify.com/datamole/truth-social-scraper) | Trump's posts with market topics, for trading alerts |

**Need an exchange or a field we don't cover yet?** Open an issue on this Actor. We read everything.

### ⚖️ Disclaimer

This Actor collects publicly available market data from the exchanges listed above. It is not affiliated with or endorsed by any of them. The data is for information and research only. It is not trading or investment advice, and no profit is guaranteed. Crypto derivatives are high risk and restricted in some countries, and each exchange's terms may limit how its data is used or shared. You are responsible for using the data in line with the laws where you live and the terms of each source.

# Actor input Schema

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

Exchanges to scrape. Binance and Bybit block US servers and go through the proxy below.

## `assets` (type: `array`):

Coin tickers, for example BTC, ETH, SOL or PEPE. Bundled contracts like 1000PEPEUSDT or kPEPE count as PEPE. Empty means every coin.

## `contractTypes` (type: `array`):

Perpetual swaps, dated futures, or both. Dated futures get the basis annualized to their expiry.

## `margins` (type: `array`):

Linear contracts margined in USDT or USDC, inverse contracts margined in the coin itself, or both.

## `recordTypes` (type: `array`):

Coin summaries compare each coin across exchanges, contracts give one row per contract and exchange, options give one row per Deribit expiry.

## `minVolume24hUsd` (type: `integer`):

Skip contracts that traded less than this in the last 24 hours. 0 keeps all.

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

Skip contracts with less open interest than this. 0 keeps all.

## `minAbsFundingApr` (type: `integer`):

Keep only contracts whose yearly funding is at least this high, positive or negative. 30 keeps contracts above 30% or below -30%. Empty keeps all.

## `onlySignals` (type: `boolean`):

Keep only contracts and coins with at least one signal, such as extreme funding or funding arbitrage.

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

Order of the contract rows. Coin summaries are always sorted by open interest.

## `extremeFundingApr` (type: `integer`):

Flag contracts whose yearly funding is at least this high or this low. 0 turns the signal off.

## `arbitrageMinApr` (type: `integer`):

Flag coins whose funding differs by at least this much between two exchanges, a long and short pair that earns the gap. 0 turns the signal off.

## `arbitrageMinVolumeUsd` (type: `integer`):

Only contracts with this much 24h volume take part in the funding and price comparison, so thin markets do not create fake gaps.

## `priceDislocationPercent` (type: `integer`):

Flag coins whose mark price differs by at least this much between exchanges. 0 turns the signal off.

## `includeLongShort` (type: `boolean`):

Share of accounts long and top trader ratio on Binance, Bybit and OKX for the 100 most traded contracts of each. Adds requests and time.

## `monitorMode` (type: `boolean`):

Schedule the run and every row gets the change in open interest, funding and price since the previous run, with open interest jump and funding flip signals.

## `monitorName` (type: `string`):

Use different names to keep separate monitors. Runs with the same name share their memory.

## `oiChangeAlertPercent` (type: `integer`):

In monitor mode, flag contracts and coins whose open interest moved at least this much since the previous run. 0 turns the signal off.

## `maxItems` (type: `integer`):

Maximum number of rows to save. Coin summaries come first, then contracts, then options. Empty means no limit.

## `proxyConfiguration` (type: `object`):

Used only for Binance and Bybit, which block US servers. A residential proxy outside the US works best. The other exchanges are called directly.

## Actor input object example

```json
{
  "exchanges": [
    "binance",
    "bybit",
    "okx",
    "hyperliquid",
    "deribit",
    "bitget",
    "gate",
    "mexc",
    "kucoin",
    "dydx"
  ],
  "assets": [
    "BTC",
    "ETH",
    "SOL"
  ],
  "contractTypes": [
    "perpetual"
  ],
  "margins": [
    "linear",
    "inverse"
  ],
  "recordTypes": [
    "assets",
    "contracts"
  ],
  "minVolume24hUsd": 0,
  "minOpenInterestUsd": 0,
  "onlySignals": false,
  "sortBy": "openInterest",
  "extremeFundingApr": 50,
  "arbitrageMinApr": 20,
  "arbitrageMinVolumeUsd": 1000000,
  "priceDislocationPercent": 1,
  "includeLongShort": false,
  "monitorMode": false,
  "oiChangeAlertPercent": 10,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ],
    "apifyProxyCountry": "DE"
  }
}
```

# Actor output Schema

## `assets` (type: `string`):

No description

## `contracts` (type: `string`):

No description

## `options` (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 = {
    "exchanges": [
        "binance",
        "bybit",
        "okx",
        "hyperliquid",
        "deribit",
        "bitget",
        "gate",
        "mexc",
        "kucoin",
        "dydx"
    ],
    "assets": [
        "BTC",
        "ETH",
        "SOL"
    ],
    "proxyConfiguration": {
        "useApifyProxy": true,
        "apifyProxyGroups": [
            "RESIDENTIAL"
        ],
        "apifyProxyCountry": "DE"
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("datamole/crypto-funding-rates-open-interest").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 = {
    "exchanges": [
        "binance",
        "bybit",
        "okx",
        "hyperliquid",
        "deribit",
        "bitget",
        "gate",
        "mexc",
        "kucoin",
        "dydx",
    ],
    "assets": [
        "BTC",
        "ETH",
        "SOL",
    ],
    "proxyConfiguration": {
        "useApifyProxy": True,
        "apifyProxyGroups": ["RESIDENTIAL"],
        "apifyProxyCountry": "DE",
    },
}

# Run the Actor and wait for it to finish
run = client.actor("datamole/crypto-funding-rates-open-interest").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 '{
  "exchanges": [
    "binance",
    "bybit",
    "okx",
    "hyperliquid",
    "deribit",
    "bitget",
    "gate",
    "mexc",
    "kucoin",
    "dydx"
  ],
  "assets": [
    "BTC",
    "ETH",
    "SOL"
  ],
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ],
    "apifyProxyCountry": "DE"
  }
}' |
apify call datamole/crypto-funding-rates-open-interest --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,datamole/crypto-funding-rates-open-interest"
        }
    }
}
```

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/O8TYr1P816d28HZwT/builds/G1Vcp10a72dGcu2ys/openapi.json
