82trust / 100
Candles
by Ozmium Agent API in Onchain & crypto
x402 APIPassing, checked 3 h ago
OHLC history with window extremes (highest high / lowest low over the window). Crypto via Coinbase (GET /v1/candles?product=ETH-USD&days=30; hourly bars <= 7d, six-hour <= 31d, daily <= 350d). Metals / indices / forex / stocks via ?sym=XAU&cls=Commodities["e=USD]. Returns { productId, days, high, low, candles, series: [[startSec, open, high, low, close], ...] } oldest first. Full details: GET /v1.
GET https://ozmium.org/v1/candles
Last 30 days
All checks passedSome failedAll failedNot checked
- Uptime
- 100%
- Response time
- 278 ms typical, 988 ms slowest 5%
- Last check
- 3 h ago
- Next check
- any minute now
How to call it
# See the payment challenge (nothing is charged)
curl -i -X GET "https://ozmium.org/v1/candles?days=30&product=ETH-USD"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.005:
// GET https://toolvet.app/api/v1/check?url=https%3A%2F%2Fozmium.org%2Fv1%2Fcandles
const res = await pay("https://ozmium.org/v1/candles?days=30&product=ETH-USD");
console.log(await res.json());Example input
{
"days": "30",
"product": "ETH-USD"
}Example output
{
"data": {
"candles": 120,
"days": 30,
"high": 3720,
"low": 3310,
"productId": "ETH-USD"
},
"network": "eip155:8453"
}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 |
|---|---|---|---|---|
| 3 h ago | Passed | 402 | 278 ms | $0.001 |
| 6 h ago | Passed | 402 | 255 ms | $0.001 |
| 10 h ago | Passed | 402 | 577 ms | $0.001 |
| 13 h ago | Passed | 402 | 190 ms | $0.001 |
| 17 h ago | Passed | 402 | 1.3 s | $0.001 |
| 20 h ago | Passed | 402 | 962 ms | $0.001 |
| 24 h ago | Passed | 402 | 988 ms | $0.001 |
| 27 h ago | Passed | 402 | 715 ms | $0.001 |
| 32 h ago | Passed | 402 | 150 ms | $0.001 |
| 35 h ago | Passed | 402 | 46 ms | $0.001 |
| 38 h ago | Passed | 402 | 184 ms | $0.001 |
| 43 h ago | Passed | 402 | 537 ms | $0.001 |