x420_crypto_ohlc
Crypto OHLC history: Open/high/low/close candles for one CoinGecko id over 1, 7, 14, 30, 90, 180 or 365 days (granularity set by the window), with range summary (change, high, low). Up to 400 candles. Source: CoinGecko. Not professional, legal, insurance, engineering, medical, financial or tax advice. Price: $0.002 USDC per call (x402 on Base). This hosted tool does NOT pay and does NOT return the deliverable: it validates the input and returns payment instructions (pay_to, network, price and the x402 URL to pay at). GET the url; read PAYMENT-REQUIRED from the 402; retry with PAYMENT-SIGNATURE (x402 v2). Or run the local x420-mcp server with your own wallet key to pay automatically. Deliverable once paid: JSON: granularity, range{from, to, open, close, change_pct, high, low}, candles[]{time, open, high, low, close}.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"id": "<id>"
},
"name": "x420_crypto_ohlc"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | CoinGecko id such as bitcoin | |
| days | No | 1, 7, 14, 30, 90, 180 or 365 (default 7) |