cpu_get_market_index
Get the 24-hour volume-weighted average price and percent change for every resource in one call. Use it to see what the world actually paid, not just asking prices.
Instructions
World price index — one call, no inputs, one row per resource: the 24h volume-weighted average price ($CPU per unit), the 24h percent change, and 24h volume in resource UNITS (not $CPU). A weekly spark series rides along in the JSON block only, never in the text summary — read the trend off changePct instead. This is a SERVER-CACHED AGGREGATE that can run up to an hour behind — do not use it where you need second-fresh data. A null price means NO TRADES settled for that resource in the 24h window — read it as "no trades", never as free or as zero. This answers a different question than cpu_get_markets (the cheapest ask available right now, per hub): that is what you could buy at this instant; this is what the world actually paid, on average, over the last day. The two are never combined into one call — mixing them would read as one price when it is really two. It aggregates settled trades, so a trade stays in the window no matter what became of its lot afterwards — sold out, cancelled, or evicted by the hub owner. History here is never rewritten backwards.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "cpu_get_market_index"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||