81trust / 100

Crypto Ohlc

by NetIntel in Onchain & crypto

x402 APIPassing, checked 4 h ago

Historical OHLC candles for any major crypto asset — hourly or daily, up to 300 candles, with period stats (change %, high, low) — from Coinbase Exchange with Kraken fallback, no API key. Also a price-at-date mode: pass date=YYYY-MM-DD for that day's candle and close. USD, EUR, or GBP quotes; 5min cache.

GET
https://netintel.dev/crypto/ohlc
Price
$0.02
per call in USDC
Uptime
100%
last 30 days
Response time
195 ms
364 ms slowest 5%
Last check
Passed
4 h ago, next any minute now

Run a free test callHow to call it

Reliability

All checks passedSome failedAll failedNot checked

Status and outage history · Atom feed · Watch with other listings

How to call it

GET https://netintel.dev/crypto/ohlc

Each call costs $0.02 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://netintel.dev/crypto/ohlc?days=7&interval=1d&symbol=BTC

Parameters

ParameterTypeRequiredDescription
datestringNoYYYY-MM-DD price-at-date mode: that day's single daily candle + its close as price. Mutually exclusive with days/limit
daysnumberNoLookback window, default 30. Max 300 for 1d, 12 for 1h (300 candles). Alias: period
intervalstringNo1h or 1d (default 1d). hour/hourly and day/daily accepted. Aliases: granularity, timeframe
limitnumberNoNumber of most-recent candles (the usual candle-API param). Capped at 288 for 1h, 300 for 1d. Aliases: count, candles. Use instead of days.
symbolstringNoOne ticker or full name ("BTC" or "bitcoin"); a leading $ is fine. Aliases: coin, ticker, asset
vsstringNoQuote currency: USD (default), EUR or GBP. Aliases: currency, fiat, vs_currency

Example response

The provider's example. We can't check it without paying.

Example response, 78 lines
{
  "cache_age_seconds": 0,
  "candle_count": 7,
  "candles": [
    {
      "close": 65341.07,
      "high": 65511.36,
      "low": 64229.6,
      "open": 64295.61,
      "time": "2026-07-26T00:00:00.000Z",
      "volume": 2390.56790196
    },
    {
      "close": 63694.43,
      "high": 65705.08,
      "low": 63545,
      "open": 65341.07,
      "time": "2026-07-27T00:00:00.000Z",
      "volume": 5069.45269918
    },
    {
      "close": 63847.12,
      "high": 64041.02,
      "low": 62645.39,
      "open": 63693.44,
      "time": "2026-07-28T00:00:00.000Z",
      "volume": 6232.18054403
    },
    {
      "close": 63896.14,
      "high": 64665.3,
      "low": 63194.45,
      "open": 63847.12,
      "time": "2026-07-29T00:00:00.000Z",
      "volume": 8092.70552294
    },
    {
      "close": 64721.9,
      "high": 65118.08,
      "low": 63502.91,
      "open": 63896.14,
      "time": "2026-07-30T00:00:00.000Z",
      "volume": 8025.87127027
    },
    {
      "close": 62825.9,
      "high": 65360,
      "low": 62358.96,
      "open": 64721.9,
      "time": "2026-07-31T00:00:00.000Z",
      "volume": 8260.37090197
    },
    {
      "close": 62445.14,
      "high": 63093,
      "low": 62209.81,
      "open": 62826.69,
      "time": "2026-08-01T00:00:00.000Z",
      "volume": 2472.01120363
    }
  ],
  "end": "2026-08-01",
  "findings": [],
  "interval": "1d",
  "source": "coinbase",
  "stale": false,
  "start": "2026-07-26",
  "stats": {
    "avg_volume": 5791.88,
    "change_pct": -2.88,
    "close": 62445.14,
    "open": 64295.61,
    "period_high": 65705.08,
    "period_low": 62209.81
  },
  "symbol": "BTC",
  "vs": "USD"
}

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.02.

curl: see the payment challenge
# bash or zsh: see the payment challenge. Nothing is charged.
curl -sS -g -i 'https://netintel.dev/crypto/ohlc?days=7&interval=1d&symbol=BTC'

# 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://netintel.dev/crypto/ohlc?days=7&interval=1d&symbol=BTC' \
  | grep -i '^payment-required:' | cut -d' ' -f2 | tr -d '\r' | base64 --decode
JavaScript: 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.02 per call.
const client = new x402Client().setSpendControls({ maxAmountPerPayment: "$0.02" });
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.02 per payment. GET https://toolvet.app/api/v1/check?url=https%3A%2F%2Fnetintel.dev%2Fcrypto%2Fohlc
const res = await pay("https://netintel.dev/crypto/ohlc?days=7&interval=1d&symbol=BTC");
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.02 per call.
client = x402ClientSync().set_spend_controls({"max_amount_per_payment": "$0.02"})
register_exact_evm_client(client, EthAccountSigner(Account.from_key(os.environ["EVM_PRIVATE_KEY"])))

with x402_requests(client) as session:
    res = session.get("https://netintel.dev/crypto/ohlc?days=7&interval=1d&symbol=BTC")
    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

WhenResultHTTPTimePrice
4 h agoPassed402204 ms$0.02
8 h agoPassed402342 ms$0.02
13 h agoPassed402270 ms$0.02
17 h agoPassed402195 ms$0.02
21 h agoPassed402184 ms$0.02
Show 10 older checks
26 h agoPassed402178 ms$0.02
30 h agoPassed402180 ms$0.02
34 h agoPassed402178 ms$0.02
38 h agoPassed402179 ms$0.02
43 h agoPassed402260 ms$0.02
47 h agoPassed402184 ms$0.02
2 days agoPassed402215 ms$0.02
2 days agoPassed402364 ms$0.02
2 days agoPassed402290 ms$0.02
3 days agoPassed402180 ms$0.02