Limitless API Tutorial: Fetch Markets, Prices and Orderbooks

Limitless API Tutorial: Fetch Markets, Prices and Orderbooks

Limitless API Tutorial: Fetch Markets, Prices and Orderbooks

A developer's walkthrough of the Limitless prediction market API: public vs. authenticated access, first requests, price handling, errors, and cross-venue normalization.

Limitless API Tutorial: Fetch Markets, Prices and Orderbooks

The Limitless API splits cleanly into two layers. Public endpoints for browsing markets and reading orderbooks need no credentials. Anything that acts on an account, such as placing or cancelling orders, needs a scoped API token. Start with the public layer, get a typed and tested client working, and only then add authentication. If your goal is a pipeline that spans several venues, plan the normalization layer on day one, because the Limitless schema is only one of several you will need to reconcile. For that, a unified feed such as our Data API removes the per-venue work.

This tutorial is for developers, quants and bot builders. It assumes you can write an HTTP client in Python or Node.js and have not used a prediction market API before.

Assymetrixdata.assymetrix.comBring Prediction Market Data TogetherAssymetrix Data API provides unified access to Polymarket, Kalshi, and Limitless data through a single integration.Visit

TL;DR

  • Market browsing and orderbook data on Limitless are public. Authenticated requests use scoped API tokens, per the official API reference.

  • Prices are probabilities between 0 and 1 per share. Store them as decimals, never as percent strings.

  • Build one thin client with retries, timeouts, and schema validation before you write any strategy code.

  • Treat order placement as a separate, permissioned service with its own limits and kill switch.

  • For cross-venue work, map every venue into one canonical market ID early, or use a normalized feed.

Table of Contents

  • What a prediction market API gives you

  • Step 1: Decide what you need before you write code

  • Step 2: Make your first public request

  • Step 3: Read markets and the fields that matter

  • Step 4: Pull the orderbook

  • Step 5: Authenticate for account actions

  • Step 6: Place and manage orders safely

  • Step 7: Handle rate limits, errors and data quirks

  • Step 8: Build for more than one venue

  • Perspective: why we normalize before we analyze

  • Where the Data API fits

  • Common mistakes to avoid

  • FAQ

  • Sources

What a prediction market API gives you

A prediction market lists binary or multi-outcome questions, for example whether an event happens by a date. Each outcome trades as a share that pays out a fixed amount if it resolves true and nothing otherwise. The share price therefore reads as the market’s probability estimate. A YES share trading at 0.62 implies roughly a 62% chance.

That convention matters for code. CCXT’s prediction market documentation describes prices as a probability between 0 and 1 USDC per share, with orders expressed against an outcome handle, a type of limit or market, a side, and a share amount. Even if you never use CCXT, its model is a good template for your own types: an outcome identifier, a side, a size in shares and a price in the 0 to 1 range.

Pricing on any live market comes from standing bids and offers. If you want a refresher on how a price emerges from live bids against a curve, live bid pricing curves show the same mechanic in a different market.


What a prediction market API gives you

Step 1: Decide what you need before you write code

Most integration problems start with an unclear goal. Pick one of these and build to it:

Goal

Data you need

Needs auth?

Market discovery and screening

Market list, titles, status, close times

No

Price monitoring and charting

Current prices, orderbook depth, history

No

Research and backtesting

Historical trades and prices at scale

Usually no, but volume is the issue

Execution

Order placement, cancellation, positions

Yes

The public layer covers the first two rows. Research is where raw venue APIs get awkward: history is paginated, formats change, and you have to keep your own archive. Execution is where permissions and safeguards matter, which is why it deserves its own section below.

Step 2: Make your first public request

The reference states that market browsing and orderbook data are public. That means your first request needs no key. Read the current base URL and endpoint paths from the official reference, since paths and versions can change, and put them in configuration rather than in code.

A minimal Python pattern looks like this:

import requests

BASE_URL = "<base URL from the official reference>"
session = requests.Session()
session.headers.update({"Accept": "application/json"})

