83trust / 100
Crypto Chart
by ApiToll Price History in Onchain & crypto
x402 APIPassing, checked 4 h ago
Historical token price time series by ticker symbol, CoinGecko id, or chain:address (BTC, ETH, SOL, or base:0x…): a dated array of prices for up to 20 coins, with selectable span (number of points) and period (1d, 1h, 1w). For charting, backtesting, and trend analysis. Pairs with /v1/crypto/price for the live spot. Sourced from DefiLlama.
GET https://crypto.apitoll.cloud/v1/crypto/chart
Last 30 days
All checks passedSome failedAll failedNot checked
- Uptime
- 100%
- Response time
- 159 ms typical, 159 ms slowest 5%
- Last check
- 4 h ago
- Next check
- any minute now
How to call it
# See the payment challenge (nothing is charged)
curl -i -X GET "https://crypto.apitoll.cloud/v1/crypto/chart?coins=BTC%2CETH&period=1d&span=30"import { wrapFetchWithPayment } from "@x402/fetch";
import { x402Client } from "@x402/core/client";
import { ExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";
const client = new x402Client().register(
"eip155:8453",
new ExactEvmScheme(privateKeyToAccount(process.env.AGENT_KEY)),
);
const pay = wrapFetchWithPayment(fetch, client);
// Not sure it's safe to pay? Preflight it first for $0.03:
// GET https://toolvet.app/api/v1/check?url=https%3A%2F%2Fcrypto.apitoll.cloud%2Fv1%2Fcrypto%2Fchart
const res = await pay("https://crypto.apitoll.cloud/v1/crypto/chart?coins=BTC%2CETH&period=1d&span=30");
console.log(await res.json());Example input
{
"coins": "BTC,ETH",
"period": "1d",
"span": 30
}Example output
{
"count": 2,
"period": "1d",
"requested": 2,
"series": [
{
"confidence": 0.99,
"key": "coingecko:bitcoin",
"points": [
{
"price": 65000,
"timestamp": 1781000000
}
],
"query": "BTC",
"resolved": true,
"symbol": "BTC"
}
],
"source": {
"name": "DefiLlama"
},
"span": 30,
"unresolved": []
}Security scan
- No findings. We scan names, descriptions and tool definitions for hidden instructions and other prompt-injection patterns.
Recent checks
| When | Result | HTTP | Time | Price |
|---|---|---|---|---|
| 4 h ago | Passed | 402 | 159 ms | $0.001 |