> For the complete documentation index, see [llms.txt](https://docs.strixlab.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.strixlab.io/developers/api-overview.md).

# API Overview

Strix Lab exposes a public REST + WebSocket API for market makers, trading bots, and data consumers. Orders match on a central-limit order book (CLOB) and settle on-chain in USDC.

### Base URLs

<table><thead><tr><th width="200">Interface</th><th>URL</th></tr></thead><tbody><tr><td>REST</td><td><code>https://api.strixlab.io/api</code></td></tr><tr><td>WebSocket</td><td><code>wss://api.strixlab.io/ws</code></td></tr></tbody></table>

### Key facts

<table><thead><tr><th width="220"></th><th></th></tr></thead><tbody><tr><td><strong>Collateral</strong></td><td>USDC (6 decimals)</td></tr><tr><td><strong>Auth</strong></td><td>HMAC-SHA256 API keys (recommended for bots) <em>or</em> Privy Bearer token</td></tr><tr><td><strong>Price range</strong></td><td><code>tickSize</code> to <code>1 − tickSize</code> (e.g. 0.01–0.99)</td></tr><tr><td><strong>Tick size</strong></td><td><code>0.01</code> or <code>0.001</code>, per market (from <code>/api/events</code>)</td></tr><tr><td><strong>Min order value</strong></td><td><code>price × quantity ≥ 1.0</code> ($1.00)</td></tr><tr><td><strong>Fees</strong></td><td>Taker-only, category-based. Makers free. See <a href="/pages/aP0SP0REFim16kgDsS8t">Fees</a>.</td></tr></tbody></table>

### The core concept: `tokenId`

Every outcome (YES / NO / each leg of a multi-outcome event) has a unique **`tokenId`**. It's the identifier you use for **everything** — placing orders, querying the order book, and subscribing over WebSocket. Fetch tokenIds from [`GET /api/events`](/developers/rest-api.md#markets).

### Getting started

{% stepper %}
{% step %}

### Sign up & fund a wallet

Register at [strixlab.io](https://strixlab.io) like any user — Privy creates your embedded wallet. Fund it with USDC.
{% endstep %}

{% step %}

### Generate API keys

Go to **Settings → API Keys → Generate Keys**. You'll receive an `apiKey`, `apiSecret`, and `apiPassphrase`. The secret and passphrase are shown **once** — store them securely.
{% endstep %}

{% step %}

### Authenticate & trade

Sign requests with HMAC ([Authentication](/developers/authentication.md)), place orders over [REST](/developers/rest-api.md), and stream fills over [WebSocket](/developers/websocket-api.md).
{% endstep %}
{% endstepper %}

{% hint style="danger" %}
**Risk management:** the single most important endpoint for a bot is bulk cancel — `DELETE /api/orders`. On any connectivity issue or model failure, fire it immediately to pull all your quotes.
{% endhint %}

### Where to go next

<table data-view="cards"><thead><tr><th></th><th></th><th data-hidden data-card-target data-type="content-ref"></th></tr></thead><tbody><tr><td><strong>Authentication</strong></td><td>HMAC signing, headers, examples.</td><td><a href="/pages/VyNw4DjDWNrTN0lrd1aU">/pages/VyNw4DjDWNrTN0lrd1aU</a></td></tr><tr><td><strong>REST API</strong></td><td>Markets, order book, orders, portfolio.</td><td><a href="/pages/urgAejIJURgxBBTMSKE7">/pages/urgAejIJURgxBBTMSKE7</a></td></tr><tr><td><strong>WebSocket API</strong></td><td>Live order book, trades, and user fills.</td><td><a href="/pages/O9ntdqTKwwrLIHHiibpf">/pages/O9ntdqTKwwrLIHHiibpf</a></td></tr></tbody></table>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.strixlab.io/developers/api-overview.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