def get(path, params=None):
    resp = session.get(f"{BASE_URL}{path}", params=params, timeout=10)
    resp.raise_for_status()
    return resp.json()
import requests

BASE_URL = "<base URL from the official reference>"
session = requests.Session()
session.headers.update({"Accept": "application/json"})

def get(path, params=None):
    resp = session.get(f"{BASE_URL}{path}", params=params, timeout=10)
    resp.raise_for_status()
    return resp.json()

Two habits pay off immediately. First, always set a timeout, because a hung connection stalls a bot silently. Second, keep one Session so connections are reused.

Once you get a successful response, save a raw sample to disk. You will use it as a test fixture, and it protects you when a field changes shape later.

Step 3: Read markets and the fields that matter

When you list markets, you are looking for a short set of fields. Names differ by API, so map them in one place:

  • Identifier. The stable key you will join everything on. Never use a title, since titles get edited.

  • Title and description. Needed for screening and for resolution criteria.

  • Status. Whether the market is open, closed, or resolved. Filter on this first so you do not trade or chart dead markets.

  • Close and resolution times. Store as UTC timestamps.

  • Outcome identifiers. One per tradable side. Multi-outcome markets have more than two.

  • Price, volume and liquidity. The numeric fields you will analyze.

Parse into typed objects as soon as the response arrives. With Pydantic in Python or Zod in TypeScript, an unexpected null raises an error at the boundary instead of corrupting a calculation three functions later.

Handling prices correctly

Treat price as a decimal between 0 and 1. Reject values outside that range at parse time. Convert to percent only for display. For analysis, a few derived values are worth computing from the start:

  • Implied probability: the price itself, for a YES share.

  • Spread: best ask minus best bid. A wide spread means the displayed price is soft.

  • Mid price: the average of best bid and best ask, usually a better signal than the last trade on thin markets.

  • Complement check: in a binary market, YES and NO prices should sum close to 1. Persistent gaps are either fees, stale data or an opportunity.

Step 4: Pull the orderbook

The orderbook is the most useful public data on any venue. It shows resting bids and asks by price level and size. Use it to compute depth: how many shares you can buy before the price moves by a given amount.

A practical depth function walks the ask side from the lowest price, accumulating size until your target is filled, and returns the volume-weighted average price. Compare that to the top-of-book price and you have your estimated slippage. For a research pipeline, snapshot books at a fixed interval and store them with a receive timestamp, since you cannot recover a book’s past state afterward. Our orderbook data integration guide covers snapshot storage and depth calculations in more detail.


Orderbook asks flow into depth and slippage estimates

Step 5: Authenticate for account actions

Per the API reference, authenticated requests use scoped API tokens. Scoped means a token carries only the permissions you grant it. Use that deliberately:

  1. Create separate tokens per purpose. A read-only token for dashboards, a trading token for the execution service.

  2. Keep tokens out of source control. Load them from environment variables or a secrets manager.

  3. Give the trading token the narrowest scope that works, and rotate it on a schedule.

  4. Log every authenticated call with a request ID so you can reconcile your records against the venue’s.

Because the details of token creation and scopes are set by the venue, follow the current reference for the exact steps rather than a tutorial that may be out of date.

Step 6: Place and manage orders safely

Order objects across prediction market libraries share a shape. In CCXT, for example, an order takes an outcome, a type of limit or market, a side, an amount of shares and a price, and the library offers batch creation, editing, and cancelling one or all orders, per its prediction market docs. Mirror that shape internally so your strategy code does not depend on one venue.

Safeguards worth building before the first live order:

  • Prefer limit orders. A market order on a thin book can fill far from the displayed price. A limit price caps what you pay.

  • Hard position and order-size caps enforced in your service, not only in strategy logic.

  • Idempotency. Generate your own client order ID, and on a timeout query for the order before retrying, so you never double-submit.

  • A kill switch that cancels all open orders and halts new ones.

  • Reconciliation. Periodically compare your internal positions to the venue’s reported positions.

