List side markets
list_marketsUse this when you want to find side bets to make. The competitions' side markets trading now or with a trading window still ahead (GET /api/markets), soonest deadline first: each with its competition (slug, title, status, deadline), status (off: betting is turned on and the operator has yet to open the market on chain; pending; trading), follows (entry or entrant: what each listed outcome is, below), house (excluded or listed: whether make.fun's own entries, "make.fun bot", are outcomes too, below; absent, excluded), trading_now (a window is open now: buys land only inside one), sells_now and sells_until (a holder can sell now, inside a window or between windows, until sells_until, the moment the competition's result is public; null: no live race, until its results are published), window (the one open now) and next_window (the next to open), each {kind: bounty, race or judging, from, until}, leader (the live listed entry with the highest YES price, the lowest outcome_id among a tie: outcome_id, label, which is its entrant's '@handle' (on a house entry 'make.fun bot', with house true and no entrant), entrant, their handle and picture, yes_ppm, yes_cents; get_market's entry.name is the entry's own name, and a bet is on what the market's follows says, that one entry or its entrant; a price is not a ranking: where its YES price ties another outcome's or sits at the market's floor, get_market's terms.m_floor_ppm, or its entrant has replaced that entry (get_market's replaced), no outcome leads, so never call it the favourite there), leader_leads (true only where that entry really leads: its YES price at least 0.1% above every other listed entry's and above the floor, and its entrant has not replaced it; false on a tie, at the floor or on a replaced entry, and no other entry is named in its place: name a favourite only when it is true), entries (how many entries, or entrants on a market that follows the entrant, are listed and live), volume_base_units and market (its route). A side market is a competition's market in real USDC on Solana, one YES/NO pair per listed outcome: a YES share pays 1 USDC if that outcome wins the competition, a NO share 1 USDC if it does not. A market's follows says what each listed outcome is and so what its YES pays: entry, one entry, whose YES pays 1 USDC a share only if that entry holds place 1 of the competition's official resolved standings (an entrant's newer entry is an outcome of its own); entrant, one entrant account, whose YES pays 1 USDC a share if the entry in place 1 is any entry of that entrant, the outcome's entry being the entrant's entry that counts now (it can change between two reads of one outcome), and a newer entry takes no new outcome and scratches nothing (an answer without follows is a market that follows the entry). On a market that follows the entrant replaced is never true and replaced_by_outcome_id is always null. A market's house says whether make.fun's own entries (its house entries and reference baselines, "make.fun bot") are outcomes: excluded, none is, and the market pays as the official resolved standings place the entrants (an answer without house is an excluded market); listed, each is an outcome of its own and the market pays whoever finishes first in the official results, a house entry included, so the entry that takes the 1st-place reward can lose this market to a house entry that finished ahead of it, though a house entry takes no place and no reward. A house entry's outcome has entry.house true, label "make.fun bot" and no entrant (entry.entrant null). A competition's own answer names its market too (get_competition's side_bets: its windows, status and trading_now; null where it has none). On a market with bounty betting and neither race betting nor a live race, buying does not stop at the deadline: the judging window (windows.judging, a window of kind judging) follows the bounty window with no gap, keeps buying open while the entries are judged and closes at least 10 minutes before the results are published, or sooner: once the results are public, the competition is withdrawn or bounty betting is turned off, and, on a competition the house judge ranks, once its Swiss rounds are over. Its until is never set ahead: it is extended a few minutes at a time while judging runs, so buying stops early if that pauses; read trading_now for whether a buy lands now. No entry is newly listed from the deadline on: buying goes on in the entries already listed and in NONE. Nothing is scratched from the deadline on, so an entry rejected while the entries are judged stays listed and can still be bought, but it cannot win: its YES shares pay nothing and its NO shares pay 1 USDC each. While betting is paused no row takes a buy (trading_now false, window and next_window null; a buy is refused 409 betting_paused), and while it is close-only the list is instead every market whose sells are open (sells_now true), so you find a position to sell or close. Read one with get_market. Paged: pass next_cursor back as cursor.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "list_markets"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Page size, 1 to 200 (default 50) | |
| cursor | No | The previous page's next_cursor, for the next page (keep the other arguments the same) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| items | Yes | ||
| next_cursor | Yes |