perps-funding-pulse

Registre officiel Autres

Live perps funding rate, next tick, open interest and skew (Binance, Bybit, OKX)

Installation

Ajoutez ceci à la configuration MCP de votre client (Claude Desktop : claude_desktop_config.json ; Cursor : .cursor/mcp.json ; VS Code et les autres utilisent la même forme « mcpServers »).

Remote (streamable-http)
Claude Code
claude mcp add --transport http perps-funding-pulse 'https://0c5678d9815785.lhr.life/mcp'
Configuration JSON (Claude Desktop, Cursor, VS Code)
{
    "mcpServers": {
        "perps-funding-pulse": {
            "type": "http",
            "url": "https://0c5678d9815785.lhr.life/mcp"
        }
    }
}

Documentation

Tirée du README du projet sur GitHub, actualisée chaque semaine. Les liens ouvrent GitHub.

Sommaire
  1. perps-funding-pulse
  2. Live deployment
  3. What it returns
  4. Acceptance criteria
  5. Run it yourself
  6. Tests
  7. Payment address (Solana)
  8. License

perps-funding-pulse

Live funding rates, next funding tick and open interest for perpetual futures — served over x402. Pay per call in USDC or ETH on Base.

Bounty submission for daydreamsai/agent-bounties#8 — Perps Funding Pulse.


Live deployment

EndpointMethodPayment
https://925ccb16381883.lhr.life/healthGETfree
https://925ccb16381883.lhr.life/fundingPOSTx402 — 0.001 USDC or native ETH on Base
# 1) health — бесплатно
curl https://925ccb16381883.lhr.life/health

# 2) без оплаты сервис отвечает 402 + условиями оплаты
curl -i -X POST https://925ccb16381883.lhr.life/funding \
  -H 'content-type: application/json' \
  -d '{"venue_ids":["binance","bybit","okx"],"markets":["BTC/USDT","ETH/USDT"]}'

# 3) оплата transfer-and-prove: отправьте 0.001 USDC (или ETH) на payTo
#    и повторите запрос с заголовком X-PAYMENT-TX: <hash транзакции>
curl -X POST https://925ccb16381883.lhr.life/funding \
  -H 'content-type: application/json' \
  -H "x-payment-tx: 0x<tx hash>" \
  -d '{"venue_ids":["binance"],"markets":["BTC/USDT"]}'

The service verifies the payment on Base by reading the transaction (native ETH transfer → to == payTo, or a USDC Transfer event → to == payTo). The client pays the gas; the server spends nothing.

MCP

Also listed in the official MCP Registry as io.github.rustemmustafingovua-byte/perps-funding-pulse.

curl -X POST https://925ccb16381883.lhr.life/mcp \
  -H 'content-type: application/json' \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"get_funding","arguments":{"venue_ids":["binance","bybit","okx"],"markets":["BTC/USDT","ETH/USDT"]}}}'

Tool: get_funding — same payload as POST /funding. The free tier allows 20 calls per hour per IP; past that the endpoint answers 402 with the x402 terms, and /mcp/paid always requires payment (send the transaction hash in X-PAYMENT-TX).

What it returns

{
  "venue": "binance",
  "market": "BTC/USDT",
  "funding_rate": 0.000052,
  "time_to_next": 20271,
  "open_interest": 95115.538,
  "skew": null,
  "mark_price": 104321.5,
  "ok": true
}
  • funding_rate — current funding rate (fraction, per interval)
  • time_to_next — seconds until the next funding payment
  • open_interest — total open interest
  • skew — long share of the long/short ratio (Bybit), null where the venue does not publish it
  • mark_price — mark price when the venue exposes it

Venues: Binance (USDⓈ-M), Bybit (linear), OKX (swaps) — all through public market-data endpoints, no API key, no account, no rate-limit cost.

Acceptance criteria

  • [x] Matches venue UI data within acceptable tolerance — every field is taken from the venue's own public market-data API (fapi/v1/premiumIndex, /v5/market/tickers, /api/v5/public/funding-rate), i.e. the same source the venue UI reads.
  • [x] Real-time or near real-time data updates — no caching: every paid call queries the venues live. Verified: Binance/Bybit/OKX return time_to_next ≈ 20271 s / 20270 s / 49069 s (8 h / 4 h / 8 h intervals) on every request.
  • [x] Deployed on a domain and reachable via x402 — live at the URL above; POST /funding without payment returns HTTP 402 with a payment-required header containing the x402 terms, and with a valid X-PAYMENT-TX it returns 200 + the data.
  • [x] GET /health is free and returns status, venue list, price and payment address.
  • [x] One venue failing does not break the response — its rows come back with ok: false and a reason.

Run it yourself

npm install
PORT=8780 PRICE_USD=0.001 X402_PAY_TO=0xYourAddress npm start
VariableDefaultMeaning
PORT8780HTTP port
PRICE_USD0.001price per paid call
X402_PAY_TO0x8aC6a229f254980CCd3Dd35CF5E1B7c08880B40Ewhere payments go (Base)
BASE_RPChttps://mainnet.base.orgread-only RPC for payment verification

Tests

npm test

6 tests: venue normalisation, resilience to a dead venue, x402 terms shape, and two negative payment-verification cases.

Payment address (Solana)

6yqoKnxnSdZmAMhSAZMV6u9w8g9UDU322qjUnznRVCMA

License

MIT

Questions fréquentes

Qu'est-ce que perps-funding-pulse ?

Live perps funding rate, next tick, open interest and skew (Binance, Bybit, OKX)

Comment installer perps-funding-pulse ?

Il fonctionne comme serveur distant. Dans Claude Code : claude mcp add --transport http perps-funding-pulse 'https://0c5678d9815785.lhr.life/mcp'. Pour les autres clients, collez la configuration JSON de cette page dans leurs réglages MCP.

Faut-il une clé API pour perps-funding-pulse ?

Son entrée au registre n'indique aucune clé ni secret obligatoire. Certaines fonctions peuvent tout de même demander un compte auprès du service auquel il se connecte.

perps-funding-pulse est-il open source ?

Oui. Son code est sur GitHub sous licence MIT.

Qui maintient perps-funding-pulse ?

Il est publié par rustemmustafingovua-byte. AI.tn le référence sans le maintenir ni le recommander.

Issu du registre MCP officiel. Être listé n'est pas une recommandation : vérifiez le code et les permissions d'un serveur avant de lui donner accès à vos données.