Skip to main content

1. Get a key

In the Totalis app, go to Account, then API keys, pick the taker scopes, and approve with your wallet. The key is shown once. A market maker issues its keys headless instead: Market making.
An account whose own wallet signs in on a partner’s site issues its key from its wallet session instead (Create, rotate, revoke). For a frontend for your own users, or to test on testnet first, see Build on Totalis.

2. Read

Markets need no key:
The list is flat: one row per market, with no question title. Markets of one question share native_question_id. For a market in a question, Get market returns its question, with the title and all its markets. A standalone market has native_question_id: null and question: null. List questions (GET /v1/discovery) groups markets under their question titles, and lists standalone markets separately. Your identity checks the key:
wallet is your Totalis wallet. It signs your trades.

3. Request quotes

Subscribe to your account first, so no quote is missed:
Then create an RFQ for 5 USDC on YES of outcome 1209:
Quotes arrive on the socket as QUOTE_CREATED, each with a payout. Generate a new lowercase UUIDv7 Idempotency-Key for every command.

4. Accept

Sign a quote and accept it before its accept_before: Trading.