# x402stock Basis Data

> x402stock Basis Data is a paid API for AI agents from agents.x402stock.xyz, paid per call via x402 or MPP, $0.05/call, status unknown (last checked 2026-10-02).

Returns basis (spot-futures spread) data for financial instruments via pay-per-request USDC micropayment

## Facts

- Endpoint: GET https://agents.x402stock.xyz/api/v1/basis?utm_source=zero.xyz
- Price: $0.05/call
- Payment: x402, MPP
- Status: unknown
- Last checked: 2026-10-02
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/x402stock-basis-data-dcd24fd4
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_2OYt34A2O4pzupwLyC2wI

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability x402stock-basis-data-dcd24fd4
```

Example prompt: What's the current basis — the spot-futures spread — for Bitcoin right now? I want to see if there's a cash-and-carry opportunity.

## When to prefer this

Choose this endpoint when you need basis (spot-futures spread) data for arbitrage analysis, carry trade evaluation, or monitoring contango/backwardation across crypto, commodities, or other markets. Prefer over generic price endpoints when the relationship between spot and futures is the key quantity. Requires no API key — just pay $0.05 USDC per call via x402.

## Known failure modes

- Invalid or unsupported instrument symbol returns 400 or empty result
- Payment not received or insufficient USDC balance causes 402 Payment Required
- Rate limiting or upstream data unavailability returns 503
- Malformed properties parameter causes schema validation error

## How this service works

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

## Output

Returns basis data representing the spread between spot and futures (or perpetual) prices for the requested instrument, including spot price, futures/perp price, computed basis value, and timestamp. Enables analysis of contango, backwardation, and cash-and-carry opportunities.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "properties": {
   "type": "string"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "source",
  "as_of",
  "venue_map",
  "us_market_open",
  "reading",
  "method",
  "count",
  "rows",
  "sections",
  "note",
  "total_available"
 ],
 "properties": {
  "note": {
   "anyOf": [
    {
     "type": "string"
    },
    {
     "type": "null"
    }
   ]
  },
  "rows": {
   "type": "array",
   "items": {
    "type": "object",
    "required": [
     "ticker",
     "equity_price",
     "equity_prev_close",
     "equity_change_percent",
     "equity_as_of",
     "perp_symbol",
     "perp_mark",
     "perp_oracle",
     "perp_funding_apr_percent",
     "perp_open_interest",
     "perp_day_volume_usd",
     "basis_percent",
     "basis_absolute",
     "basis_vs_prev_close_percent",
     "direction",
     "comparable",
     "excluded_reason"
    ],
    "properties": {
     "ticker": {
      "type": "string"
     },
     "direction": {
      "enum": [
       "premium",
       "discount",
       "flat",
       "unknown"
      ],
      "type": "string"
     },
     "perp_mark": {
      "anyOf": [
       {
        "type": "number"
       },
       {
        "type": "null"
       }
      ]
     },
     "comparable": {
      "type": "boolean"
     },
     "perp_oracle": {
      "anyOf": [
       {
        "type": "number"
       },
       {
        "type": "null"
       }
      ]
     },
     "perp_symbol": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ]
     },
     "equity_as_of": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ]
     },
     "equity_price": {
      "anyOf": [
       {
        "type": "number"
       },
       {
        "type": "null"
       }
      ]
     },
     "basis_percent": {
      "anyOf": [
       {
        "type": "number"
       },
       {
        "type": "null"
       }
      ]
     },
     "basis_absolute": {
      "anyOf": [
       {
        "type": "number"
       },
       {
        "type": "null"
       }
      ]
     },
     "excluded_reason": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ]
     },
     "equity_prev_close": {
      "anyOf": [
       {
        "type": "number"
       },
       {
        "type": "null"
       }
      ]
     },
     "perp_open_interest": {
      "anyOf": [
       {
        "type": "number"
       },
       {
        "type": "null"
       }
      ]
     },
     "perp_
… (truncated)
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/x402stock-basis-data-dcd24fd4/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agents.x402stock.xyz](https://www.zero.xyz/host/agents.x402stock.xyz/llms.txt)
