Docs

How to call Comparand from Claude Code, another MCP client, or curl.

What it does

Comparand is a research service over Hyperliquid market history. You, or an AI agent working for you, can ask what the market looked like, when it looked like this before, and which liquidation cascades happened on a given day. Every answer says which data it came from and what its limits are.

Comparand does not give forecasts, trade signals, or advice on what to trade. It covers Hyperliquid only.

Not available yet

Backtests of market-making rules, strategy reports, research projects, wallet lookups, and order-book replay are not available yet. They are not part of either plan.

Get a key

Keys come with a paid plan. Choose a plan on the pricing page, then pay through Stripe Checkout.

If you lose your key, email hello@comparand.xyz. See Support for how replacement works.

Connect Claude Code or another MCP client

The MCP server uses streamable HTTP at https://api.comparand.xyz/mcp. Send your key in the Authorization header on every call.

For Claude Code, run this once. Replace YOUR_API_KEY with your key.

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

For other MCP clients, add this block to the client's MCP config. Many clients read this shape from a file such as .mcp.json. Check your client's docs for where its file goes.

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

Do not commit your key to a git repository or paste it into a public place.

Call it with curl

The REST API lives at https://api.comparand.xyz. Every call needs the Authorization header. Pick a complete day from GET /v1/coverage before you ask for a window.

Labels for one coin over a window. This asks for five minutes, so it returns five rows at $0.005 each.

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"

Analogs for one coin at one decision time. This asks for the five nearest past episodes and what followed over one hour. It costs $0.05 per packet.

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}'

Replace the coin, the times, and YOUR_API_KEY with your own values. Use a time in the past that the archive covers.

Limits and honesty