Trading prediction markets carries financial risk and some venues restrict who may trade by jurisdiction. Check the terms that apply to you, and if you trade at size, speak with a qualified attorney or tax adviser about your own situation. For the regulatory side of building on event contracts in the US, see our CFTC rules guide for developers.

Step 7: Handle rate limits, errors and data quirks

Any production client needs the same defensive layer. Look up the venue’s published limits in the current reference and encode them as configuration, not constants buried in code.

  • Rate limiting. Use a token bucket on your side so you stay under the limit rather than reacting to rejections. On HTTP 429 responses, back off exponentially with jitter and honor any Retry-After header.

  • Transient errors. Retry 5xx responses and timeouts a bounded number of times. Do not retry 4xx errors other than 429, since the request itself is wrong.

  • Pagination. Loop until the cursor or page is exhausted, and deduplicate on identifier, because pages can overlap when markets change mid-crawl.

  • Schema drift. Validate every response. Log and alert on unknown fields instead of ignoring them silently.

  • Stale data. Record the time you received each snapshot. If the last update is older than your threshold, stop trading on it.

  • Numeric precision. Parse prices and sizes as decimals where you compute money.

For continuous prices, polling quickly runs into limits. A streaming connection is usually the better design for live monitoring, with polling reserved for reconciliation. Our WebSocket API guide explains reconnection and sequence-gap handling.

Step 8: Build for more than one venue

A single-venue client is fine for a prototype. It stops being enough when you want arbitrage signals, a consensus price, or a model trained across markets. Each venue brings its own identifiers, status vocabulary, price conventions, fee model and resolution rules. The same real-world event appears under different IDs and slightly different wording on each.

The fix is a canonical event ID that maps each venue’s market to one internal record, plus a normalized schema for prices, books and trades. Building and maintaining that mapping is the largest hidden cost of cross-venue work. Our guides on canonical IDs for cross-venue data and Python prediction market data show how to structure it.

Perspective: why we normalize before we analyze

We built Assymetrix because the same problem showed up in every prediction market project: three venues, three schemas, and months spent reconciling them before any analysis could begin.

Our view is that a venue’s own API is the right tool for trading on that venue, and a poor foundation for research that spans venues. Signals such as Smart Money wallet tracking, Trader Skill Scores and cross-venue arbitrage only mean something when every market, trade and wallet is described in one consistent schema.

That is why our Data API is venue-neutral and built on roughly 1.5 terabytes of historical data covering nearly one billion rows of trading activity. You write against one integration and get normalized data back, instead of maintaining a separate parser for each venue.

Dean

Where the Data API fits

If you are building a tool that reads from Limitless and other venues, our Data API gives developers, quant researchers, bots and AI agents access to cross-venue prediction market data through a single integration. It includes real-time and historical data, normalized market schemas and bulk export, with free and paid tiers and non-commercial tiers for academic researchers. You can see the product overview on the Assymetrix homepage.


Assymetrix

For a deeper look at what a combined feed contains, read our real-time and historical data feed guide.

Common mistakes to avoid

  • Joining on titles. Titles change. Join on stable identifiers.

  • Treating the last trade as the price. On thin markets, use the mid price and check the spread.

  • Ignoring resolution rules. Two markets that look identical can resolve on different criteria, which breaks naive arbitrage.

  • Using floats for money. Use decimals for balances and fills.

  • Mixing authenticated and public clients. Keep the read path separate from the trading path so a bug in analytics cannot place an order.

  • Skipping a local archive. If you need history, start saving now, or use a source that already holds it.

FAQ

Do I need an API key to read Limitless market data?

No. According to the official API reference, public endpoints for browsing markets and reading orderbooks do not require authentication. A scoped API token is needed for authenticated requests such as account actions.

What format are Limitless prices in?

Prediction market prices are probabilities between 0 and 1 per share. CCXT documents the same convention, quoted in USDC per share. Store the value as a decimal and convert to a percentage only when you display it.

Can I use one client for several prediction market venues?

