81trust / 100
Derivatives Funding Apr Matrix
by AlphaPipeline Funding APR Matrix in Onchain & crypto
x402 APIPassing, checked 55 min ago
Annualizes the current perpetual funding rate into an APR, flags which side (SHORT or LONG perp) currently collects funding, and computes carry-trade breakeven days against an assumed round-trip trading cost. Pure calculation on top of funding-rate data. Paid in USDC on Base.
GET https://alphapipeline-eu.onrender.com/v1/derivatives/funding-apr-matrix
Last 30 days
All checks passedSome failedAll failedNot checked
- Uptime
- 100%
- Response time
- 72 ms typical, 72 ms slowest 5%
- Last check
- 55 min ago
- Next check
- any minute now
How to call it
# See the payment challenge (nothing is charged)
curl -i -X GET "https://alphapipeline-eu.onrender.com/v1/derivatives/funding-apr-matrix?assumed_round_trip_cost_pct=0.2&symbol=BTC"import { wrapFetchWithPayment } from "@x402/fetch";
import { x402Client } from "@x402/core/client";
import { ExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";
const client = new x402Client().register(
"eip155:8453",
new ExactEvmScheme(privateKeyToAccount(process.env.AGENT_KEY)),
);
const pay = wrapFetchWithPayment(fetch, client);
// Not sure it's safe to pay? Preflight it first for $0.005:
// GET https://toolvet.app/api/v1/check?url=https%3A%2F%2Falphapipeline-eu.onrender.com%2Fv1%2Fderivatives%2Ffunding-apr-matrix
const res = await pay("https://alphapipeline-eu.onrender.com/v1/derivatives/funding-apr-matrix?assumed_round_trip_cost_pct=0.2&symbol=BTC");
console.log(await res.json());Example input
{
"assumed_round_trip_cost_pct": 0.2,
"symbol": "BTC"
}Example output
{
"annualized_rate_pct": 10.95,
"assumed_round_trip_cost_pct": 0.2,
"breakeven_days": 6.67,
"daily_funding_income_pct": 0.03,
"data_source": "bybit",
"funding_collector_side": "SHORT",
"funding_interval_hours": 8,
"funding_rate_percentage": 0.01,
"generated_at": {
"kst": "2026-09-07 21:00:00 KST",
"utc": "2026-09-07T12:00:00Z"
},
"notice": "annualized_rate_pct is a flat extrapolation of the CURRENT funding rate (periods_per_year x current rate) - it assumes the rate stays constant, which funding rates rarely do over a full year. breakeven_days assumes a constant funding_collector_side position and a flat assumed_round_trip_cost_pct covering entry+exit trading fees on both the spot and perpetual legs - it excludes margin borrow cost, spot-perp basis risk, and perp liquidation risk. Re-verify with your actual exchange fee tier before sizing a real carry trade.",
"periods_per_year": 1095,
"symbol": "BTCUSDT"
}Security scan
- No findings. We scan names, descriptions and tool definitions for hidden instructions and other prompt-injection patterns.
Recent checks
| When | Result | HTTP | Time | Price |
|---|---|---|---|---|
| 55 min ago | Passed | 402 | 72 ms | $0.01 |
| 6 h ago | Passed | 402 | 91 ms | $0.01 |