M
$0.1
per call · USD Coin on Base
Get multi-window ROI snapshots for one or more cryptocurrency assets.
Endpoint
GET https://api.messari.io/metrics/v2/assets/roi1
Calls / 30d
1
Unique payers / 30d
Sep 9
Last called
exact
Payment scheme
Call this service
TypeScript · @x402/fetch
import { wrapFetchWithPayment } from "@x402/fetch";
import { privateKeyToAccount } from "viem/accounts";
const account = privateKeyToAccount(process.env.PRIVATE_KEY);
const fetchWithPay = wrapFetchWithPayment(fetch, account);
const res = await fetchWithPay("https://api.messari.io/metrics/v2/assets/roi", {
method: "GET",
});
const data = await res.json();cURL
curl -X GET \
"https://api.messari.io/metrics/v2/assets/roi?category=smart-contract-platform&ids=bitcoin%2Cethereum&limit=50&search=bitcoin§or=layer-1&slugs=bitcoin%2Cethereum&tags=store-of-value" \
-H "X-PAYMENT: <signed x402 payment>"Example response
{
"data": [
{
"id": "btc",
"roi_30d": 0
}
]
}Payment details
Pay to
0x75ddd3c42eace13c59ea0cd1141b886a1c70d2a5Asset
USD Coin · 0x833589fcd6edb6e08f4c7c32d4f71b54bda02913NetworksBase, Solana, X Layer
Schemesexact
Is this your API?
Pin it to the top of Other and the homepage with a featured placement.
More from Messari & similar services
M
Messari · Token Unlocks Allocations
api.messari.io
Get token allocation breakdowns by category and vesting bucket.
GETBaseOnchain Data
$0.25 / call26 calls / 30d
M
Messari · Assets Mindshare Losers 24H
api.messari.io
Get top crypto asset mindshare losers over the last 24 hours.
GETBaseOther
$0.35 / call17 calls / 30d
M
Messari · Assets Mindshare Gainers 24H
api.messari.io
Get top crypto asset mindshare gainers over the last 24 hours.
GETBaseOther
$0.35 / call17 calls / 30d