Yes, if you add a normalization layer that maps each venue’s identifiers, statuses and price fields to one schema. Libraries such as CCXT standardize order calls, and a unified data API standardizes the market, trade and wallet data behind your analysis.

Should I poll or stream for live prices?

Stream when you need continuous updates, and poll for periodic reconciliation. Polling fast enough to track a moving book will hit rate limits, while a streaming connection pushes changes as they happen.

Sources

Limitless API Tutorial: Fetch Markets, Prices and Orderbooks

The Limitless API splits cleanly into two layers. Public endpoints for browsing markets and reading orderbooks need no credentials. Anything that acts on an account, such as placing or cancelling orders, needs a scoped API token. Start with the public layer, get a typed and tested client working, and only then add authentication. If your goal is a pipeline that spans several venues, plan the normalization layer on day one, because the Limitless schema is only one of several you will need to reconcile. For that, a unified feed such as our Data API removes the per-venue work.

This tutorial is for developers, quants and bot builders. It assumes you can write an HTTP client in Python or Node.js and have not used a prediction market API before.

Assymetrixdata.assymetrix.comBring Prediction Market Data TogetherAssymetrix Data API provides unified access to Polymarket, Kalshi, and Limitless data through a single integration.Visit

TL;DR

  • Market browsing and orderbook data on Limitless are public. Authenticated requests use scoped API tokens, per the official API reference.

  • Prices are probabilities between 0 and 1 per share. Store them as decimals, never as percent strings.

  • Build one thin client with retries, timeouts, and schema validation before you write any strategy code.

  • Treat order placement as a separate, permissioned service with its own limits and kill switch.

  • For cross-venue work, map every venue into one canonical market ID early, or use a normalized feed.

Table of Contents

  • What a prediction market API gives you

  • Step 1: Decide what you need before you write code

  • Step 2: Make your first public request

  • Step 3: Read markets and the fields that matter

  • Step 4: Pull the orderbook

  • Step 5: Authenticate for account actions

  • Step 6: Place and manage orders safely

  • Step 7: Handle rate limits, errors and data quirks

  • Step 8: Build for more than one venue

  • Perspective: why we normalize before we analyze

  • Where the Data API fits

  • Common mistakes to avoid

  • FAQ

  • Sources

What a prediction market API gives you

A prediction market lists binary or multi-outcome questions, for example whether an event happens by a date. Each outcome trades as a share that pays out a fixed amount if it resolves true and nothing otherwise. The share price therefore reads as the market’s probability estimate. A YES share trading at 0.62 implies roughly a 62% chance.

That convention matters for code. CCXT’s prediction market documentation describes prices as a probability between 0 and 1 USDC per share, with orders expressed against an outcome handle, a type of limit or market, a side, and a share amount. Even if you never use CCXT, its model is a good template for your own types: an outcome identifier, a side, a size in shares and a price in the 0 to 1 range.

Pricing on any live market comes from standing bids and offers. If you want a refresher on how a price emerges from live bids against a curve, live bid pricing curves show the same mechanic in a different market.


What a prediction market API gives you

Step 1: Decide what you need before you write code

Most integration problems start with an unclear goal. Pick one of these and build to it:

Goal

Data you need

Needs auth?

Market discovery and screening

Market list, titles, status, close times

No

Price monitoring and charting

Current prices, orderbook depth, history

No

Research and backtesting

Historical trades and prices at scale

Usually no, but volume is the issue

Execution

Order placement, cancellation, positions

Yes

The public layer covers the first two rows. Research is where raw venue APIs get awkward: history is paginated, formats change, and you have to keep your own archive. Execution is where permissions and safeguards matter, which is why it deserves its own section below.

Step 2: Make your first public request

The reference states that market browsing and orderbook data are public. That means your first request needs no key. Read the current base URL and endpoint paths from the official reference, since paths and versions can change, and put them in configuration rather than in code.

A minimal Python pattern looks like this:

import requests

BASE_URL = "<base URL from the official reference>"
session = requests.Session()
session.headers.update({"Accept": "application/json"})

