Skip to content

Tokenized asset markets

$0.006 per callUSDC via x402GET /api/rwa-markets

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...

Category: Crypto & onchain dataTags: crypto rwa tokenized stocks etf commodities market-data price

Try in playground →

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

NameTypeRequiredDescription
currencystringnovs currency (default usd). Up to 8 characters.
typestringnostock | etf | commodity (default: all). The example sends stock.
idsstringnoComma-separated asset ids to fetch instead of a ranked page (max 50), e.g. gold,nvidia.
orderstringnomarket_cap_desc (default) | market_cap_asc | volume_desc | volume_asc. The example sends market_cap_desc.
perPageintegernoRows per page (1-100, default 25). The example sends 10.
pageintegernoPage 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

RequestGET /api/rwa-markets
402$0.006 USDC
SignPAYMENT-SIGNATURE
Settleon 14 chains
Answer200 OK
ReceiptAgent402-ReceiptEd25519

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",
      "tracking": null
    }
  ],
  "credit": "Powered by CoinGecko (https://www.coingecko.com/en/api)."
}
FieldTypeAlways presentIn the example
sourcestringyescoingecko
fetchedAtstringyes2026-09-02T18:50:00.000Z
cachedbooleanyesfalse
currencystringyesusd
typestringyesstock
orderstringyesmarket_cap_desc
pagenumberyes1
perPagenumberyes10
countnumberyes1
marketsarray of objectsyes1 item in the example
creditstringyesPowered 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

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

Related tools