Stock quote

$0.001 per call · USDC via x402 · GET /api/stock-quote

End-of-day US equity quote: last close, day range, previous close and the change between them. Send GET /api/stock-quote with the required field symbol and pay $0.001 per call over x402 or MPP (there is no free tier). It returns a JSON object with symbol, currency, price, previousClose, changeAbs and 8 more.

US equities only; indices, FX and crypto are not covered (crypto-price serves those). Built from a three-venue consolidation (Databento DBEQ.BASIC), so the prices track the wider market but the volume counts those three venues only and is returned as venueVolume rather than as a total. No 52-week range and no intraday print: for a date range call stock-history.

Category: Live public data · Tags: finance stocks quote market-data price

TRY IN PLAYGROUND →

Parameters

NameTypeRequiredDescription
symbolstringyesUS equity ticker, e.g. AAPL. Indices, FX and crypto are not covered. Also accepted as ticker, coin, asset.

Example request

curl -i "https://agent402.tools/api/stock-quote?symbol=AAPL"

Without payment this returns HTTP 402 Payment Required with the exact price for stock-quote; any x402 v2 or MPP client pays it and retries.

Example response

{
  "symbol": "AAPL",
  "currency": "USD",
  "price": 335.5,
  "previousClose": 336.79,
  "changeAbs": -1.29,
  "changePct": -0.383,
  "dayHigh": 338.41,
  "dayLow": 332.545,
  "venueVolume": 1630155,
  "asOf": "2026-09-18",
  "venues": "NYSE Texas (formerly NYSE Chicago), NYSE National, IEX",
  "source": "databento.com DBEQ.BASIC",
  "note": "End-of-day close from a three-venue consolidation. Not a live intraday quote, not consolidated-tape volume, and no 52-week range - use stock-history for a range."
}
FieldTypeAlways presentIn the example
symbolstringyesAAPL
currencystringyesUSD
pricenumberyes335.5
previousClosenumberyes336.79
changeAbsnumberyes-1.29
changePctnumberyes-0.383
dayHighnumberyes338.41
dayLownumberyes332.545
venueVolumenumberyes1630155
asOfstringyes2026-09-18
venuesstringyesNYSE Texas (formerly NYSE Chicago), NYSE National, IEX
sourcestringyesdatabento.com DBEQ.BASIC
notestringyesEnd-of-day close from a three-venue consolidation. Not a live intraday quote,...

From an MCP client

catalog.call {
  "slug": "stock-quote",
  "params": {
    "symbol": "AAPL"
  }
}

The hosted connector at https://agent402.tools/mcp needs a payment for stock-quote; the stdio package pays it from a wallet or from AGENT402_CREDITS_KEY. Local install: npx -y agent402-mcp.

Errors and behavior

Paid call (JavaScript agent)

import { wrapFetchWithPayment } from "@x402/fetch";
import { x402Client } from "@x402/core/client";
import { registerExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";

const client = new x402Client();
client.setSpendControls?.(false); // keep your own spending ceiling in code
registerExactEvmScheme(client, { signer: privateKeyToAccount(KEY) });
const payFetch = wrapFetchWithPayment(fetch, client);

const res = await payFetch("https://agent402.tools/api/stock-quote?symbol=AAPL");

Part of these workflows

Stock quote is one step in these 8 skill packs, each sold as a single call:

Related tools

Bond price

FREE w/ compute · or $0.001 · POST /api/bond-price

Price a fixed-coupon bond from its yield to maturity: present-value the coupons plus face. Returns clean price, coupon p…

Crypto price

$0.001 · GET /api/crypto-price

Live crypto prices for one or many coins in any vs_currency (usd, eur, btc, eth, etc). Returns last price, 24h change %,…

Stock historical bars

$0.005 · GET /api/stock-history

Daily OHLCV bars for a US equity: the last `days` sessions, 1 to 250, default 30. Daily only, no intraday. Built from a …

Tokenized asset markets

$0.006 · GET /api/rwa-markets

Market data for tokenized real-world assets - tokenized stocks (Nvidia, Tesla, pre-IPO names), ETFs and commodities like…

Amortization schedule

FREE w/ compute · or $0.001 · POST /api/amortization

Build the full per-period amortization schedule for a fully-amortizing loan. Each row reports the period number, payment…

Annuity present/future value

FREE w/ compute · or $0.001 · POST /api/annuity

Present and future value of a level annuity (equal periodic payments). Supports an ordinary annuity (payments at period …