Crypto Candles
by OnchainCheck Market & World Data in Onchain & crypto
OHLCV candles for any Hyperliquid market (BTC, ETH, SOL, kPEPE, listed equities such as xyz:TSLA), 1m to 1w, up to 500 candles, with indicators computed: SMA 20/50, EMA 12/26, MACD, RSI 14, ATR 14, Bollinger bands, realized volatility, window return, range and volume, plus plain signals (trend, RSI overbought/oversold, MACD cross, band position). Prices are Hyperliquid perp prices. Errors return 4xx/5xx JSON and aren't charged.
https://onchaincheck.dev/crypto/candles- Price
- $0.003
- per call in USDC
- Uptime
- 96.5%
- last 30 days
- Response time
- 110 ms
- 1.0 s slowest 5%
- Last check
- Passed
- 51 min ago, next any minute now
Reliability
Status and outage history · Atom feed · Watch with other listings
How to call it
GET https://onchaincheck.dev/crypto/candles
Each call costs $0.003 in USDC on Base, paid with the request over x402.
Run a free test callOne unpaid request, the way an agent sends it. You see the payment challenge it gets back. Nothing is charged.
Example request
From the listing.
GET https://onchaincheck.dev/crypto/candles?coin=BTC&interval=1h&limit=5Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
coin | string | Yes | Hyperliquid market: BTC, ETH, kPEPE, xyz:TSLA |
interval | string | No | Candle size (default 1h) One of: 1m, 3m, 5m, 15m, 30m, 1h, 2h, 4h, 8h, 12h, 1d, 3d. |
limit | string | No | Candles to return, 2-500 (default 100) |
Example response
The provider's example. We can't check it without paying.
Example response, 99 lines
{
"candles": [
{
"c": 63733,
"h": 63751,
"l": 63311,
"o": 63329,
"t": "2026-11-19T06:00:00.000Z",
"trades": 13731,
"v": 3256.20726
},
{
"c": 63711,
"h": 63872,
"l": 63515,
"o": 63733,
"t": "2026-11-19T07:00:00.000Z",
"trades": 10906,
"v": 2124.15217
},
{
"c": 63704,
"h": 63821,
"l": 63533,
"o": 63711,
"t": "2026-11-19T08:00:00.000Z",
"trades": 7950,
"v": 636.99265
},
{
"c": 63820,
"h": 63912,
"l": 63650,
"o": 63704,
"t": "2026-11-19T09:00:00.000Z",
"trades": 8657,
"v": 781.25064
},
{
"c": 63767,
"h": 63905,
"l": 63753,
"o": 63830,
"t": "2026-11-19T10:00:00.000Z",
"trades": 4036,
"v": 320.33364
}
],
"checkedAt": "2026-11-19T10:34:08.328Z",
"indicators": {
"atr14": 488.6057,
"atrPct": 0.766,
"bollinger": {
"lower": 62154.005,
"middle": 63118.9,
"percentB": 0.836,
"upper": 64083.795
},
"ema12": 63479.72,
"ema26": 63518.542,
"macd": {
"histogram": 157.20804,
"line": -38.82238,
"signal": -196.03042
},
"realizedVolAnnualPct": 10.89,
"rsi14": 53.93,
"sma20": 63118.9,
"sma50": 63875.94
},
"market": {
"candles": 5,
"coin": "BTC",
"lastCandleOpen": "2026-11-19T10:00:00.000Z",
"lastClose": 63767
},
"notes": "Candles are Hyperliquid perp prices (t is the candle's open time, v is volume in the base asset; the last candle may still be open). Indicators are computed on closes, including up to 60 earlier candl… (240 chars, truncated in this example)",
"query": {
"coin": "BTC",
"interval": "1h",
"limit": 5
},
"signals": {
"bollinger": "inside bands",
"macdCross": "above signal",
"rsi": "neutral",
"trend": "mixed"
},
"source": "Hyperliquid public info API (candleSnapshot)",
"window": {
"from": "2026-11-19T06:00:00.000Z",
"fromHighPct": -0.23,
"high": 63912,
"low": 63311,
"returnPct": 0.69,
"volumeBase": 7118.9364,
"volumeUsd": 453724827
}
}Call it from code
The curl command shows the payment challenge. The JavaScript and Python versions pay and call, and never pay more than $0.003.
curl: see the payment challenge
# bash or zsh: see the payment challenge. Nothing is charged.
curl -sS -g -i 'https://onchaincheck.dev/crypto/candles?coin=BTC&interval=1h&limit=5'
# x402 v2 sends the challenge base64-encoded in the PAYMENT-REQUIRED header (v1 sends it in the body).
# To read the header:
curl -sS -g -o /dev/null -D - 'https://onchaincheck.dev/crypto/candles?coin=BTC&interval=1h&limit=5' \
| grep -i '^payment-required:' | cut -d' ' -f2 | tr -d '\r' | base64 --decodeJavaScript: pay and call
// npm i @x402/fetch @x402/evm viem
import { wrapFetchWithPayment, x402Client } from "@x402/fetch";
import { registerExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";
// Pays at most $0.003 per call.
const client = new x402Client().setSpendControls({ maxAmountPerPayment: "$0.003" });
registerExactEvmScheme(client, { signer: privateKeyToAccount(process.env.EVM_PRIVATE_KEY) });
const pay = wrapFetchWithPayment(fetch, client);
// Not sure it's safe to pay? ToolVet checks it first for $0.005. Pay for that from a separate
// client: this one is capped at $0.003 per payment. GET https://toolvet.app/api/v1/check?url=https%3A%2F%2Fonchaincheck.dev%2Fcrypto%2Fcandles
const res = await pay("https://onchaincheck.dev/crypto/candles?coin=BTC&interval=1h&limit=5");
console.log(res.status, await res.text());Python: pay and call
# pip install "x402[requests,evm]"
import os
from eth_account import Account
from x402 import x402ClientSync
from x402.http.clients import x402_requests
from x402.mechanisms.evm import EthAccountSigner
from x402.mechanisms.evm.exact.register import register_exact_evm_client
# Pays at most $0.003 per call.
client = x402ClientSync().set_spend_controls({"max_amount_per_payment": "$0.003"})
register_exact_evm_client(client, EthAccountSigner(Account.from_key(os.environ["EVM_PRIVATE_KEY"])))
with x402_requests(client) as session:
res = session.get("https://onchaincheck.dev/crypto/candles?coin=BTC&interval=1h&limit=5")
print(res.status_code, res.text)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 |
|---|---|---|---|---|
| 51 min ago | Passed | 402 | 84 ms | $0.003 |
| 11 h ago | Passed | 402 | 59 ms | $0.003 |
| 22 h ago | Passed | 402 | 45 ms | $0.003 |
| 35 h ago | Passed | 402 | 83 ms | $0.003 |
| 3 days ago | Timed out | - | - | - |
Show 10 older checks
| 5 days ago | Passed | 402 | 63 ms | $0.003 |
| 5 days ago | Passed | 402 | 101 ms | $0.003 |
| 6 days ago | Passed | 402 | 270 ms | $0.003 |
| 6 days ago | Passed | 402 | 110 ms | $0.003 |
| 6 days ago | Passed | 402 | 1.0 s | $0.003 |
| 7 days ago | Passed | 402 | 139 ms | $0.003 |
| 7 days ago | Passed | 402 | 85 ms | $0.003 |
| 7 days ago | Passed | 402 | 617 ms | $0.003 |
| 8 days ago | Passed | 402 | 266 ms | $0.003 |
| 8 days ago | Passed | 402 | 116 ms | $0.003 |