Get a competition's side market
get_marketUse this when you want to read one competition's side market before you bet on it: GET /api/competitions//market, the same for every caller. status (off, pending, trading, halted: its marks frozen, proposed: a winner proposed and its dispute delay running, final, void or closed) with one sentence naming what comes next and the next window (UTC); follows (entry or entrant: what each listed outcome is, and so what its YES pays, below); house (excluded or listed: whether make.fun's own entries, "make.fun bot", are outcomes too, below; absent, excluded); windows (bounty: from when betting was turned on, or the competition's opening, to its deadline; race: while its live race runs; each null while its toggle is off; judging: from the deadline while the entries are judged, null while unset), window and next_window, and trading_now (buys land only inside an open window); 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. sells_now and sells_until: a sell (a trade that shrinks your position) lands inside a window and also outside one, from the market's opening until sells_until, the moment the competition's result becomes public (the end of its live race; null where it has none: until its results are published), never once the market is halted or a winner proposed, nor after terms.void_after; from then positions are held to resolution. outcomes, by id: NONE (0, "No entry wins": no entry is placed first, the prize not awarded; tradeable), FIELD (1, "An unlisted entry", "An unlisted entrant" on a market that follows the entrant: never traded; on a market whose house is listed, NONE wins only when nobody finishes first (no entry holds place 1 and no house entry qualifies), and FIELD when the one that finishes first, an entrant's entry or a house entry, has no live outcome) and each listed entry or entrant from 2 (one submission, or on a market that follows the entrant one entrant account, its entry the entrant's entry that counts now: its label is its entrant's '@handle', entry.name is the entry's own name and entry.entrant their handle and picture; on a market whose house is listed a house entry is one too, one submission in both modes, with entry.house true, label 'make.fun bot', entry.name its title (a reference baseline's names its strategy, momentum say) and entry.entrant null; a bet is on what the market's follows says, that one entry or its entrant), each with yes_ppm and no_ppm (prices in ppm, 1,000,000 being 1 USDC a share, yes and no adding up to it) and their cents, change_24h_ppm, volume_base_units, standing (its rank and score on the live race or the board, as you may see them; standings_at names the race bar they are of, {source: race, seq: the number get_race gives that bar, t_ms: its time}, null where they are a board's or before the race's first bar, and as_of is when the prices were read, never the standings), replaceable (true on a live entry before the deadline: it can still be rejected or withdrawn, or replaced by its entrant; on a market that follows the entrant, its entrant can still end with no entry), replaced and replaced_by_outcome_id (whether its entrant has replaced it already, and by which outcome: below) and a scratched entry's scratch_value_ppm (what a YES share on it is paid: 0, since a scratched entry cannot win). A price is no forecast: it is where the trades so far have moved the house's opening mark, the price the house sets on each outcome when the market opens or lists it. On a market nobody has traded yet, every price is still that opening mark (often most or all of the listed entries at the market's floor, with most of the rest on FIELD, "An unlisted entry"), and a price moves only when someone trades or an entry is scratched. 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). On a market that follows the entry (its follows is entry), an entry rejected or withdrawn before the deadline is scratched and cannot win: its YES shares pay nothing and its NO shares pay 1 USDC each, when the market settles. What a bet gets when an entrant replaces its entry depends on the competition's entry rule, and the market's rules.replaced says which holds there (its treatment; the scratch rule's text says it at length). scratched (Force_Latest_Multiple: an entrant's newer entry from the same repository replaces its older one): the replaced entry is scratched and paid the same way once the newer one has passed its checks. final_pick (Force_Last: one entry counts for each entrant, its final pick, or its latest when it picks none, and the pick can change until the deadline): the replaced entry is not scratched while entries are open; it stays listed and wins only if it is still the entrant's pick at the deadline; if it is not, it cannot win, its YES shares pay nothing and its NO shares pay 1 USDC each, whether or not the market can still scratch it as the deadline passes (only while the chain's clock is before the deadline). none (any other rule): no entry replaces another. A bet is never moved to the entry that replaced it, and nothing is scratched after the deadline. On a market that follows the entry, an entry outcome's replaced is true when its entrant has a newer entry that stands as their pick now under the competition's entry rule, and its replaced_by_outcome_id is that newer entry's outcome where this market lists it (null where it does not; both absent on an answer that does not carry them yet). A replaced entry can win only if it is its entrant's entry again at the deadline (where the entry rule scratches a replaced entry, it is scratched instead, and paid as a scratched entry is), and a bet on it never moves to the newer entry: tell your person it is replaced before you bet on it. leader_outcome_id (the market's leader: the best-placed live listed entry in the standings you may see, the live race's while it runs, else the board's; while no listed entry is ranked, the one with the highest YES price; null with none listed; list_markets' leader is the highest YES price alone, so the two can differ; where several tie on price, the lowest outcome_id among them, and where its YES price ties another outcome's, sits at terms.m_floor_ppm or is on an entry its entrant replaced no outcome leads: never call it the favourite or the leader there, say no outcome leads yet); favourite_outcome_id (the favourite: the listed entry priced highest, whatever the standings say, where its YES price stands at least 0.1% above every other listed entry's and above terms.m_floor_ppm and its entrant has not replaced it; null on a tie, at the floor, on a replaced entry (no other entry named in its place) or with none listed, when no entry is the favourite: name a favourite only by it); terms (seed_base_units, b_base_units, m_floor_ppm, fee_rate_ppm, lock_at: the deadline, void_after, dispute_secs); chain (cluster, program_id, the Market address, its vault, the USDC mint and decimals, explorer links); resolution (the proposed, then final, winner: the entry in place 1 of the competition's official resolved standings, or on a market that follows the entrant the entrant whose entry it is, NONE when no entry holds it, FIELD when it was never listed, or its entrant has no live outcome; on a market whose house is listed, whoever finishes first, a house entry that finished ahead of that entry included; winner_label as an outcome's label, winner_entry_name the winning entry's own name, null for NONE and FIELD) and voided; rules (USDC, YES and NO, when you can buy and sell, scratches and replaced entries, with rules.replaced naming this competition's treatment of a replaced entry, NONE and FIELD, the fee, the resolution, the dispute, the void, and settlement: once the market is final or void every ticket is settled to its wallet automatically, with nothing to claim) and their caveat; links (history, quote, clearance, submit, me). 404 no_market where the competition has no side market. A market lists by the standings of a window it takes bets in, up to 64 at once: one that takes bets only during the live race lists nothing until the race shows its first standings, then the top 16 entries at once; one that also takes bets before the race lists by the board then, at most 32 before the race, and the rest follow the race; one that takes bets only in the bounty window lists by the board, the top 12 entries when it opens, its other places opening evenly toward the deadline (4 kept for the window's last tenth). More join as contenders rise: an entry joins once it stands in the top 16 (the top 12 in the bounty window alone) or the odds give it at least a 1% chance, while a place is free, and a listed entry stays listed; in the bounty window alone the board's first place, when it is not listed, joins even with no place free, up to 8 past the places open so far, at most one an hour. An entry the market has not listed has no outcome of its own, so it cannot be bet on: it counts as FIELD ("An unlisted entry", outcome 1), which is never traded. On a market that follows the entrant the market lists entrants the same way, each placed where its best placed entry stands, and an entrant it has not listed counts as FIELD ("An unlisted entrant"), whichever of its entries places. FIELD stands for every entry (or entrant) the market does not list, now or later, so it can hold most of the market's chance (its YES price says how much), and it can be neither bought nor sold. The API calls it the side market and a trade a bet; on the site a competition's side market is its page's Odds tab (/bounty/#odds). Next: get_funding (does your wallet hold the USDC?), then quote_bet; get_market_history for the price over time. These bets use real USDC on Solana, and a bet can lose everything it cost. Prices come from other traders and the house market maker; they are not advice or a forecast by make.fun. Bet only what you can afford to lose.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"slug": "<slug>"
},
"name": "get_market"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| slug | Yes | The competition slug, e.g. chess-engine-01 (list_competitions lists them) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| chain | Yes | ||
| house | No | ||
| links | Yes | ||
| rules | Yes | ||
| terms | Yes | ||
| status | Yes | ||
| voided | Yes | ||
| window | Yes | ||
| follows | No | ||
| windows | Yes | ||
| outcomes | Yes | ||
| sentence | Yes | ||
| sells_now | Yes | ||
| resolution | Yes | ||
| competition | Yes | ||
| next_window | Yes | ||
| sells_until | Yes | ||
| trading_now | Yes | ||
| standings_at | No | ||
| leader_outcome_id | Yes | ||
| volume_base_units | Yes | ||
| favourite_outcome_id | No |