Perp basis vs oracle
get_basisPerp basis for any Hyperliquid perp: its mark price against Hyperliquid's oracle price (the validators' weighted median of spot venues), as a premium or discount in %, with a contango or backwardation read and the funding context. Costs 0.01 USDC per call (x402, USDC on Solana, Base, Polygon, Arbitrum or Arc).
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "get_basis"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| symbol | No | USDT perp symbol e.g. SOLUSDT, BTCUSDT (default SOLUSDT) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | Yes | the get_basis payload; a real captured example is free at https://x402.ochinimus.app/api/sample/get_basis | |
| tool | Yes | the tool that produced this payload |