Skip to main content
Rach Market Data gives you the top 250 coins by market cap and live USD prices, served from Rach’s edge cache (no external quota is burned per request). Use the REST API for snapshots and the WebSocket for real-time ticks.
Market Data lives at a different base path than the other Payments services: https://api.rach.finance/v1/market/ (note: no /api/v1). It uses your Payments X-API-Key; only the health check is public.

REST

List coins

Response

Batch prices

Up to 100 symbols in one call:
Response

Fetch a single coin / asset

Two ways, depending on how much you need — pass the lowercase symbol as the path parameter. Just the value — lightweight, for tickers and totals:
Response
Full detail — price plus rank, 24h change, name and freshness:
Response
GET /v1/market/prices/{symbol} returns the price as a number; GET /v1/market/coins/{symbol} returns every field as strings. A 404 means the symbol isn’t tracked.

Health (public)

The full REST schemas are in the Payments API reference under Market Data.

WebSocket

Connect for real-time price ticks. Browser WebSocket clients can’t set headers, so the API key is passed in the query string:

Messages

Client → server
Server → client
On connect you receive a snapshot of your subscribed symbols, then tick messages as prices change (direction is raise or fall). Send { "op": "ping" } to keep the connection alive; the server replies pong.

Example

Limits

10 concurrent WebSocket connections per merchant. Slow consumers have individual ticks dropped (they are not disconnected), so always render the latest tick and don’t assume you receive every one.