Docs Beta

Use Comparand from Claude, Cursor, any MCP app, your own bot or curl.

Comparand is a historical analog search (time-series shape matching) for crypto. It finds past times this coin's chart looked like this on the same exchange and shows what happened after each one: dated individual matches, not an average. Pick the exchange (Hyperliquid, Binance, Bybit, OKX or Coinbase), spot or perpetual, and a timeframe (5m, 15m, 1h, 4h or 1d). It is an MCP server for Claude, ChatGPT and AI agents, with a REST API. Add it with claude mcp add. Past cases, not a forecast. Compared with other tools: chart pattern search tools compared.

Get access

  1. 1. Get a key: a plan or pay as you go. Get a key.
  2. 2. AI apps: MCP at https://api.comparand.xyz/mcp with your key. Connect over MCP.
  3. 3. Your own code: REST API at https://api.comparand.xyz, key in the Authorization header. Call it with curl.
  4. 4. ChatGPT and Claude apps: Apps. Not in the app directories yet.

Get a key

Choose a plan or pay as you go on pricing, pay through Stripe Checkout. The welcome page shows your key once. Save it then. Lost it? Email hello@comparand.xyz (Support).

Connect over MCP

Streamable HTTP at https://api.comparand.xyz/mcp. Key in the Authorization header on every call.

Claude Code, run once:

claude mcp add --transport http comparand https://api.comparand.xyz/mcp --header "Authorization: Bearer YOUR_API_KEY"

