Tokenized asset markets
GET /api/rwa-marketsMarket data for tokenized real-world assets - tokenized stocks (Nvidia, Tesla, pre-IPO names), ETFs and commodities like gold - ranked by market cap or volume: price, market cap, 24h volume, 24h high/low and change, in your currency. Send GET /api/rwa-markets with no required fields (6 optional) and pay $0.006 per call over x402 or MPP (there is no free tier). It returns a JSON object with source, fetchedAt, cached, currency, type and 5 more.
Filter by type or a list of ids. Note these are the ONCHAIN wrappers' figures (what is tokenized and trading), not the underlying's exchange listing. Cached in-process for 60 seconds.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
currency | string | no | vs currency (default usd). |
type | string | no | stock | etf | commodity (default: all). |
ids | string | no | Comma-separated asset ids to fetch instead of a ranked page (max 50), e.g. gold,nvidia. |
order | string | no | market_cap_desc (default) | market_cap_asc | volume_desc | volume_asc. |
perPage | integer | no | Rows per page (1-100, default 25). |
page | integer | no | Page number (default 1). |
Example request
curl -i "https://agent402.tools/api/rwa-markets?type=stock&order=market_cap_desc&perPage=10"
Without payment this returns HTTP 402 Payment Required with the exact price for rwa-markets; any x402 v2 or MPP client pays it and retries.
Example response
{
"source": "coingecko",
"fetchedAt": "2026-09-02T18:50:00.000Z",
"cached": false,
"currency": "usd",
"type": "stock",
"order": "market_cap_desc",
"page": 1,
"perPage": 10,
"count": 1,
"markets": [
{
"id": "circle-internet-group",
"symbol": "CRCL",
"name": "Circle Internet Group",
"type": "stock",
"image": "https://coin-images.coingecko.com/coins/images/68595/large/crclon_160x160.png",
"currency": "usd",
"price": 89.14,
"marketCap": 274735360,
"volume24h": 32316372,
"high24h": 90.12,
"low24h": 86.22,
"change24h": 0.3088,
"change24hPct": 0.34762,
"marketCapChange24h": 3496406,
"marketCapChange24hPct": 1.28905,
"lastUpdated": "2026-09-02T18:49:30Z"
}
]
}
| Field | Type | Always present | In the example |
|---|---|---|---|
source | string | yes | coingecko |
fetchedAt | string | yes | 2026-09-02T18:50:00.000Z |
cached | boolean | yes | false |
currency | string | yes | usd |
type | string | yes | stock |
order | string | yes | market_cap_desc |
page | number | yes | 1 |
perPage | number | yes | 10 |
count | number | yes | 1 |
markets | array of objects | yes | 1 item in the example |
From an MCP client
catalog.call {
"slug": "rwa-markets",
"params": {
"type": "stock",
"order": "market_cap_desc",
"perPage": 10
}
}
The hosted connector at https://agent402.tools/mcp needs a payment for rwa-markets; the stdio package pays it from a wallet or from AGENT402_CREDITS_KEY. Local install: npx -y agent402-mcp.
Errors and behavior
- Every field is optional. An input the tool rejects returns an HTTP 4xx whose body carries
error,tool,expected,requiredandexample. - 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 cancelled 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/rwa-markets 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?.(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/rwa-markets?type=stock&order=market_cap_desc&perPage=10");
Related tools
Tokenized assets list
GET /api/rwa-listEvery real-world asset with a tokenized onchain version that CoinGecko tracks: stocks, ETFs and commodities, with id, sy…
Tokenized asset
GET /api/rwa-assetOne tokenized real-world asset by id (gold, nvidia, tesla, spy ...): identity, type, image and web slug joined with its …
Tokenized asset issuer
GET /api/rwa-issuerOne issuer of tokenized real-world assets by id: aggregate tokenized market cap, 24h cap change and 24h volume, plus eve…
Token price by contract address
GET /api/coin-price-by-contractLive price, market cap, 24h volume and 24h change for ERC-20 / SPL / other chain tokens looked up by CONTRACT ADDRESS on…
Tokenized asset issuers
GET /api/rwa-issuersThe issuers behind tokenized real-world assets (Coinbase, Backpack Securities, Ondo, xStocks and the rest): id and name,…
Chain info snapshot
GET /api/chain-infoOne-call chain state snapshot: chain id, latest block number, and current gas price (wei + gwei) for Ethereum, Base, Pol…