def get(path, params=None):
    resp = session.get(f"{BASE_URL}{path}", params=params, timeout=10)
    resp.raise_for_status()
    return resp.json()

Two habits pay off immediately. First, always set a timeout, because a hung connection stalls a bot silently. Second, keep one Session so connections are reused.

Once you get a successful response, save a raw sample to disk. You will use it as a test fixture, and it protects you when a field changes shape later.

Step 3: Read markets and the fields that matter

When you list markets, you are looking for a short set of fields. Names differ by API, so map them in one place:

  • Identifier. The stable key you will join everything on. Never use a title, since titles get edited.

  • Title and description. Needed for screening and for resolution criteria.

  • Status. Whether the market is open, closed, or resolved. Filter on this first so you do not trade or chart dead markets.

  • Close and resolution times. Store as UTC timestamps.

  • Outcome identifiers. One per tradable side. Multi-outcome markets have more than two.

  • Price, volume and liquidity. The numeric fields you will analyze.

Parse into typed objects as soon as the response arrives. With Pydantic in Python or Zod in TypeScript, an unexpected null raises an error at the boundary instead of corrupting a calculation three functions later.

Handling prices correctly

Treat price as a decimal between 0 and 1. Reject values outside that range at parse time. Convert to percent only for display. For analysis, a few derived values are worth computing from the start:

  • Implied probability: the price itself, for a YES share.

  • Spread: best ask minus best bid. A wide spread means the displayed price is soft.

  • Mid price: the average of best bid and best ask, usually a better signal than the last trade on thin markets.

  • Complement check: in a binary market, YES and NO prices should sum close to 1. Persistent gaps are either fees, stale data or an opportunity.

Step 4: Pull the orderbook

The orderbook is the most useful public data on any venue. It shows resting bids and asks by price level and size. Use it to compute depth: how many shares you can buy before the price moves by a given amount.

A practical depth function walks the ask side from the lowest price, accumulating size until your target is filled, and returns the volume-weighted average price. Compare that to the top-of-book price and you have your estimated slippage. For a research pipeline, snapshot books at a fixed interval and store them with a receive timestamp, since you cannot recover a book’s past state afterward. Our orderbook data integration guide covers snapshot storage and depth calculations in more detail.


Orderbook asks flow into depth and slippage estimates

Step 5: Authenticate for account actions

Per the API reference, authenticated requests use scoped API tokens. Scoped means a token carries only the permissions you grant it. Use that deliberately:

  1. Create separate tokens per purpose. A read-only token for dashboards, a trading token for the execution service.

  2. Keep tokens out of source control. Load them from environment variables or a secrets manager.

  3. Give the trading token the narrowest scope that works, and rotate it on a schedule.

  4. Log every authenticated call with a request ID so you can reconcile your records against the venue’s.

Because the details of token creation and scopes are set by the venue, follow the current reference for the exact steps rather than a tutorial that may be out of date.

Step 6: Place and manage orders safely

Order objects across prediction market libraries share a shape. In CCXT, for example, an order takes an outcome, a type of limit or market, a side, an amount of shares and a price, and the library offers batch creation, editing, and cancelling one or all orders, per its prediction market docs. Mirror that shape internally so your strategy code does not depend on one venue.

Safeguards worth building before the first live order:

  • Prefer limit orders. A market order on a thin book can fill far from the displayed price. A limit price caps what you pay.

  • Hard position and order-size caps enforced in your service, not only in strategy logic.

  • Idempotency. Generate your own client order ID, and on a timeout query for the order before retrying, so you never double-submit.

  • A kill switch that cancels all open orders and halts new ones.

  • Reconciliation. Periodically compare your internal positions to the venue’s reported positions.

Trading prediction markets carries financial risk and some venues restrict who may trade by jurisdiction. Check the terms that apply to you, and if you trade at size, speak with a qualified attorney or tax adviser about your own situation. For the regulatory side of building on event contracts in the US, see our CFTC rules guide for developers.

Step 7: Handle rate limits, errors and data quirks

