Stock quote
GET /api/stock-quoteEnd-of-day US equity quote: last close, day range, consolidated volume, 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 14 more.
US equities only; indices, FX and crypto are not covered (crypto-price serves those). Built from the official consolidated end-of-day summary across all US exchanges and ATSs, so price, range and volume are market totals. If that dataset is unavailable for a read, the answer comes from a consolidation of three U.S. exchange venues instead and says so: coverage reads three-venue, venueVolume counts those venues only and volume is null. No 52-week range and no intraday print: for a date range call stock-history. Each answer names its dataset and coverage, and says whether its bars came from this session's cache (cached, fetchedAt).
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
symbol | string | yes | US 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": 341.27,
"previousClose": 340.97,
"changeAbs": 0.3,
"changePct": 0.088,
"dayHigh": 348.1499,
"dayLow": 340.74,
"volume": 38983839,
"venueVolume": 38983839,
"asOf": "2026-10-13",
"dataset": "EQUS.SUMMARY",
"coverage": "consolidated",
"venues": "All US exchanges and ATSs (consolidated end-of-day summary)",
"source": "databento.com EQUS.SUMMARY",
"note": "End-of-day close, not a live intraday quote, and no 52-week range (use stock-history for a range). Official consolidated end-of-day bars across all US exchanges and ATSs; volume is the consolidated total and includes post-market trading. Prices are unadjusted for splits and dividends.",
"cached": true,
"fetchedAt": "2026-10-14T13:05:12.000Z",
"rangeCheckedAt": "2026-10-14T13:00:03.000Z"
}
| Field | Type | Always present | In the example |
|---|---|---|---|
symbol | string | yes | AAPL |
currency | string | yes | USD |
price | number | yes | 341.27 |
previousClose | number | yes | 340.97 |
changeAbs | number | yes | 0.3 |
changePct | number | yes | 0.088 |
dayHigh | number | yes | 348.1499 |
dayLow | number | yes | 340.74 |
volume | number | yes | 38983839 |
venueVolume | number | yes | 38983839 |
asOf | string | yes | 2026-10-13 |
dataset | string | yes | EQUS.SUMMARY |
coverage | string | yes | consolidated |
venues | string | yes | All US exchanges and ATSs (consolidated end-of-day summary) |
source | string | yes | databento.com EQUS.SUMMARY |
note | string | yes | End-of-day close, not a live intraday quote, and no 52-week range (use stock-... |
cached | boolean | yes | true |
fetchedAt | string | yes | 2026-10-14T13:05:12.000Z |
rangeCheckedAt | string | yes | 2026-10-14T13:00:03.000Z |
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 an AGENT402_CREDITS_KEY issued earlier. Local install: npx -y agent402-mcp.
Errors and behavior
symbolis required. An input the tool rejects returns an HTTP 4xx whose body carrieserror,tool,expected,requiredandexample, so the caller can correct it.- A paid call that ends in any status of 400 or above is not charged over x402, MPP or a prepaid credits key: settlement is canceled when the tool fails. The exception is a Tempo push credential, a transfer the buyer sent before the call: it settles before the tool runs, so if the tool then fails the payment is recorded as a refund owed to the paying wallet.
- Wallet-only: this tool reaches the network or stored state, so it has no proof-of-work tier. A prepaid card-credits key issued earlier (
Authorization: Bearer a402_...) also pays it. - A
POSTwith a JSON body to /api/stock-quote is served as this GET, with the body as the input. - An
Idempotency-Keyheader makes a retried paid call replay the first 200 instead of charging again (an answer larger than 1 MB is not replayed).
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?.({ maxAmountPerPayment: "$0.001" }); // refuse any quote above this tool's price
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:
- Earnings deep-dive - Everything you need before a company reports: the latest financials, recent SEC filings, the latest close, and fresh analyst news - in one pass.
- Options analytics - Price a European option on a live stock: pull the current quote, estimate volatility from recent history, run Black-Scholes for fair value + the full greeks, and check the news for catalysts.
- Financial analysis - Quick company snapshot: latest close, 9 key financial metrics (revenue through cash flow), and upcoming earnings - one call, one payment.
- Financial research - Pull SEC filings, the latest close, historical prices, and macro context for a single ticker in one pass.
- Cross-asset price monitor - Side-by-side snapshot of a stock and a crypto asset: the equity's latest close against a live crypto quote, a trailing-year series for each, and a date-stamped comparison.
- Company dossier - Comprehensive company research report in one call: latest close, financials, SEC filings, insider trades, and recent news - all in parallel.
- Earnings watch - Has this company just reported, and what is being said about it? Recent SEC filings, the latest close, and current coverage in one call.
- Insider alert - Insider buying/selling activity for a stock: Form 4 trades, the latest close, and recent SEC filings in one call.
Related tools
Bond price
POST /api/bond-pricePrice a fixed-coupon bond from its yield to maturity: present-value the coupons plus face.
Crypto price
GET /api/crypto-priceLive crypto prices for one or many coins in any vs_currency (usd, eur, btc, eth, etc).
Stock historical bars
GET /api/stock-historyDaily OHLCV bars for a US equity: the last `days` sessions, 1 to 250, default 30.
Tokenized asset markets
GET /api/rwa-marketsMarket data for tokenized real-world assets - tokenized stocks (Nvidia, Tesla, pre-IPO names), ETFs and commodities like.
Amortization schedule
POST /api/amortizationBuild the full per-period amortization schedule for a fully-amortizing loan.
Annuity present/future value
POST /api/annuityPresent and future value of a level annuity (equal periodic payments).