# Funding Radar (`opaline_midge/funding-radar`) Actor

Live perpetual funding rates and fee-adjusted funding-arbitrage opportunities across 8 perp DEXs (Hyperliquid, Aster, Paradex, Lighter, dYdX, Extended, Pacifica, Binance). Ranks carry trades by net APR after taker fees. Pay per result, no subscription.

- **URL**: https://apify.com/opaline\_midge/funding-radar.md
- **Developed by:** [joker](https://apify.com/opaline_midge) (community)
- **Categories:** Developer tools, News
- **Stats:** 2 total users, 0 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.0001 / actor start

This Actor is paid per event and usage. You are charged both the fixed price for specific events and for Apify platform usage.

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

## Funding Rate API — Perp DEX Funding & Arbitrage Scanner

Get **live funding rates** and **ready-to-trade funding-arbitrage opportunities** across 8 decentralized perp DEXs in a single call. No monthly subscription — you pay only for the rows you pull.

Comparable data feeds charge $29–699/month. Here, a typical query costs a few cents.

### What can you do with it?

- **Find funding-arb trades**: see which coin to short on which venue and long on another, ranked by net APR *after* round-trip taker fees — not the raw spread that evaporates once you pay fees.
- **Feed your trading bot**: pull normalized funding rates across venues on your own schedule instead of integrating 8 different exchange APIs with 8 different formats and funding intervals.
- **Monitor a single venue**: filter to just the exchanges or coins you trade.

### Supported exchanges (8)

Hyperliquid · Aster · Paradex · Lighter · Binance (via Lighter) · dYdX v4 · Extended · Pacifica

All rates are normalized to a common annualized APR, so a 1h-funding venue and an 8h-funding venue are directly comparable.

### How to use

Run the Actor with JSON input (via the Apify Console, API, or any Apify client):

```json
{
  "mode": "arb",
  "symbols": [],
  "venues": [],
  "minNetApr": "0.10",
  "requireOi": true
}
````

| Field | What it does |
|-------|--------------|
| `mode` | `arb` = ranked arbitrage opportunities · `rates` = raw funding rates per venue per coin |
| `symbols` | Only these coins, e.g. `["BTC", "ETH"]`. Empty = all (~600 coins) |
| `venues` | Only these exchanges, e.g. `["hyperliquid", "paradex"]`. Empty = all 8 |
| `minNetApr` | Arb mode: minimum net APR as a decimal (`"0.10"` = 10%) |
| `requireOi` | Arb mode: drop opportunities where a leg's open interest is unknown — filters thin markets that show absurd, unfillable APRs. Keep `true` |

Results land in the run's dataset — download as JSON, CSV, or Excel, or read them via the Apify API.

#### Example output — `arb` mode

```json
{
  "symbol": "LIT",
  "short_venue": "hyperliquid",
  "short_apr": 0.1095,
  "long_venue": "extended",
  "long_apr": -0.3767,
  "spread_apr": 0.4862,
  "net_apr": 0.4132,
  "min_oi_usd": 4528851
}
```

Read it as: short LIT on Hyperliquid (funding pays you 10.95% APR), long LIT on Extended (negative funding pays you another 37.67%), and after taker fees on both legs you keep an estimated **41.3% APR**, with at least $4.5M open interest on the thinner leg.

#### Example output — `rates` mode

```json
{
  "venue": "hyperliquid",
  "symbol": "BTC",
  "rate": 0.0000125,
  "interval_hours": 1.0,
  "apr": 0.1095,
  "mark_price": 62903.0,
  "open_interest_usd": 2236125876,
  "fetched_at": 1783326670
}
```

#### Call it from code

```python
from apify_client import ApifyClient

client = ApifyClient("<YOUR_API_TOKEN>")
run = client.actor("opaline_midge/funding-radar").call(
    run_input={"mode": "arb", "minNetApr": "0.10", "requireOi": True}
)
for row in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(row["symbol"], row["net_apr"])
```

### Why net APR instead of raw spread?

A 30% funding spread means nothing if you pay 4 taker fees to enter and exit both legs. This Actor subtracts annualized round-trip taker fees (per-venue fee table, verified against official docs) over an assumed 7-day hold, so the ranking reflects what you could actually keep.

### FAQ

**How fresh is the data?** Fetched live from the venues' public APIs at the moment you run the Actor — not cached.

**Why do some rows have `min_oi_usd: null`?** A few venues don't publish open interest. With `requireOi: true` (default) those pairs are excluded from arb results.

**Is this trading advice?** No. Funding rates flip fast, thin books slip, and DEXs carry smart-contract and counterparty risk. Net APR is an estimate, not a guarantee. Always verify before trading.

**A venue is missing from my results.** Single-venue outages are isolated — the Actor returns data from the healthy venues instead of failing the whole run.

### More

- Free web dashboard (updates every 30 min): https://holydement0r.github.io/Funding-Radar/
- Free Telegram alerts: https://t.me/FundingRadarAlerts
- Open source — code, architecture, and development docs: [docs/development.md](docs/development.md)

# Actor input Schema

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

arb = fee-adjusted funding-arbitrage opportunities; rates = raw funding rate per venue per coin.

## `symbols` (type: `array`):

Filter to these coin symbols, e.g. \["BTC", "ETH"]. Empty = all coins.

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

Filter to these venues, e.g. \["hyperliquid", "paradex"]. Empty = all 8 venues.

## `minNetApr` (type: `string`):

Only return arb opportunities with net APR at or above this (decimal, e.g. 0.10 = 10%).

## `requireOi` (type: `boolean`):

Drop opportunities where a leg's open interest is unknown (recommended - filters thin/stale markets).

## Actor input object example

```json
{
  "mode": "arb",
  "symbols": [],
  "venues": [],
  "minNetApr": "0.10",
  "requireOi": true
}
```

# 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 = {};

// Run the Actor and wait for it to finish
const run = await client.actor("opaline_midge/funding-radar").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 = {}

# Run the Actor and wait for it to finish
run = client.actor("opaline_midge/funding-radar").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 '{}' |
apify call opaline_midge/funding-radar --silent --output-dataset

```

## MCP server setup

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

```

## OpenAPI specification

```json
{
    "openapi": "3.0.1",
    "info": {
        "title": "Funding Radar",
        "description": "Live perpetual funding rates and fee-adjusted funding-arbitrage opportunities across 8 perp DEXs (Hyperliquid, Aster, Paradex, Lighter, dYdX, Extended, Pacifica, Binance). Ranks carry trades by net APR after taker fees. Pay per result, no subscription.",
        "version": "0.2",
        "x-build-id": "T9g3ykhn668tSsy2p"
    },
    "servers": [
        {
            "url": "https://api.apify.com/v2"
        }
    ],
    "paths": {
        "/acts/opaline_midge~funding-radar/run-sync-get-dataset-items": {
            "post": {
                "operationId": "run-sync-get-dataset-items-opaline_midge-funding-radar",
                "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/opaline_midge~funding-radar/runs": {
            "post": {
                "operationId": "runs-sync-opaline_midge-funding-radar",
                "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/opaline_midge~funding-radar/run-sync": {
            "post": {
                "operationId": "run-sync-opaline_midge-funding-radar",
                "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": [
                            "arb",
                            "rates"
                        ],
                        "type": "string",
                        "description": "arb = fee-adjusted funding-arbitrage opportunities; rates = raw funding rate per venue per coin.",
                        "default": "arb"
                    },
                    "symbols": {
                        "title": "Coins (optional filter)",
                        "type": "array",
                        "description": "Filter to these coin symbols, e.g. [\"BTC\", \"ETH\"]. Empty = all coins.",
                        "default": [],
                        "items": {
                            "type": "string"
                        }
                    },
                    "venues": {
                        "title": "Exchanges (optional filter)",
                        "type": "array",
                        "description": "Filter to these venues, e.g. [\"hyperliquid\", \"paradex\"]. Empty = all 8 venues.",
                        "default": [],
                        "items": {
                            "type": "string"
                        }
                    },
                    "minNetApr": {
                        "title": "Minimum net APR (arb mode)",
                        "type": "string",
                        "description": "Only return arb opportunities with net APR at or above this (decimal, e.g. 0.10 = 10%).",
                        "default": "0.10"
                    },
                    "requireOi": {
                        "title": "Require verified open interest (arb mode)",
                        "type": "boolean",
                        "description": "Drop opportunities where a leg's open interest is unknown (recommended - filters thin/stale markets).",
                        "default": true
                    }
                }
            },
            "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
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
```
