x402 Payments

Let an agent buy US stock data per request, paid in USDC

An agent can buy US stock data from Massive one request at a time, paying in USDC over the x402 protocol. There is no Massive account to create and no API key to manage. All your agent needs is a wallet holding USDC on Base.

Intraday data points are based on Fair Market Value, our proprietary algorithm that generates an indication of a tradable instrument's value in real-time. Coverage is US stocks. Tick level data, streaming, and other asset classes are not available over x402. With a Massive account, the MCP server connects an agent to the rest of the catalog, and WebSocket handles streaming.

What Is x402

x402 is an open payment standard, created by Coinbase in 2025 and since contributed to the x402 Foundation, which operates under the Linux Foundation's governance model with members including AWS, Cloudflare, Google, Stripe, and Visa.

It uses the HTTP 402 Payment Required status code to price a resource in the response itself. A client requests a resource, gets back machine readable payment requirements, signs a payment in USDC, and retries the request with proof of payment. Once the payment is verified, the server returns the data. The whole exchange happens over ordinary HTTP, which is what makes it usable by a program with no human in the loop.

Verification and settlement are handled by a facilitator, a service that checks the signed payment, settles it on chain, and tells the server whether it cleared, so a data provider does not have to run any crypto infrastructure of its own. We use Coinbase Developer Platform's facilitator, and it verifies every x402 payment made to our routes.

Data Available

US stocks, priced per request:

  • Bars and aggregates. OHLCV for one ticker over any range and interval, one day for one ticker, or one day across the whole market.
  • Snapshots. The latest data for one ticker, every ticker, or the day's top gainers and losers.
  • Technical indicators. SMA, EMA, RSI, and MACD, computed for you.
  • Reference data. Ticker search and company detail.
  • News. Recent articles for a ticker, with summaries.
  • SEC filings. The EDGAR index, 10-K sections, 8-K text and classified disclosures, risk factors, 13-F institutional holdings, and Form 3 and Form 4 insider trades.

For the current route list, with each route's parameters and price, see the Massive listing on Agentic.Market. Your agent can also read it directly from the x402 Bazaar, and every route carries its own schema and examples in its 402 response.

Getting Started

You do not need to write any code. Ask your agent to fetch https://agentic.market/SKILL.md and follow the setup instructions. That skill is maintained by Coinbase and Agentic.Market, and it will:

  • Set up an Agentic Wallet, which is a Coinbase wallet built for agents
  • Sign you in with your email and help you add USDC
  • Find the route that answers your question
  • Pay for each request and hand back the data

It works in shell-capable agents like Claude Code, Codex CLI, and Gemini CLI, and in chat hosts like Claude Desktop and ChatGPT through Coinbase's payments MCP. You will not handle a private key or sign a payment yourself.

Once it is set up, ask for what you want:

What were AAPL's daily bars for the first half of August?

Your agent finds the route, pays for the request, and answers.

Pricing and Limits

Current prices are on the Massive listing on Agentic.Market. Each route quotes its own live price in its 402 response, which is authoritative. Only successful requests are charged, a rejected or failed request costs nothing, and each page of a paginated result is charged separately.

Recency differs by route:

  • Aggregates and indicators are end of day. The newest bar is the last completed session.
  • Snapshots cover the current session. Snapshot data clears at 3:30 AM ET and repopulates as exchanges report, which can start as early as 4:00 AM ET.
  • Reference data is current.

Filings return sections and classified extracts rather than whole documents. For tick level data or any asset class beyond US stocks, you need a Massive account and an API key. The MCP server is the quickest way to give an agent access to that, and the REST API is there for direct integration. Streaming is not available through MCP, so use WebSocket for that.

If a route you need is missing, your agent can report it for free at POST https://agent.massive.com/feedback. Those reports decide what we add next.

x402 or an API Key

Most integrations still want an API key. It covers every asset class and includes real time and tick level data. If your agent runs inside an account you control, start with the MCP server, and use WebSocket for streaming.

x402API key
Hostagent.massive.comapi.massive.com
Massive account requiredNoYes
CredentialA wallet with USDC on BaseAn API key
BillingPer request, in USDCSubscription or plan
DataUS stocks (FMV)Every asset class
RecencyEnd of day bars, current session snapshotsIncludes real time trades and quotes
StreamingNoYes, over WebSocket
Did you find this page helpful?
Do you still need help with something?