Skip to main content

Base URL

https://api.totalis.trade

Authentication

All API requests require an API key. Generate one from the Totalis Dashboard, then include it in every request:
TOTALIS_API_KEY: api_live_xxxxxxxxxxxxxxxxxxxxx
API keys work for both REST API and WebSocket connections. See the Authentication guide for details.

Endpoint Groups

RFQs

Create, list, and manage Requests for Quote as a user.

Market Maker

View open RFQs, submit quotes, and confirm trades as a market maker.

Markets

Browse available prediction markets across supported venues.

User

Manage your profile, API keys, and Solana wallet.

Status

System health and sync observability.

Error Format

All errors follow a consistent format:
{
  "error": {
    "code": "ERROR_CODE",
    "message": "Human-readable error message",
    "details": {}
  }
}
Common error codes include UNAUTHORIZED, FORBIDDEN, NOT_FOUND, INVALID_REQUEST, CONFLICT, INSUFFICIENT_BALANCE, RFQ_EXPIRED, QUOTE_EXPIRED, and INTERNAL_ERROR.