X4
Market Data · x402 · early usage

Scans every US stock that also trades as a 24/7 synthetic perp and returns the gap: off…

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 mo…

by x402stock.xyz · discovered, not yet claimed by its owner · updated 2026-10-09

30d calls3
30d payers2
MethodGET
Outputjson

Mirrored from Coinbase's public x402 Bazaar. The description is the provider's own text and has not been reviewed here; the payment requirements are copied as published.

What it does

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

Tags: bazaar

Call contract

Method
GET
Input
query parameters
Output
json
Last paid call
2026-10-09
Input example from Bazaar metadata
{
  "limit": 40,
  "min_basis": 0
}
Output example
{
  "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.",
  "note": null,
  "reading": "US market closed — the 24/7 perp is the live opinion of where these reopen. Widest vs last print: NVDA at 0.84%.",
  "rows": [
    {
      "basis_absolute": 1.53,
      "basis_percent": 0.84,
      "basis_vs_prev_close_percent": 1.58,
      "comparable": true,
      "direction": "premium",
      "equity_as_of": "2026-07-30T20:00:00.000Z",
      "equity_change_percent": 0.73,
      "equity_prev_close": 180.11,
      "equity_price": 181.42,
      "excluded_reason": null,
      "perp_day_volume_usd": 9128441.22,
      "perp_funding_apr_percent": 11.42,
      "perp_mark": 182.95,
      "perp_open_interest": 41230.5,
      "perp_oracle": 182.88,
      "perp_symbol": "xyz:NVDA",
      "ticker": "NVDA"
    },
    {
      "basis_absolute": -1.09,
      "basis_percent": -0.27,
      "basis_vs_prev_close_percent": 0.41,
      "comparable": true,
      "direction": "discount",
      "equity_as_of": "2026-07-30T20:00:00.000Z",
      "equity_change_percent": 0.68,
      "equity_prev_close": 399.4,
      "equity_price": 402.11,
      "excluded_reason": null,
      "perp_day_volume_usd": 4410233.9,
      "perp_funding_apr_percent": -3.19,
      "perp_mark": 401.02,
      "perp_open_interest": 18220.1,
      "perp_oracle": 401.11,
      "perp_symbol": "xyz:TSLA",
      "ticker": "TSLA"
    }
  ],
  "sections": {
    "equities": "ok",
    "perps": "ok"
  },
  "source": "x402stock",
  "total_available": 2,
  "us_market_open": false,
  "venue_map": {
    "equity": "us_listed",
    "perp": "hyperliquid:xyz"
  }
}

Use with an agent

  1. Discover. Agents find this listing with GET https://bazaar.saylorinnovations.com/discovery/search?query=…, the MCP tool search_resources, or /discovery/resources.
  2. Inspect. Fetch /resources/39956.json for the price and payment options.
  3. Pay. Call GET https://x402stock.xyz/api/v1/basis. The provider answers 402 with its payment requirements. An x402 client signs one of the options below and retries with PAYMENT-SIGNATURE.
  4. Execute. The provider returns 200 with the data. Agent Bazaar is not in the request path and never sees your payment.

For humans

You don't need an account or an API key; you need a wallet holding a small amount of USDC on Base, and an x402-capable client (see the examples below). Call the endpoint unpaid first to see exactly what it asks for.

Pricing & payment

Price
$0.05 / request
Protocol
x402 v2
Auth
No account or API key. Pay per request.
Networks
Base
Demand
3 calls · 2 unique payers in 30d (public x402 Bazaar data)

x402 payment requirements

SchemeNetworkAssetAmountPay toTimeout
exactBase
eip155:8453
USDC$0.050x3070Fbb3803819fB5BdfE9286fdc6325A877fA85300s
accepts[] (raw JSON)
[
  {
    "scheme": "exact",
    "network": "eip155:8453",
    "payTo": "0x3070Fbb3803819fB5BdfE9286fdc6325A877fA85",
    "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
    "amount": "50000",
    "amountUsd": 0.05,
    "maxTimeoutSeconds": 300
  }
]

Schemas

