Perpetual Funding Rates API

io.github.Br0ski777Published by GitHub account Br0ski777v1.1.0Updated Oct 24, 2026

Perp funding rates across Binance, Bybit, OKX — open interest, sentiment. x402.

VerifiedSSEWeb executableFinanceData & Analytics

Overview

AI-generated overview

Remote MCP server that returns perpetual futures funding rates, open interest and sentiment across Binance, Bybit and OKX, paid per call via x402.

What you can do
  • Scan all USDT perpetual markets ranked by funding rate, with sort, limit and venue filters
  • Query a single symbol across Binance, Bybit and OKX with funding rate, annualized rate, next funding time, open interest, mark price and a sentiment summary
  • Compare venues to surface cross-venue spreads and suggested long and short legs for carry trades
When to use it
Useful when an assistant needs current perp funding data to find carry or basis trades, time perp entries, or monitor funding costs on open positions. Not intended for spot prices, DeFi yields or Hyperliquid-specific rates.
Requirements
A remote MCP endpoint added by URL; no API key or signup. Each call is paid in USDC on Base L2 through the x402 protocol, so an x402-capable client and a funded wallet are needed to complete the payment challenge.
Before you install
Every request costs money ($0.001 per call per the README) and is settled in USDC on Base, so an agent can spend funds automatically; set spending limits. Payment goes through third-party facilitators (Coinbase CDP, PayAI). Market scans cover only Binance and Bybit; OKX appears only in single-symbol queries.

Installation

In SourceWeft

  1. Open Perpetual Funding Rates API in the dashboard and add it to a workspace.
  2. Enable the server for the chats that should use its tools.

Web executable via SSE. Remote servers run from the web runtime once configured in a workspace.

Use with an agent

Paste this prompt into Claude Code, Codex, Cursor or another agent — or into SourceWeft chat. The agent reads this server's install guide, shows you its publisher, endpoint and sign-in, and adds it to your client once you agree. Keys never go into a command.

Read https://sourceweft.com/mcp/io.github.Br0ski777%2Ffunding-rates/install.md and connect the MCP server it describes to my client. Before changing any config, show me its publisher, endpoint and sign-in method and wait for my OK. Never put an API key in a command or in a file I would commit; ask me where it should come from.

Read the install guide the agent follows

Other MCP clients

Add this to your client's mcpServers config.

{
  "mcpServers": {
    "perpetual-funding-rates-api": {
      "type": "sse",
      "url": "https://funding-rates.api.klymax402.com/mcp"
    }
  }
}

README

Perpetual Funding Rates API

[MCP Server] [x402] [License: MIT]

Perpetual funding rates across Binance, Bybit and OKX. Scan every USDT perp ranked by funding in a single call, or query one asset with open interest and predicted next rate. Pay-per-call via x402 (USDC on Base L2) -- no API key, no signup, no rate-limit wall.

Part of the klymax402 marketplace -- 100 x402 micropayment APIs for AI agents, one wallet, USDC on Base.

Quickstart -- MCP

Add to your MCP client config (Claude Desktop, Cursor, ElizaOS, etc.):

json
{  "mcpServers": {    "funding-rates": {      "url": "https://funding-rates.api.klymax402.com/mcp"    }  }}

Quickstart -- HTTP (x402)

bash
# Whole market, biggest funding firstcurl -X POST "https://funding-rates.api.klymax402.com/api/rates"   -H "Content-Type: application/json" -d '{"sort":"abs","limit":20,"minVenues":2}'# -> 402 Payment Required, with an x402 payment challenge in the response body

Any x402-aware client (@x402/fetch, x402-agent-tools, ATXP) handles the 402 -> sign -> retry cycle automatically.

Tools

ToolMethodPathPriceDescription
perp_get_funding_ratesGET/api/rates$0.001Scan funding rates across all perp markets, or query a single asset
perp_get_funding_ratesPOST/api/rates$0.001Scan funding rates across all perp markets, or query a single asset (POST variant)

