Tokenized asset markets
GET /api/rwa-marketsLive market rows for tokenized real-world assets (stocks, ETFs and commodities such as gold), ranked by market cap or volume a page at a time: price, market cap, 24h volume...
Details
Live market rows for tokenized real-world assets (stocks, ETFs and commodities such as gold), ranked by market cap or volume a page at a time: price, market cap, 24h volume, 24h high and low and change, in your currency. Filter by type or pass ids. Figures are the onchain wrappers' markets (what is tokenized and trading), not the underlying's exchange listing. Each row carries tracking against its reference asset: a tokenized commodity (gold, silver) against the troy-ounce spot rate, with referencePrice, premiumBps (positive = above the reference) and referenceStatus (read, or why referencePrice is null: rate_table_unreadable, rate_not_listed); a stock or ETF has tracking: null, since no price for the listed share is read here. Cached in-process for 60 seconds. Powered by CoinGecko (https://www.coingecko.com/en/api).
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
currency | string | no | vs currency (default usd). Up to 8 characters. |
type | string | no | stock | etf | commodity (default: all). The example sends stock. |
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. The example sends market_cap_desc. |
perPage | integer | no | Rows per page (1-100, default 25). The example sends 10. |
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"
Watch a call get paid
GET /api/rwa-markets$0.006 USDCPAYMENT-SIGNATUREon 14 chains200 OKAgent402-ReceiptEd25519Example 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",
"tracking": null
}
],
"credit": "Powered by CoinGecko (https://www.coingecko.com/en/api)."
}| 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 |
credit | string | yes | Powered by CoinGecko (https://www.coingecko.com/en/api). |
From an MCP client
catalog.call {
"slug": "rwa-markets",
"params": {
"type": "stock",
"order": "market_cap_desc",
"perPage": 10
}
}Hosted connector (https://agent402.tools/mcp): paid in the call. Stdio package (npx -y agent402-mcp@0.18.0): pays from a wallet or AGENT402_CREDITS_KEY.
Errors and behavior
- Pay $0.006 per call over x402 or MPP. Wallet-only: this tool reaches the network or stored state, so it has no proof-of-work tier. A prepaid card-credits key (
Authorization: Bearer a402_...) also pays it. - Every field is optional; a rejected input answers 4xx with
error,tool,expected,requiredandexample. - On this route, a call ending in any status of 400 or above is not charged over x402, MPP or a credits key. A Tempo push credential pays before the call; a failure is a refund owed.
- A
POSTwith a JSON body is served as this GET. - An
Idempotency-Keyreplays the first 200 uncharged (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.006" }); // refuse any quote above this tool's price
registerExactEvmScheme(client, { signer: privateKeyToAccount(process.env.AGENT_KEY) });
const payFetch = wrapFetchWithPayment(fetch, client);
const res = await payFetch("https://agent402.tools/api/rwa-markets?type=stock&order=market_cap_desc&perPage=10");Get a wallet or run npx -y agent402-mcp@0.18.0 wallet new.
The quote (Python)
import base64, json, urllib.error, urllib.request
req = urllib.request.Request("https://agent402.tools/api/rwa-markets?type=stock&order=market_cap_desc&perPage=10", method="GET", headers={})
try:
urllib.request.urlopen(req)
except urllib.error.HTTPError as e:
quote = json.loads(base64.b64decode(e.headers["PAYMENT-REQUIRED"]))
print(e.code, [(a["network"], a["amount"]) for a in quote["accepts"]]) # the price, per chain, in base units