Output schema (JSON Schema)
{
  "properties": {
    "example": {
      "$schema": "https://json-schema.org/draft/2020-12/schema",
      "additionalProperties": false,
      "properties": {
        "as_of": {
          "type": "string"
        },
        "count": {
          "type": "number"
        },
        "method": {
          "type": "string"
        },
        "note": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "reading": {
          "type": "string"
        },
        "rows": {
          "items": {
            "additionalProperties": false,
            "properties": {
              "basis_absolute": {
                "anyOf": [
                  {
                    "type": "number"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "basis_percent": {
                "anyOf": [
                  {
                    "type": "number"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "basis_vs_prev_close_percent": {
                "anyOf": [
                  {
                    "type": "number"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "comparable": {
                "type": "boolean"
              },
              "direction": {
                "enum": [
                  "premium",
                  "discount",
                  "flat",
                  "unknown"
                ],
                "type": "string"
              },
              "equity_as_of": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "equity_change_percent": {
                "anyOf": [
                  {
                    "type": "number"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "equity_prev_close": {
                "anyOf": [
                  {
                    "type": "number"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "equity_price": {
                "anyOf": [
                  {
                    "type": "number"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "excluded_reason": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "perp_day_volume_usd": {
                "anyOf": [
                  {
                    "type": "number"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "perp_funding_apr_percent": {
                "anyOf": [
                  {
                    "type": "number"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "perp_mark": {
                "anyOf": [
                  {
                    "type": "number"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "perp_open_interest": {
                "anyOf": [
                  {
                    "type": "number"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "perp_oracle": {
                "anyOf": [
                  {
                    "type": "number"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "perp_symbol": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "ticker": {
                "type": "string"
              }
            },
            "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"
            ],
            "type": "object"
          },
          "type": "array"
        },
        "sections": {
          "additionalProperties": {
            "enum": [
              "ok",
              "unavailable"
            ],
            "type": "string"
          },
          "propertyNames": {
            "type": "string"
          },
          "type": "object"
        },
        "source": {
          "const": "x402stock",
          "type": "string"
        },
        "total_available": {
          "type": "number"
        },
        "us_market_open": {
          "type": "boolean"
        },
        "venue_map": {
          "additionalProperties": false,
          "properties": {
            "equity": {
              "type": "string"
            },
            "perp": {
              "type": "string"
            }
          },
          "required": [
            "equity",
            "perp"
          ],
          "type": "object"
        }
      },
      "required": [
        "source",
        "as_of",
        "venue_map",
        "us_market_open",
        "reading",
        "method",
        "count",
        "rows",
        "sections",
        "note",
        "total_available"
      ],
      "type": "object"
    },
    "type": {
      "type": "string"
    }
  },
  "required": [
    "type"
  ],
  "type": "object"
}
Example shape — generated from the schema, not a captured live response
{
  "example": {
    "as_of": "string",
    "count": 0,
    "method": "string",
    "note": null,
    "reading": "string",
    "rows": [
      {
        "basis_absolute": null,
        "basis_percent": null,
        "basis_vs_prev_close_percent": null,
        "comparable": true,
        "direction": "premium",
        "equity_as_of": null,
        "equity_change_percent": null,
        "equity_prev_close": null,
        "equity_price": null,
        "excluded_reason": null,
        "perp_day_volume_usd": null,
        "perp_funding_apr_percent": null,
        "perp_mark": null,
        "perp_open_interest": null,
        "perp_oracle": null,
        "perp_symbol": null,
        "ticker": "string"
      }
    ],
    "sections": {},
    "source": "string",
    "total_available": 0,
    "us_market_open": true,
    "venue_map": {
      "equity": "string",
      "perp": "string"
    }
  },
  "type": "string"
}

Examples

curl
curl -X GET 'https://x402stock.xyz/api/v1/basis'
# -> 402 Payment Required; read PAYMENT-REQUIRED
# retry the identical request with PAYMENT-SIGNATURE
JavaScript
const res = await fetch("https://x402stock.xyz/api/v1/basis", {
  "method": "GET"
});
if (res.status === 402) {
  const { accepts } = await res.json();
  // pay one of accepts[] via an x402 client, then retry with the payment header
}
Python
import httpx
res = httpx.request("GET", "https://x402stock.xyz/api/v1/basis")
if res.status_code == 402:
    accepts = res.json()["accepts"]
    # pay one of accepts[] via an x402 client, then retry with the payment header

Details

Provider
x402stock.xyz
Endpoint
https://x402stock.xyz/api/v1/basis
Machine-readable
/resources/39956.json