/api/v1/ and return JSON. This page covers the conventions that apply to every request you make.
Base URLs
Use the staging environment for testing integrations without affecting production data. All endpoints, response shapes, and authentication methods are identical across environments.
API version
The current version is 1.0.0. Every endpoint path begins with/api/v1/. The two health endpoints — GET /health and GET /ready — sit at the root with no version prefix.
Request format
SetContent-Type: application/json on all requests that include a body. Query parameters are accepted as standard URL-encoded key-value pairs.
Authentication
Arbitrage supports three authentication methods depending on the endpoint group:
See Authentication for full details on obtaining tokens, refreshing sessions, and creating API keys.
Health endpoints
Two liveness probes are available with no authentication required:GET /health— returns200 OKwhen the API server process is running.GET /ready— returns200 OKwhen the database and dependencies are reachable.
Response envelope
Successful responses wrap the payload in adata key. List endpoints additionally include a meta object with pagination details:
data as an object rather than an array. Some endpoints include additional top-level keys (for example, tokens on auth responses).
Error envelope
All errors follow the same shape:INVALID_REQUEST, UNAUTHORIZED, FORBIDDEN, NOT_FOUND, RATE_LIMITED, INTERNAL_ERROR, INVALID_API_KEY, and QUOTA_EXCEEDED. See Error reference for the full list.
Pagination
List endpoints acceptlimit and offset query parameters and return pagination state in meta:
Maximum items to return per page. Range 1–200.
Number of items to skip. Use this to page through results.
Rate limits
All responses include rate-limit headers:
See Rate limits for full details and retry guidance.
Key sections
Markets & Discovery
Browse canonical questions with index prices, divergence metrics, and platform slugs.
Arbitrage
Scored arbitrage opportunities with session auth or API key access.
Account
Register, log in, manage watchlists, set price alerts, and track wallet positions.
Console
Create and revoke API keys, and inspect usage statistics and request logs.
