> ## Documentation Index
> Fetch the complete documentation index at: https://docs.limitless.exchange/llms.txt
> Use this file to discover all available pages before exploring further.

# For Developers

> REST and WebSocket APIs for programmatic trading on Limitless

Build on Limitless with **REST** and **WebSocket** APIs for programmatic trading, market data, and portfolio management.

**Base URL:** `https://api.limitless.exchange`

**Interactive API Docs (Scalar):** `https://api.limitless.exchange/api-v1`

**WebSocket URL:** `wss://ws.limitless.exchange`

**Network:** Base mainnet (chain ID `8453`). There is no sandbox, testnet, mock mode, or Base Sepolia deployment — all integrations run against production with real USDC. To rehearse a flow without significant capital, place small live orders (e.g. the minimum order size for a CLOB market) on a low-volume market.

<Note>
  The `/api-v1` path serves the interactive Scalar API documentation. For actual API calls, use the base URL directly (e.g., `GET https://api.limitless.exchange/markets/active`).
</Note>

<Card title="Join the Limitless Builders Chat" icon="telegram" href="https://t.me/LimitlessBuildersChat">
  Building on the API or SDKs? The Builders Chat on Telegram is the place for API/SDK updates, help, and to connect with other builders.
</Card>

## Choose your path

<CardGroup cols={2}>
  <Card title="Individual Trader / Bot" icon="user" href="#trading-for-yourself">
    You want to trade on Limitless programmatically — placing orders with your own wallet via a bot, script, or agent. **You do not need to apply for anything.** Get an API key from the UI and start trading.
  </Card>

  <Card title="Platform / Partner" icon="building" href="#building-a-platform">
    You are building a product where **other users** trade through your platform. You need sub-accounts, delegated signing, or managed wallets. **Requires a partner application.**
  </Card>
</CardGroup>

***

## Trading for yourself

If you are an individual trader, bot operator, or agent builder, this is your path. You trade with your own wallet and sign your own orders.

### How it works

<Steps>
  <Step title="Get a scoped API token">
    Generate a scoped API token (a token ID + secret) from the [Limitless Exchange UI](https://limitless.exchange) → profile menu → Api keys. Sign every request with HMAC-SHA256 and send the `lmts-api-key`, `lmts-timestamp`, and `lmts-signature` headers. See [Authentication](/developers/authentication) for the signing protocol.
  </Step>

  <Step title="Fetch market data">
    `GET /markets/:slug` returns market info including **venue contract addresses** (fetch once per market and cache).
  </Step>

  <Step title="Build and sign orders">
    Construct order payloads and sign with **EIP-712** using the venue's exchange address as `verifyingContract`.
  </Step>

  <Step title="Submit orders">
    `POST /orders` with your signed order, `ownerId` (your profile ID from `GET /profiles/{address}`), `orderType`, and `marketSlug`.
  </Step>
</Steps>

### Get started

<CardGroup cols={2}>
  <Card title="Authentication" icon="key" href="/developers/authentication">
    API keys, scoped tokens, and how auth works.
  </Card>

  <Card title="Python Quick Start" icon="python" href="/developers/quickstart/python">
    End-to-end trading in Python.
  </Card>

  <Card title="Node.js Quick Start" icon="js" href="/developers/quickstart/nodejs">
    TypeScript/Node.js integration with viem.
  </Card>

  <Card title="EIP-712 Signing" icon="pen" href="/developers/eip712-signing">
    How to sign orders for the CLOB.
  </Card>
</CardGroup>

***

## Building a platform

If you are a partner building a product where other users trade through your platform, this is your path. You manage sub-accounts on behalf of your users and optionally use delegated signing so your users never need to manage private keys.

<Info>
  **You must apply for Programmatic API access** before you can create sub-accounts or use delegated signing. Individual trading with your own wallet does not require an application.
</Info>

### What you get

| Capability               | Description                                                                                                |
| ------------------------ | ---------------------------------------------------------------------------------------------------------- |
| **Scoped API tokens**    | HMAC-SHA256 authenticated tokens with granular scopes (`trading`, `account_creation`, `delegated_signing`) |
| **Partner sub-accounts** | Create and manage user profiles linked to your partner account                                             |
| **Delegated signing**    | Submit orders without end users managing private keys — the server signs via a managed wallet              |

### Get started

<CardGroup cols={2}>
  <Card title="Programmatic API" icon="code" href="/developers/programmatic-api">
    Full guide: partner lifecycle, sub-accounts, delegated signing, and order types.
  </Card>

  <Card title="Authentication (HMAC)" icon="key" href="/developers/authentication#hmac-request-signing">
    HMAC signing protocol for partner API tokens.
  </Card>

  <Card title="Migrate from Polymarket" icon="arrow-right" href="/developers/migrate-from-polymarket">
    Map Polymarket concepts to Limitless equivalents.
  </Card>

  <Card title="API Reference" icon="book" href="/api-reference/introduction">
    Full endpoint documentation.
  </Card>
</CardGroup>

***

## Official SDKs

All SDKs support both individual trading and partner integrations.

<CardGroup cols={4}>
  <Card title="TypeScript SDK" icon="js" href="/developers/sdk/typescript/getting-started">
    Type-safe client with signing and real-time streaming.
  </Card>

  <Card title="Python SDK" icon="python" href="/developers/sdk/python/getting-started">
    Async client for markets, orders, and partner features.
  </Card>

  <Card title="Go SDK" icon="golang" href="/developers/sdk/go/getting-started">
    Typed Go client for CLOB and NegRisk markets.
  </Card>

  <Card title="Rust SDK" icon="code" href="/developers/sdk/rust/getting-started">
    Async Rust client for trading, partner flows, and WebSockets.
  </Card>
</CardGroup>

## Additional resources

<CardGroup cols={2}>
  <Card title="Venue System" icon="sitemap" href="/developers/venue-system">
    Contract addresses and token approvals.
  </Card>

  <Card title="WebSocket API" icon="plug" href="/developers/quickstart/websocket">
    Real-time market and orderbook streaming.
  </Card>
</CardGroup>
