82trust / 100
Basis
by AgentFeed in Markets & finance
x402 APIPassing, checked 3 h ago
Perp-vs-spot basis for any USDT pair: the premium or discount in %, a contango or backwardation read, and the funding context that goes with it. Use when you need to answer: Is this perp trading above or below spot?
GET https://x402.ochinimus.app/api/basis
Last 30 days
All checks passedSome failedAll failedNot checked
- Uptime
- 100%
- Response time
- 212 ms typical, 212 ms slowest 5%
- Last check
- 3 h 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/basis?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.03:
// GET https://toolvet.app/api/v1/check?url=https%3A%2F%2Fx402.ochinimus.app%2Fapi%2Fbasis
const res = await pay("https://x402.ochinimus.app/api/basis?symbol=SOLUSDT");
console.log(await res.json());Example input
{
"symbol": "SOLUSDT"
}Example output
{
"data": {
"basis_pct": -0.0499,
"funding_interval_hours": 8,
"funding_rate_8h": 0.00008784,
"funding_rate_raw": 0.00008784,
"mark_price": 118.201,
"spot_price": 118.26,
"state": "flat",
"symbol": "SOLUSDT"
},
"paid": true,
"tool": "get_basis"
}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 |
|---|---|---|---|---|
| 3 h ago | Passed | 402 | 212 ms | $0.01 |