x402 Stock Market Data API

Pay-per-call stock market data built for AI agents and day traders. No API keys, no subscriptions, no rate-limit tiers — just USDC on Base, settled automatically per request via the x402 payment protocol.

Base mainnet Real USDC Listed on x402 Bazaar

How it works

1

Call an endpoint

Any client hits a route below with no payment. The server responds 402 Payment Required with the exact price and payment details.

2

Sign a payment

An x402-aware client (or agent) signs a USDC transfer authorization off-chain — gasless, no wallet funding beyond the fee itself.

3

Get your data

The request retries with the signed payment, which is verified and settled on-chain automatically, then the real response comes back.

Endpoints

RoutePriceWhat you get
GET /indicators/{ticker} $0.0025 SMA/EMA(20,50), RSI(14), Stochastic, Bollinger Bands, MACD, ATR, ADX, relative volume, price change, 52-week range — plus a transparent bullish/bearish/neutral signal with per-indicator reasoning, not a black-box verdict.
GET /earnings/{ticker} $0.005 Next earnings date with EPS/revenue estimates, last 4 quarters' actual-vs-estimate surprises, and analyst estimate-revision trend over 7/30/60/90 days.
GET /analyst/{ticker} $0.005 Analyst recommendation trend, consensus price targets, recent upgrades/downgrades by firm, and short interest with month-over-month change.
GET /history/{ticker}
?multiplier=&timespan=&from=&to=
$0.005 Raw OHLCV bars from 1-minute intraday resolution up to monthly, over any date range.
GET /macro-calendar
?from=&to=
$0.01 FOMC meeting dates plus major US economic releases (CPI, non-farm payrolls, GDP, PCE, retail sales), each with a days-until countdown. Not ticker-specific.

Try it

curl -i https://x402-stock-indicators.vercel.app/indicators/AAPL

HTTP/1.1 402 Payment Required
payment-required: eyJ4NDAyVmVyc2lvbiI6Mi...