← all AgentPay tools

funding_rates

Get perpetual futures funding rates across Binance, Bybit, and OKX.

Free defi x402 protocol no API key · no wallet

When agents use this

You need funding rates to gauge leveraged market sentiment or cost of holding a perp position.

Parameters

nametyperequireddescription
assetstringno

Returns

funding_rate_pct, annualized_rate_pct, sentiment (bullish/neutral/bearish) per exchange

Example response

{
  "asset": "BTC",
  "rates": [
    {
      "exchange": "binance",
      "funding_rate_pct": 0.012,
      "annualized_rate_pct": 13.14,
      "sentiment": "bullish"
    },
    {
      "exchange": "bybit",
      "funding_rate_pct": 0.011,
      "annualized_rate_pct": 12.04,
      "sentiment": "bullish"
    },
    {
      "exchange": "okx",
      "funding_rate_pct": 0.009,
      "annualized_rate_pct": 9.85,
      "sentiment": "neutral"
    }
  ],
  "source": "binance/bybit/okx"
}

Call it — HTTP (x402)

curl -X POST https://agentpay.tools/tools/funding_rates/call \
  -H 'Content-Type: application/json' \
  -d '{"parameters": {}, "agent_address": "<your wallet or any identifier>"}'

Call it — Python SDK

from agentpay import quickstart  # pip install agentpay-x402

s = quickstart(max_spend=0.10)   # hard budget cap; mints a wallet, no funding needed
r = s.call("funding_rates", {})
print(r.data)                    # + r.cost, r.tx, r.network — full receipt

Call it — MCP

npx -y @romudille/agentpay-mcp   # keyless; exposes funding_rates to any MCP agent runtime
All tools · x402 delivery scores · Receipt ledger · Guides · llms.txt · AgentPay