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[&quote=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

WhenResultHTTPTimePrice
3 h agoPassed402278 ms$0.001
6 h agoPassed402255 ms$0.001
10 h agoPassed402577 ms$0.001
13 h agoPassed402190 ms$0.001
17 h agoPassed4021.3 s$0.001
20 h agoPassed402962 ms$0.001
24 h agoPassed402988 ms$0.001
27 h agoPassed402715 ms$0.001
32 h agoPassed402150 ms$0.001
35 h agoPassed40246 ms$0.001
38 h agoPassed402184 ms$0.001
43 h agoPassed402537 ms$0.001