83trust / 100

Stock Quote

by Stock quote in Markets & finance

x402 APIPassing, checked 3 h ago

End-of-day US equity quote from a licensed feed: last close, day range, previous close and the change between them, consolidated across three venues. Use it when an agent needs a current price for a US stock without an exchange account; indices, FX and crypto are not covered here.

GET https://agent402.tools/api/stock-quote

Last 30 days

All checks passedSome failedAll failedNot checked
Uptime
100%
Response time
194 ms typical, 194 ms slowest 5%
Last check
3 h ago
Next check
any minute now

How to call it

# See the payment challenge (nothing is charged)
curl -i -X GET "https://agent402.tools/api/stock-quote?symbol=AAPL"
import { wrapFetchWithPayment } from "@x402/fetch";
import { x402Client } from "@x402/core/client";
import { ExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";

const client = new x402Client().register(
  "eip155:8453",
  new ExactEvmScheme(privateKeyToAccount(process.env.AGENT_KEY)),
);
const pay = wrapFetchWithPayment(fetch, client);

// Not sure it's safe to pay? Preflight it first for $0.005:
// GET https://toolvet.app/api/v1/check?url=https%3A%2F%2Fagent402.tools%2Fapi%2Fstock-quote
const res = await pay("https://agent402.tools/api/stock-quote?symbol=AAPL");
console.log(await res.json());

Example input

{
  "symbol": "AAPL"
}

Example output

{
  "asOf": "2026-09-18",
  "cached": true,
  "changeAbs": -1.29,
  "changePct": -0.383,
  "currency": "USD",
  "dayHigh": 338.41,
  "dayLow": 332.545,
  "fetchedAt": "2026-09-19T13:05:12.000Z",
  "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.",
  "previousClose": 336.79,
  "price": 335.5,
  "rangeCheckedAt": "2026-09-19T13:00:03.000Z",
  "source": "databento.com DBEQ.BASIC",
  "symbol": "AAPL",
  "venueVolume": 1630155,
  "venues": "NYSE Texas (formerly NYSE Chicago), NYSE National, IEX"
}

Security scan

  • No findings. We scan names, descriptions and tool definitions for hidden instructions and other prompt-injection patterns.

Recent checks

WhenResultHTTPTimePrice
3 h agoPassed402502 ms$0.001
8 h agoPassed402194 ms$0.001