Skip to main content
ClaudeWave

Live perps funding rates over x402 — Binance/Bybit/OKX, pay per call in USDC or ETH on Base

ToolsOfficial Registry0 stars0 forks● JavaScriptMITUpdated today
ClaudeWave Trust Score
87/100
✓ Trusted
Passed
  • ✓Open-source license (MIT)
  • ✓Actively maintained (<30d)
  • ✓Clear description
  • ✓Documented (README)
Last scanned: 10/21/2026
Get started
Method: Clone
Terminal
git clone https://github.com/rustemmustafingovua-byte/perps-funding-pulse
1. Clone the repository.
2. Follow the README for installation and usage instructions.
Use cases

Tools overview

# 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](https://github.com/daydreamsai/agent-bounties/issues/8).

---

## Live deployment

| Endpoint | Method | Payment |
|---|---|---|
| `https://0f5a627396ba1a.lhr.life/health` | GET | free |
| `https://0f5a627396ba1a.lhr.life/funding` | POST | x402 — 0.001 USDC **or** native ETH on Base |

```bash
# 1) health — бесплатно
curl https://0f5a627396ba1a.lhr.life/health

# 2) без оплаты сервис отвечает 402 + условиями оплаты
curl -i -X POST https://0f5a627396ba1a.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://0f5a627396ba1a.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`.

```bash
curl -X POST https://0f5a627396ba1a.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

```json
{
  "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

```bash
npm install
PORT=8780 PRICE_USD=0.001 X402_PAY_TO=0xYourAddress npm start
```

| Variable | Default | Meaning |
|---|---|---|
| `PORT` | `8780` | HTTP port |
| `PRICE_USD` | `0.001` | price per paid call |
| `X402_PAY_TO` | `0x8aC6a229f254980CCd3Dd35CF5E1B7c08880B40E` | where payments go (Base) |
| `BASE_RPC` | `https://mainnet.base.org` | read-only RPC for payment verification |

## Tests

```bash
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

What people ask about perps-funding-pulse

What is rustemmustafingovua-byte/perps-funding-pulse?

+

rustemmustafingovua-byte/perps-funding-pulse is tools for the Claude AI ecosystem. Live perps funding rates over x402 — Binance/Bybit/OKX, pay per call in USDC or ETH on Base It has 0 GitHub stars and its last recorded update is dated 2026-10-21.

How do I install perps-funding-pulse?

+

You can install perps-funding-pulse by cloning the repository (https://github.com/rustemmustafingovua-byte/perps-funding-pulse) or following the README instructions on GitHub. ClaudeWave also provides quick install blocks on this page.

Is rustemmustafingovua-byte/perps-funding-pulse safe to use?

+

Our security agent has analyzed rustemmustafingovua-byte/perps-funding-pulse and assigned a Trust Score of 87/100 (tier: Trusted). See the full breakdown of passed checks and flags on this page.

Who maintains rustemmustafingovua-byte/perps-funding-pulse?

+

rustemmustafingovua-byte/perps-funding-pulse is maintained by rustemmustafingovua-byte. The last recorded GitHub activity is dated 2026-10-21, with 0 open issues.

Are there alternatives to perps-funding-pulse?

+

Yes. On ClaudeWave you can browse similar tools at /categories/tools, sorted by popularity or recent activity.

Deploy perps-funding-pulse to your cloud

Ship this repo to production in minutes. Each platform spins up its own environment with editable env vars.

Maintain this repo? Add a badge to your README

Drop the badge into your GitHub README to show it's tracked on ClaudeWave. Each badge links back to this page and reflects the live Trust Score.

Featured on ClaudeWave: rustemmustafingovua-byte/perps-funding-pulse
[![Featured on ClaudeWave](https://claudewave.com/api/badge/rustemmustafingovua-byte-perps-funding-pulse)](https://claudewave.com/repo/rustemmustafingovua-byte-perps-funding-pulse)
<a href="https://claudewave.com/repo/rustemmustafingovua-byte-perps-funding-pulse"><img src="https://claudewave.com/api/badge/rustemmustafingovua-byte-perps-funding-pulse" alt="Featured on ClaudeWave: rustemmustafingovua-byte/perps-funding-pulse" width="320" height="64" /></a>
multica-ai
andrej-karpathy-skills
6mo ago

A single CLAUDE.md file to improve Claude Code behavior, derived from Andrej Karpathy's observations on LLM coding pitfalls.

221.6k22.2k
ToolsInstall
nextlevelbuilder
ui-ux-pro-max-skill
6d ago

An AI skill that provides design intelligence for building professional UI/UX across multiple platforms.

138k14.6kPython
Toolsai-skillsantigravityInstall
JuliusBrussee
caveman
today

🪨 why use many token when few token do trick. Viral skill + proxy for coding agents that cuts 65% of tokens by talking like a caveman.

113.9k6.6kGo
ToolsaianthropicInstall
Alishahryar1
free-claude-code
2d ago

Use Claude Code, Codex, VSCode, Pi, and OpenCode (and 6 other harnesses) for free (1.3B+ free tokens) from your terminal, app, IDE, or phone, and now from the browser with native browser sessions (multi-harness + multi-model) like OpenClaw (voice supported + ToS friendly)

62.2k9.7kPython
ToolsInstall
BerriAI
litellm
today

The fastest, litest AI Gateway. Rust core with Python SDK. Call 100+ LLM APIs in OpenAI (or native) format with cost tracking, guardrails, load balancing, and logging [Bedrock, Azure, OpenAI, Anthropic, OpenAI, VertexAI, vLLM, Nvidia NIM]

61.7k12.5kPython
Toolsai-gatewayanthropicInstall
router-for-me
CLIProxyAPI
today

Wrap Antigravity, ChatGPT Codex, Claude Code, Grok Build, Muse Code, Devin as an OpenAI/Gemini/Claude/Codex compatible API service, allowing you to enjoy the free Gemini Series, GPT Series, Grok Series, Claude model through API

55.8k8.5kGo
Toolsantigravityclaude-codeInstall