Skip to main content
GET
Error

Authorizations

Authorization
string
header
required

A Lean API key, sent as Authorization: Bearer <key>. A test key (lean_sk_test_...) simulates orders and fills with no money; a live key (lean_sk_live_...) trades for real within the key's limits. Every successful response says which mode answered in data.livemode.

Query Parameters

symbol
string

Look up the markets one venue symbol trades: a leg ticker (pm:…, hl:…, pmus:…, lt:… or a Kalshi market ticker), a Polymarket condition id or token id, or a Hyperliquid book coin (#…). The start window, cursor and other filters except venue do not apply.

Required string length: 1 - 200

Words matched the way the Lean app search matches them: every word against Kalshi, Polymarket, Polymarket US and Hyperliquid market and event titles in any letter case, the last word as a prefix, with common team nicknames and small typos tried when few markets match. Only markets with a leg that matches are listed, in the usual start order, and the other filters and cursor apply as without it. A search covers the venue markets of the fixtures in the start window, at most 10,000 matching ones, open ones first and then by start, so narrow broad words with league, sport or the start window. To list a whole league, use league. With kind=event, every word must match a whole word of the open venue market title, its event title or its outcome names, in any letter case, the last word as a prefix, so rain finds Rain and Rainfall but not Ukraine; no nicknames or near spellings are tried.

Required string length: 1 - 100
kind
enum<string>

sports: one outcome of a fixture proposition, with a leg on each venue that lists it. time_window: one outcome of a crypto price window. event: one side of a single Polymarket, Polymarket US, Hyperliquid or Kalshi market that no fixture lists and that is no Kalshi parlay, such as an election or a company result. Defaults to time_window with category=crypto or venue=lighter, to event with any category but sports and crypto, else to sports.

Available options:
sports,
time_window,
event
category
enum<string>

The topic listed. sports lists fixture markets. crypto without kind lists only Lighter crypto price windows, so with another venue it lists an empty page unless kind=event is passed. Every other category lists event markets. An event market lists as crypto when it is a coin-price market (Polymarket tagged crypto-prices, or crypto and hit-price; a Hyperliquid outcome tagged asset:<coin> for a Hyperliquid coin), whatever its taxonomy; otherwise as the first root of its Lean taxonomy, else the category Kalshi files it under, else uncategorized. Defaults to sports, or to crypto with venue=lighter. A crypto window listing takes the start window, status, venue, limit and cursor; an event listing takes search, venue, status, the end window, limit and cursor; filters that do not apply are refused.

Available options:
sports,
crypto,
politics,
economy,
business,
entertainment,
science,
society,
climate,
commodities,
transportation,
gaming,
health,
law,
uncategorized
sport
string

Only fixtures of this sport, such as football.

Required string length: 1 - 32
league
string

Only fixtures of this league. Coverage includes international basketball (euroleague, eurocup), hockey (khl, shl, del, ahl, liiga), soccer and other sports.

Required string length: 1 - 32
Example:

"nfl"

group_kind
enum<string>

Sports listings only: only propositions of this group.kind, such as moneyline, spread, total, team_total or prop (which includes sports.player_prop markets).

Available options:
moneyline,
spread,
total,
team_total,
prop
fixture
string

Only markets of this fixture, by its exact fixture.key. The start window still applies, so a fixture that starts outside it lists nothing.

Required string length: 1 - 512
group
string

Only markets of propositions with this exact group.key, such as moneyline:game. With fixture, lists one proposition of one fixture; without it, that proposition in every fixture the other filters keep.

Required string length: 1 - 200
venue
enum<string>

Only markets with a leg on this venue.

Available options:
kalshi,
polymarket,
polymarket_us,
hyperliquid,
lighter
event
string

Event markets only: list all markets/strikes belonging to this exact event ticker.

Required string length: 1 - 200
series
string

Event markets only: list markets belonging to this exact series ticker (e.g. KXFAOFPI).

Required string length: 1 - 200
sort
enum<string>

Event markets only. ending_soon (default): soonest scheduled close first. newest: most recently listed markets first. overdue: open markets past their scheduled end_date, oldest overdue first.

Available options:
ending_soon,
newest,
overdue
include_combos
enum<string>

Event markets only: when "true", include Kalshi multivariate combo markets (KXMVE*) in listings. Defaults to "false". Any combo ticker still resolves directly by id or symbol.

Available options:
true,
false
include_closed
enum<string>

Event listings only. With true and no status, include every venue status and untradable markets; with status=closed, include only untradable markets. Requires an end window of at most 30 days, starting no more than 30 days ago. Omitted ends_after defaults to 48 hours ago; omitted ends_before defaults to 30 days after ends_after. The default window is retained by the cursor. Does not apply to symbol lookups.

Available options:
true,
false
status
enum<string>

open: tradable open markets. closed: closed, resolving or unopened markets. resolved: settled event markets (useful for backtesting/history). all: every status (event markets only).

Available options:
open,
closed,
resolved,
all
starts_after
string<date-time>

Only fixtures, or crypto windows, starting at or after this time. Defaults to 12 hours ago.

starts_before
string<date-time>

Only fixtures, or crypto windows, starting before this time. Defaults to 30 days ahead, so season futures such as a championship final are listed only when this is set past their start. Their market ids resolve at any time.

ends_after
string<date-time>

Event markets only: only venue markets scheduled to close at or after this time. Defaults to 48 hours ago, so a market still trading after its scheduled close stays listed.

ends_before
string<date-time>

Event markets only: only venue markets scheduled to close before this time. With include_closed=true, defaults to 30 days after ends_after and the window must be at most 30 days.

limit
integer
default:50
Required range: 1 <= x <= 200
cursor
string

The next_cursor of the previous page. An event listing refuses a cursor issued for another category, venue, search, ends_after, ends_before, include_closed or closed-status filter.

Required string length: 1 - 512

Response

Canonical markets with their venue legs

success
enum<boolean>
required
Available options:
true
data
object
required
meta
object
required