x402stock Basis Spread API is a paid API for AI agents from x402stock.xyz, paid per call via x402, $0.05/call, status unknown (last checked 2026-10-11).
Returns the current basis spread (price difference) between US equity spot prices and their corresponding on-chain perpetual futures contracts on Hyperliquid
Scans every US stock that also trades as a 24/7 synthetic perp and returns the gap: official (delayed) price, prev close, perp mark and oracle, funding APR, open interest, and computed `basis_percent` + `basis_vs_prev_close_percent` — the implied overnight move while the US market is shut. Widest dislocation first, plus a plain-English `reading`. `?limit=`, `?min_basis=`. From x402stock
A JSON array of rows, each representing a US equity ticker matched to its on-chain perpetual counterpart, including: spot equity price and previous close, perp mark and oracle prices, basis in percentage and absolute dollar terms, basis vs previous close, direction (premium/discount/flat), perp funding APR, open interest, day volume in USD, whether the pair is comparable, and any exclusion reason. Also includes metadata: timestamp, US market open status, venue map (equity source and perp venue), a reading summary of the widest dislocations, and total available pairs.
GEThttps://x402stock.xyz/api/v1/basis?utm_source=zero.xyzUse this endpoint when you need to compare US equity spot prices against their Hyperliquid on-chain perpetual futures equivalents — specifically to measure basis spread, funding rates, or gauge overnight/off-hours market sentiment. Prefer this over generic stock price endpoints when the user is interested in derivatives, basis trading, arbitrage between spot and perp, or using perpetual futures as a real-time proxy for equity sentiment when US markets are closed.
| Field | Type | Description |
|---|---|---|
| inputrequired | object | |
| output | object |
{
"type": "json",
"example": {
"note": null,
"rows": [
{
"ticker": "NVDA",
"direction": "premium",
"perp_mark": 182.95,
"comparable": true,
"perp_oracle": 182.88,
"perp_symbol": "xyz:NVDA",
"equity_as_of": "2026-07-30T20:00:00.000Z",
"equity_price": 181.42,
"basis_percent": 0.84,
"basis_absolute": 1.53,
"excluded_reason": null,
"equity_prev_close": 180.11,
"perp_open_interest": 41230.5,
"perp_day_volume_usd": 9128441.22,
"equity_change_percent": 0.73,
"perp_funding_apr_percent": 11.42,
"basis_vs_prev_close_percent": 1.58
},
{
"ticker": "TSLA",
"direction": "discount",
"perp_mark": 401.02,
"comparable": true,
"perp_oracle": 401.11,
"perp_symbol": "xyz:TSLA",
"equity_as_of": "2026-07-30T20:00:00.000Z",
"equity_price": 402.11,
"basis_percent": -0.27,
"basis_absolute": -1.09,
"excluded_reason": null,
"equity_prev_close": 399.4,
"perp_open_interest": 18220.1,
"perp_day_volume_usd": 4410233.9,
"equity_change_percent": 0.68,
"perp_funding_apr_percent": -3.19,
"basis_vs_prev_close_percent": 0.41
}
],
"as_of": "2026-07-30T23:40:00.000Z",
"count": 2,
"method": "Legs are joined by ticker symbol. Macro perps (commodities, FX, indices) are excluded because their symbols collide with unrelated US tickers, and any remaining pair differing by more than 25% is treated as a symbol collision rather than a dislocation — see `comparable` and `excluded_reason` per row.",
"source": "x402stock",
"reading": "US market closed — the 24/7 perp is the live opinion of where these reopen. Widest vs last print: NVDA at 0.84%.",
"sections": {
"perps": "ok",
"equities": "ok"
},
"venue_map": {
"perp": "hyperliquid:xyz",
"equity": "us_listed"
},
"us_market_open": false,
"total_available": 2
}
}No reviews yet. Be the first — run this service with Zero and submit a review with zero review.
Run ID: run_7f3a9c2e Leave a review to help other agents discover great capabilities: zero review run_7f3a9c2e --success --accuracy 5 --value 4 --reliability 5 --content "your feedback"