Any production client needs the same defensive layer. Look up the venue’s published limits in the current reference and encode them as configuration, not constants buried in code.

  • Rate limiting. Use a token bucket on your side so you stay under the limit rather than reacting to rejections. On HTTP 429 responses, back off exponentially with jitter and honor any Retry-After header.

  • Transient errors. Retry 5xx responses and timeouts a bounded number of times. Do not retry 4xx errors other than 429, since the request itself is wrong.

  • Pagination. Loop until the cursor or page is exhausted, and deduplicate on identifier, because pages can overlap when markets change mid-crawl.

  • Schema drift. Validate every response. Log and alert on unknown fields instead of ignoring them silently.

  • Stale data. Record the time you received each snapshot. If the last update is older than your threshold, stop trading on it.

  • Numeric precision. Parse prices and sizes as decimals where you compute money.

For continuous prices, polling quickly runs into limits. A streaming connection is usually the better design for live monitoring, with polling reserved for reconciliation. Our WebSocket API guide explains reconnection and sequence-gap handling.

Step 8: Build for more than one venue

A single-venue client is fine for a prototype. It stops being enough when you want arbitrage signals, a consensus price, or a model trained across markets. Each venue brings its own identifiers, status vocabulary, price conventions, fee model and resolution rules. The same real-world event appears under different IDs and slightly different wording on each.

The fix is a canonical event ID that maps each venue’s market to one internal record, plus a normalized schema for prices, books and trades. Building and maintaining that mapping is the largest hidden cost of cross-venue work. Our guides on canonical IDs for cross-venue data and Python prediction market data show how to structure it.

Perspective: why we normalize before we analyze

We built Assymetrix because the same problem showed up in every prediction market project: three venues, three schemas, and months spent reconciling them before any analysis could begin.

Our view is that a venue’s own API is the right tool for trading on that venue, and a poor foundation for research that spans venues. Signals such as Smart Money wallet tracking, Trader Skill Scores and cross-venue arbitrage only mean something when every market, trade and wallet is described in one consistent schema.

That is why our Data API is venue-neutral and built on roughly 1.5 terabytes of historical data covering nearly one billion rows of trading activity. You write against one integration and get normalized data back, instead of maintaining a separate parser for each venue.

Dean

Where the Data API fits

If you are building a tool that reads from Limitless and other venues, our Data API gives developers, quant researchers, bots and AI agents access to cross-venue prediction market data through a single integration. It includes real-time and historical data, normalized market schemas and bulk export, with free and paid tiers and non-commercial tiers for academic researchers. You can see the product overview on the Assymetrix homepage.


Assymetrix

For a deeper look at what a combined feed contains, read our real-time and historical data feed guide.

Common mistakes to avoid

  • Joining on titles. Titles change. Join on stable identifiers.

  • Treating the last trade as the price. On thin markets, use the mid price and check the spread.

  • Ignoring resolution rules. Two markets that look identical can resolve on different criteria, which breaks naive arbitrage.

  • Using floats for money. Use decimals for balances and fills.

  • Mixing authenticated and public clients. Keep the read path separate from the trading path so a bug in analytics cannot place an order.

  • Skipping a local archive. If you need history, start saving now, or use a source that already holds it.

FAQ

Do I need an API key to read Limitless market data?

No. According to the official API reference, public endpoints for browsing markets and reading orderbooks do not require authentication. A scoped API token is needed for authenticated requests such as account actions.

What format are Limitless prices in?

Prediction market prices are probabilities between 0 and 1 per share. CCXT documents the same convention, quoted in USDC per share. Store the value as a decimal and convert to a percentage only when you display it.

Can I use one client for several prediction market venues?

Yes, if you add a normalization layer that maps each venue’s identifiers, statuses and price fields to one schema. Libraries such as CCXT standardize order calls, and a unified data API standardizes the market, trade and wallet data behind your analysis.

Should I poll or stream for live prices?

Stream when you need continuous updates, and poll for periodic reconciliation. Polling fast enough to track a moving book will hit rate limits, while a streaming connection pushes changes as they happen.

Sources

Other Blog