perp_get_funding_rates

Two modes on the same route, at the same price.

Market scan -- omit symbol and every USDT perp on Binance and Bybit comes back ranked by funding, so an agent finds an opportunity in one paid call instead of probing symbol by symbol.

Single symbol -- pass symbol and Binance, Bybit and OKX come back side by side for that asset, with open interest, mark price, next funding time and a sentiment read.

Parameters

NameTypeRequiredDescription
symbolstringnoToken symbol (e.g. BTC, ETH, SOL). Omit to scan the whole market.
sortstringnoScan only: abs (default), highest, lowest, spread.
limitnumbernoScan only: markets to return. Default 50, max 1000.
minVenuesnumbernoScan only: set to 2 to keep only markets listed on both venues.

Returns (scan)

  • markets -- ranked list, each with symbol, per-venue fundingRate and annualizedRate
  • avgRate / annualizedRate -- mean funding across venues, annualized as rate * 3 * 365
  • direction -- short opportunity when funding is positive, long opportunity when negative
  • spread / spreadAnnualized -- gap between the cheapest and dearest venue
  • longVenue / shortVenue -- where to take each leg of the cross-venue carry

Returns (single symbol)

  • rates -- array per exchange with funding rate, annualized rate, next funding time
  • summary -- average, min, max, spread, sentiment, total open interest, mark price

Example response (scan):

json
{"scan":true,"totalMarkets":600,"venues":["Binance","Bybit"],"sort":"abs","markets":[{"symbol":"PEPE","venueCount":2,"venues":{"Binance":{"fundingRate":0.0005,"annualizedRate":54.75},"Bybit":{"fundingRate":0.0003,"annualizedRate":32.85}},"avgRate":0.0004,"annualizedRate":43.8,"direction":"short opportunity (longs pay shorts)","spread":0.0002,"spreadAnnualized":21.9,"longVenue":"Bybit","shortVenue":"Binance"}]}

When to use: finding carry and basis trades, timing perp entries, monitoring funding costs on open positions.

Not for: spot prices (use dex_get_swap_quote), yields (use defi_find_best_yields), Hyperliquid-specific rates (use hyperliquid_get_funding_rates).

Note: market scans cover Binance and Bybit. OKX has no bulk funding-rate endpoint, so it is included only when you query a single symbol.

Example agent prompts

  • "Which perps have the most extreme funding right now?"
  • "Find the biggest cross-venue funding spread I can carry"
  • "What is the funding rate for ETH across Binance, Bybit and OKX?"

Payment

  • Protocol: x402 -- HTTP-native pay-per-call, no signup, no API key
  • Network: Base L2 (eip155:8453)
  • Asset: USDC
  • Facilitator: Coinbase CDP (primary), PayAI (fallback)
  • Also reachable via ATXP (OAuth-wrapped x402, RFC 9728 protected-resource metadata)

Part of klymax402

100 x402 micropayment APIs for AI agents -- one wallet, USDC on Base, zero signup.

License

MIT

Source: README.md at commit 7aa02b4

Tools

0
SourceWeft has not read this server's tools yet.

Version history

1
  1. v1.1.0LatestSep 16, 2026

Score

50% of the applicable checks met

How complete this listing is, computed from the registry entry, the endpoint and public sources. Not a rating of the server and not a statement that it is safe or working today: reachability is a dated check, and no installs or reviews go into the score.

  • Reached in the last 30 daysRequired25 pts

    Keep the endpoint answering the MCP handshake; SourceWeft probes it every 30 days.

  • Auth declaredRequired10 pts

    Declare the credential headers in the registry entry, or keep the endpoint answering the probe so its auth can be classified.

  • Tools listed15 pts

    Answer tools/list without a credential, or ship a package that starts in a sandbox without one.

  • DescriptionRequired15 pts
  • Logo10 pts
  • Documentation15 pts
  • License10 pts