81trust / 100

Funding History

by AgentFeed in Markets & finance

x402 APIPassing, checked 56 min ago

Funding rate history for any USDT perp, up to 200 intervals: the average rate, its annualized %, the share of intervals that were positive, and the raw series. Use when you need to answer: What has the carry on this perp actually been? What the carry has actually been.

GET https://x402.ochinimus.app/api/funding-history

Last 30 days

All checks passedSome failedAll failedNot checked
Uptime
100%
Response time
63 ms typical, 63 ms slowest 5%
Last check
56 min ago
Next check
any minute now

How to call it

# See the payment challenge (nothing is charged)
curl -i -X GET "https://x402.ochinimus.app/api/funding-history?symbol=SOLUSDT"
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%2Fx402.ochinimus.app%2Fapi%2Ffunding-history
const res = await pay("https://x402.ochinimus.app/api/funding-history?symbol=SOLUSDT");
console.log(await res.json());

Example input

{
  "symbol": "SOLUSDT"
}

Example output

{
  "data": {
    "avg_annualized_pct": 5.83,
    "avg_rate_8h": 0.00005327,
    "history": [
      {
        "funding_interval_hours": 8,
        "funding_rate_raw": 0.00008247,
        "rate_8h": 0.00008247,
        "ts": 1790582400000
      },
      {
        "funding_interval_hours": 8,
        "funding_rate_raw": 0.00006338,
        "rate_8h": 0.00006338,
        "ts": 1790553600000
      },
      {
        "funding_interval_hours": 8,
        "funding_rate_raw": 0.0001,
        "rate_8h": 0.0001,
        "ts": 1790524800000
      }
    ],
    "intervals": 30,
    "positive_share_pct": 77,
    "symbol": "SOLUSDT"
  },
  "paid": true,
  "tool": "get_funding_history"
}

Security scan

  • No findings. We scan names, descriptions and tool definitions for hidden instructions and other prompt-injection patterns.

Recent checks

WhenResultHTTPTimePrice
56 min agoPassed40265 ms$0.005
6 h agoPassed40263 ms$0.005