Compare 2 to 3 US-listed stocks side by side (peer or watchlist comparisons)
Compare 2 to 3 US-listed stocks side by side (peer or watchlist comparisons). Pass a comma-separated list via `?tickers=AAPL,MSFT,NVDA` (1 to 3 symbols). Returns price and day change, market cap, P/E, EPS, revenue, gross and net margins, and dividend yield pe…
by x402stock.xyz · discovered, not yet claimed by its owner · updated 2026-10-09
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
Compare 2 to 3 US-listed stocks side by side (peer or watchlist comparisons). Pass a comma-separated list via `?tickers=AAPL,MSFT,NVDA` (1 to 3 symbols). Returns price and day change, market cap, P/E, EPS, revenue, gross and net margins, and dividend yield per ticker. Built for multiple stocks — for a single stock, `/api/v1/quote/{ticker}` is cheaper. From x402stock
Tags: bazaar
Call contract
- Method
- GET
- Input
- query parameters
- Output
- json
- Last paid call
- 2026-10-09
{
"tickers": "AAPL,MSFT,NVDA"
}{
"as_of": "2026-05-30T07:00:00.000Z",
"count": 2,
"rows": [
{
"available": "ok",
"change_percent": -0.371,
"dividend_yield_percent": 0.35,
"eps": 8.26,
"gross_margin_percent": 47.86,
"market_cap": 4589945623560,
"name": "Apple Inc.",
"net_margin_percent": 27.15,
"pe_ratio": 37.69,
"price": 311.35,
"revenue": 451442000000,
"ticker": "AAPL"
},
{
"available": "ok",
"change_percent": 5.45,
"dividend_yield_percent": 0.66,
"eps": 11.82,
"gross_margin_percent": 69.4,
"market_cap": 3346000000000,
"name": "Microsoft Corporation",
"net_margin_percent": 36.1,
"pe_ratio": 38.1,
"price": 450.24,
"revenue": 270000000000,
"ticker": "MSFT"
}
],
"source": "x402stock",
"tickers": [
"AAPL",
"MSFT"
]
}Use with an agent
- Discover. Agents find this listing with
GET https://bazaar.saylorinnovations.com/discovery/search?query=…, the MCP toolsearch_resources, or/discovery/resources. - Inspect. Fetch
/resources/39957.jsonfor the price and payment options. - Pay. Call
GET https://x402stock.xyz/api/v1/compare. The provider answers402with its payment requirements. An x402 client signs one of the options below and retries withPAYMENT-SIGNATURE. - Execute. The provider returns
200with 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
| Scheme | Network | Asset | Amount | Pay to | Timeout |
|---|---|---|---|---|---|
| exact | Base eip155:8453 | USDC | $0.05 | 0x3070Fbb3803819fB5BdfE9286fdc6325A877fA85 | 300s |
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"
},
"note": {
"type": "string"
},
"rows": {
"items": {
"additionalProperties": false,
"properties": {
"available": {
"type": "string"
},
"change_percent": {
"anyOf": [
{
"type": "number"
},
{
"type": "null"
}
]
},
"dividend_yield_percent": {
"anyOf": [
{
"type": "number"
},
{
"type": "null"
}
]
},
"eps": {
"anyOf": [
{
"type": "number"
},
{
"type": "null"
}
]
},
"gross_margin_percent": {
"anyOf": [
{
"type": "number"
},
{
"type": "null"
}
]
},
"market_cap": {
"anyOf": [
{
"type": "number"
},
{
"type": "null"
}
]
},
"name": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"net_margin_percent": {
"anyOf": [
{
"type": "number"
},
{
"type": "null"
}
]
},
"pe_ratio": {
"anyOf": [
{
"type": "number"
},
{
"type": "null"
}
]
},
"price": {
"anyOf": [
{
"type": "number"
},
{
"type": "null"
}
]
},
"revenue": {
"anyOf": [
{
"type": "number"
},
{
"type": "null"
}
]
},
"ticker": {
"type": "string"
}
},
"required": [
"ticker",
"name",
"price",
"change_percent",
"market_cap",
"pe_ratio",
"eps",
"revenue",
"gross_margin_percent",
"net_margin_percent",
"dividend_yield_percent",
"available"
],
"type": "object"
},
"type": "array"
},
"source": {
"const": "x402stock",
"type": "string"
},
"tickers": {
"items": {
"type": "string"
},
"type": "array"
}
},
"required": [
"source",
"as_of",
"count",
"tickers",
"rows"
],
"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,
"note": "string",
"rows": [
{
"available": "string",
"change_percent": null,
"dividend_yield_percent": null,
"eps": null,
"gross_margin_percent": null,
"market_cap": null,
"name": null,
"net_margin_percent": null,
"pe_ratio": null,
"price": null,
"revenue": null,
"ticker": "string"
}
],
"source": "string",
"tickers": [
"string"
]
},
"type": "string"
}Examples
curl -X GET 'https://x402stock.xyz/api/v1/compare'
# -> 402 Payment Required; read PAYMENT-REQUIRED
# retry the identical request with PAYMENT-SIGNATUREconst res = await fetch("https://x402stock.xyz/api/v1/compare", {
"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
}import httpx
res = httpx.request("GET", "https://x402stock.xyz/api/v1/compare")
if res.status_code == 402:
accepts = res.json()["accepts"]
# pay one of accepts[] via an x402 client, then retry with the payment headerDetails
- Provider
- x402stock.xyz
- Endpoint
- https://x402stock.xyz/api/v1/compare
- Machine-readable
/resources/39957.json