Other MCP clients: add this to the MCP config, often a file like .mcp.json (see your client's docs).

{"mcpServers": {"comparand": {"type": "http", "url": "https://api.comparand.xyz/mcp", "headers": {"Authorization": "Bearer YOUR_API_KEY"}}}}

Keep your key secret: not in git, not anywhere public.

Call it with curl

REST API: https://api.comparand.xyz. Every call needs the Authorization header. Pick a complete day from GET /v1/coverage first.

Labels for one coin, five minutes, five rows:

curl -s -H "Authorization: Bearer YOUR_API_KEY" "https://api.comparand.xyz/v1/labels?coin=BTC&start=2026-09-01T00:00:00Z&end=2026-09-01T00:05:00Z"

Five nearest past episodes for one coin at one time, and the next hour. About $0.01 of credits:

curl -s -X POST https://api.comparand.xyz/v1/analogs -H "Authorization: Bearer YOUR_API_KEY" -H "Content-Type: application/json" -d '{"coin": "BTC", "decision_utc": "2026-09-01T12:00:00Z", "horizon": "1h", "k": 5}'

Chart-shape analogs, Binance BTCUSDT, last 48 hourly bars. $0.01 of credits:

curl -s -X POST https://api.comparand.xyz/v1/shape/analogs -H "Authorization: Bearer YOUR_API_KEY" -H "Content-Type: application/json" -d '{"venue": "binance", "symbol": "BTCUSDT", "timeframe": "1h"}'

Swap in your coin, times and key. Use a past time the archive covers.

Hyperliquid search

hl_analogs: give a Hyperliquid coin and a time. It finds the past moments closest to that coin's state then, using price plus buying and selling, open interest and liquidations (see Words) from our archive.

  • Up to 20 past moments, closest first, each with the price over the next 1 or 4 hours.
  • Arguments: coin, decision_utc, horizon (1h or 4h), optional k (1 to 20, default 20) and format (a3 by default, or a3ctx or a3x).
  • The a3x format says what made each match close and groups matches from the same moment: ten coins in one liquidation minute count as one.
  • Covers the archive, 2025-04-01 to 2026-09-30. Each match lists its archive days.
  • About $0.01 of credit per search. API: POST /v1/analogs.

Market data

The prices behind any match, plus data to check for yourself. Deep on Hyperliquid; dozens of other exchanges.

Hyperliquid archive

212 coins, every minute, 2025-04-01 to 2026-09-30: 1 minute, 5 minute and 1 hour bars, plus funding, open interest change, liquidations, cascades and minute labels. Each day notes its source files and processing run. Every answer lists the days it used.

BTC, ETH, SOL, XRP, DOGE, BNB and HYPE are not in the archive yet. They are in chart search from May 2023 (HYPE from Dec 2024).

Archive tools

On a plan, data tools are included within fair use (your plan's requests-per-minute limit). Credit tools use credit. Pay as you go with no plan: data tools use credit too. Each answer's meter part shows the cost.

Per call without a plan:

  • $0.005: hl_labels, hl_labels_snapshot, hl_labels_live, hl_cascade_events, hl_bars, hl_funding, hl_oi, hl_liquidations_series, hl_cascade_search and hl_listings.
  • $0.01: hl_stats and hl_liquidations_top.
  • Free: hl_coverage, hl_coverage_calendar, hl_provenance, hl_bulk_files, usage and the venue tools.

One data call: at most 7 days and 1,440 rows. Call hl_coverage first to see which days are complete.

Free

Data tools, unlimited within fair use

Other credit tools

Other exchanges and prediction markets

  • Price bars from dozens of exchanges, fetched when you ask, then saved. Some add funding and trades; most are price bars only.
  • Finished bars only. Times in UTC.
  • Prediction markets: Kalshi and Polymarket. Search open markets, then get price history. Price = chance of "yes", 0 to 1.
  • Free on every key, including pay as you go, within the fair-use rate limit.
  • The list changes as exchanges pass or fail our checks. Call venue_coverage first for the current list.
  • REST: GET /v1/venue/coverage and GET /v1/venue/{venue}/markets, /bars, /funding, /trades, /prices.

Full and Limited

  • Full is that we have all the data that that exchange historically has.
  • Limited is that we have as much data as we could get, but some is just limited, and there are gaps.
Data tier for each exchange
ExchangeTierLimits today
Hyperliquid perpsFull (filling in)Archive tools run to Sep 30, 2026, without the 7 biggest coins for now.
BinanceFull (filling in)Spot loading. COIN-M queued.
CoinbaseFull (filling in)Loading. Coinbase gives no taker buy and sell split.
BybitFull (filling in)Loading.
OKXFull (filling in)Queued. Listed markets only; OKX lists no delisted ones.
Hyperliquid HIP-3Limited1 minute bars only from Oct 17, 2026.
Hyperliquid spotLimited337 pairs. Queued.
BitgetLimitedQueued.
GateLimitedQueued. Built from Gate's trade files; can differ slightly from Gate's own chart.
KuCoinLimitedQueued. Perps listed now only.
UpbitLimitedQueued. No 1 day bars live.
HTXLimitedQueued. Perps only live, no 1 day bars.
MEXCLimitedQueued, 1 hour only. Spot only live; 1 minute bars for about 30 days.
DeribitLimitedPerps live. Dated futures and DVOL queued for the API.
dYdXLimitedDelisted markets loading.
LighterLimitedPartial: a few markets so far.
ParadexLimitedQueued for the API.
PhemexLimitedPerps only.
BitfinexLimitedNo 4 hour bars.
Backpack, PacificaLimitedNo 1 minute bars.
OrderlyLimited1 hour and 1 day bars only.
Bitstamp, Crypto.com, Poloniex, Aster, ApeX, Extended and moreLimitedFetched when you ask, as far back as each exchange's API goes.

Deeper history Not live yet

  • None of it is live in the API yet. Chart search on 1 minute bars comes with it.
  • Loading: downloading now. Queued: not started yet. This page will say when each goes live.
  • The exchange's own numbers, source files noted. Times in UTC. Dates are the oldest data on that exchange, usually BTC. Newer coins start later.
Deeper price history by exchange, with status
Exchange or sourceMarketsFromWhat you getStatus
BinanceSpot, every pair. USD-M perps, every contract. Delisted ones too.Spot Aug 2017. Perps Jan 2020.1m price, volume, trade count, taker buy and sellPerps done, spot loading
Binance COIN-MDated futures, one market per contract, until it expires20201m priceQueued
CoinbaseEvery product, delisted ones tooJan 2015 (few bars until mid 2015)1m price and volumeLoading
HyperliquidEvery perpMay 2023From May 2023 to Mar 2025: one price per minute (mark, mid and oracle), no volume. From Mar 2025: price bars from trades.Downloaded, queued for the API
Hyperliquid HIP-3Stock, index, commodity and FX perps run by outside teamsDaily from Nov 2025. 1m from Oct 17, 2026.1 minute bars only from Oct 17, 2026; older bars are coarserLoading
Hyperliquid spot337 pairsAs far back as Hyperliquid's files goPrice and volumeQueued
OKXSpot and perps (USDT, USDC and coin-margined), stock and commodity perps, listed nowAs far back as OKX keeps it1m price and volumeQueued
BybitSpot, USDT and USDC perps, coin-margined perps, dated futures. Delisted ones too.As far back as Bybit keeps it1m price and volume. Dated futures built from Bybit's trade files.Loading
BitgetSpot, USDT-M and USDC-M perpsSpot Jul 2018. USDT-M Jul 2019.1m price and volumeQueued
GateSpot, every pair. USDT perps, every contract.As far back as Gate's trade files go1m price and volume. Built from Gate's trade files; can differ slightly from Gate's own chart.Queued
KuCoinSpot, every pair. Perps that are listed now.Spot Oct 2017. Perps about Dec 2024.1m price and volumeQueued
UpbitKRW, BTC and USDT marketsSep 20171m price and volumeQueued
HTXSpot and USDT perpsSpot Jun 2020. Perps Oct 2020.1m price and volumeQueued
MEXCSpot and USDT perpsSeveral years back1 hour bars only. MEXC keeps 1 minute bars for about 30 days.Queued
DeribitBTC and ETH dated futures, expired and live. DVOL, Deribit's BTC and ETH volatility index (how much movement option traders expect).Futures about 2017. DVOL 2021.1m price. DVOL hourly.Queued for the API
dYdXDelisted marketsLate 20231m price and volumeLoading
ParadexPerps20231m price. Volume in US dollars, rounded down to whole dollars.Queued for the API
LighterPerps and spot. Stock and commodity markets are marked.Each market's start1m price and volumeLoading, a few markets so far
ECB and US Federal ReserveDaily FX reference ratesECB 1999Daily rates. Source named on every answer.Queued for the API

Order flow: taker buys and sells per minute, count and size. Bybit and OKX: built from their trade files. Binance: comes with its price bars above. Bybit and OKX queued

Perps on stocks, indexes, metals, oil and currencies. They are the exchange's perp prices, not official stock or commodity market prices.

Not included

Order book depth. Single trades on Hyperliquid. Bars that are not finished yet.

Plans and limits

All plans: pricing.

Sources on every answer

Every answer has four parts: data, prov, meter and disclosure.

  • prov (provenance, where the data came from): the days or exchange downloads behind it, a fingerprint (digest) for each, the code version and the source files.
  • meter: what the call cost.

Words

API key
A secret code, like a password, sent with every call.
MCP
Model Context Protocol. How AI apps like Claude use outside tools.
REST API
Web addresses your code calls to get data back.
Credit
Money in your account, in US dollars. Used by searches and some tools.
Bar
Open, high, low and close over a set time, like 1 minute or 1 hour.
Perp
A futures contract that never expires. Most Hyperliquid markets are perps.
Funding
A small payment one side of a perp pays the other.
Open interest
Total size of trades still open.
Liquidation
The exchange closes a trade because the trader's money ran out.
Cascade
Many liquidations in a short time.
bp
Basis point. 100 bp is 1%.
Provenance (prov)
Where the data in an answer came from.
Pay as you go (PAYG)
Buying credit without a monthly plan.

FAQ

What is Comparand?
It finds past crypto charts that look like today's and shows what the price did next. It also serves the market data behind each answer, over MCP and REST. Every answer says which data it came from.
Does Comparand give forecasts or trade signals?
No. Results are past cases, not forecasts, signals or advice. No averages, win rates or direction.
What data does Comparand cover?
Chart search covers BTC, ETH, SOL and other big coins on Binance, Bybit, OKX and Coinbase, plus every Hyperliquid perp. The Hyperliquid archive has every minute for 212 coins, April 2025 to September 2026. Price bars come from dozens of other exchanges, plus Kalshi and Polymarket. Each exchange is marked Full or Limited.
How do I connect Claude Code?
Run the claude mcp add command under Connect over MCP once, with your key in place of YOUR_API_KEY.
How do I get an API key?
Buy a plan or pay-as-you-go credit on the pricing page, through Stripe Checkout. The welcome page shows your key once. Save it then.
What does Comparand cost?
Plans start at $19 a month with $30 of credit. Pay as you go starts at $5. A search uses about one cent of credit.
What are the limits?
Requests per minute: Starter 60, Pro 300, Desk 900. Plan credit resets each month. With no credit left, credit tools are refused and nothing is billed extra.
What does Comparand not cover?
Order book depth, single trades on Hyperliquid, and bars that are not finished yet.