Events and outcomes
An event is a question. An outcome is a contract you can actually buy, addressed by an opaque ctr_ id. Quotes are always against an outcome, never against an event.
The partner catalogue
markets:read.{id} is the event id or its slug. markets:read.?category= accepts, with a live event count for each. markets:read.{id} is the event id. No credentials, because a browser loads it as an <img>./api/events and /api/markets are the public surface, not your contract
Those routes serve Parity's own site. They page by offset, are not narrowed to your offering, and the contract feed carries upstream identifiers. Build against /api/v1: keyset-paged, scoped to your operator, with opaque ctr_… contract ids.
The model
| Object | What it is | Example |
|---|---|---|
| Event | One question, grouped across sources. What a player browses. | “Fed decision in September?” |
| Outcome | One binary contract belonging to that event, addressed by a ctr_ id. What is traded. | “No change” |
| Side | YES or NO on one outcome. Both sides of every outcome are tradeable. | YES on “No change” |
Swipe the table sideways for more columns.
A binary event has one outcome and the question is answered by which side you take. A multi-answer race has one outcome per answer, each with its own YES and NO. Every contract settles at exactly $1.00 or $0.00.
Event kinds
| kind | Meaning | How to render it |
|---|---|---|
| binary | One outcome. | YES / NO on the question itself. |
| mutually_exclusive | A field of answers, exactly one of which is true. | The leaders, with a “+N more”. Probabilities across the field are comparable. |
| cumulative_ladder | Nested thresholds where one rung implies the next. Every contract on the event points the same way. Check outcome.direction. | Not the two likeliest rungs: on a nested set those are the two loosest (86.5% and 76.5%), nearly the same statement. Preview from the rung priced nearest 50% and at most one more in the same direction. Order the full set by threshold and take the count from outcomeCount. |
| ambiguous | The shape could not be established. That includes a set of thresholds that points both ways, e.g. “dip to $X” beside “reach $Y” under one question. | Show the leaders, never as a complete picture. Where outcomes carry a threshold, group by outcome.direction first: rows pointing opposite ways are two questions, not one range. |
Swipe the table sideways for more columns.
Listing events
| Parameter | Type | Notes |
|---|---|---|
| category | string | One canonical category, from GET /api/v1/categories, which includes sports whenever it has events. An unknown value is 400 invalid_category. |
| sport | string | Narrows inside sports: a sport slug such as nfl or soccer; a family slug covers every competition under it. An unknown value is 400 invalid_sport, and the message lists the sports your offering makes available. |
| league | string | Narrows inside sport: a league slug such as epl. |
| search | string | Free text over the question. |
| sort | string | trending (default), volume, closing-soon, new. volume orders by contracts traded, not by cash |
| dir | string | asc or desc. |
| limit | integer | Default 25, 1 to 100. Outside that range is 400 invalid_limit. |
| locale | string | Opt-in translation: en, es, pt or hr. Anything else, or nothing, is English. See Language below. |
| tradable | boolean | true restricts to events with at least one executable side. |
| closesAfter / closesBefore | ISO-8601 | Window on the close time. An event past its close is never listed, except a sports fixture that is being played. A market still trading after its stated close is listed too, with closesAt null. |
| cursor | string | Opaque. Echo nextCursor from the previous page. |
Swipe the table sideways for more columns.
curl -s "$PARITY_BASE/api/v1/events?category=economy&sort=volume&limit=10" \
-H "Authorization: Bearer $PARITY_KEY"// GET /api/v1/events [Authorization]
import { ParityClient } from './parity-sdk';
const parity = new ParityClient({
baseUrl: process.env.PARITY_BASE!,
apiKey: process.env.PARITY_KEY!,
});
const page = await parity.listEvents({ category: 'economy', sort: 'volume', limit: 10 });import os
import requests
response = requests.get(
f"{os.environ['PARITY_BASE']}/api/v1/events?category=economy&sort=volume&limit=10",
headers={
"Authorization": f"Bearer {os.environ['PARITY_KEY']}",
},
)
print(response.status_code, response.json())using var client = new HttpClient();
var request = new HttpRequestMessage(HttpMethod.Get,
$"{Environment.GetEnvironmentVariable("PARITY_BASE")}/api/v1/events?category=economy&sort=volume&limit=10");
request.Headers.TryAddWithoutValidation("Authorization", $"Bearer {Environment.GetEnvironmentVariable("PARITY_KEY")}");
var response = await client.SendAsync(request);
Console.WriteLine($"{(int)response.StatusCode} {await response.Content.ReadAsStringAsync()}");<?php
$ch = curl_init(getenv('PARITY_BASE') . '/api/v1/events?category=economy&sort=volume&limit=10');
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => [
'Authorization: Bearer ' . getenv('PARITY_KEY'),
],
]);
$response = curl_exec($ch);
echo curl_getinfo($ch, CURLINFO_RESPONSE_CODE), ' ', $response, PHP_EOL;{
"data": [
{
"id": "evt_…",
"slug": "fed-decision-september",
"title": "Fed decision in September?",
"subtitle": null,
"category": "economy",
"categories": ["economy"], // every shelf it sits on; always contains category
"sport": null, // sport slug on a sports event
"league": null,
"eventType": null, // "game" | "future" on a sports event
"liveMatch": null, // score and period of a fixture in play, with observedAt
"imageUrl": "/api/v1/images/evt_…", // a Parity path, not an upstream CDN
"kind": "mutually_exclusive",
"outcomeCount": 5,
"impliedLevel": null,
"impliedLevelLabel": null,
"closesAt": "2026-09-16T00:00:00.000Z",
"opensAt": "2026-06-01T00:00:00.000Z",
"updatedAt": "2026-08-20T04:43:08.322Z",
"volume": 8102934.11, // CONTRACTS traded at the venue. Not dollars
"volume24h": 415244.02, // same count, last 24h
"volumeContracts": 8102934.11, // identical values, unambiguously named
"volume24hContracts": 415244.02,
"status": "open",
"outcomes": [ /* see below */ ]
}
],
"pagination": { "limit": 25, "total": 812, "nextCursor": "…", "hasMore": true }
}Volume is a count of contracts, not a dollar amount
Deprecated: volume, volume24h, volumeContracts and volume24hContracts will be removed on a date announced in the changelog at least 30 days ahead. Do not display them: Parity shows no volume on any surface.
volume and volume24h are the venue’s count of contracts (shares) traded, not notional, and cannot be converted: across live markets the count runs 1.8 to 9.3 times the cash exchanged, depending on price. A share of a 10¢ contract and of a 90¢ one count the same.
Do not show these with a currency symbol. volumeContracts and volume24hContracts carry the same values under names that state the unit; prefer them in new code.
There is no USD volume field, because the market publishes no notional and an estimate would move without any trade. The figure covers all trading on the market, not just your flow or Parity's.
Fields that appear only when they apply
trendingon an event, on a page ranked by activity: ascorefrom 0 to 1, the namedcomponentsbehind it, one or two plainreasons, and thefreshnessof the trade tape it was measured from. Absent everywhere else.jurisdictionat the top level of the list, only for an operator whose jurisdiction mode isenforced:{ "enforced": true, "message": "…" }. This endpoint names no customer, so there is no single catalogue to return anddatamay be empty. That is the same answer a quote would give, not a fault.
The cursor contract
- Paging is keyset, not offset, because events arrive while you page and an offset could push one past the page boundary unseen.
- A cursor is checked against the ordering it was minted under. Replaying a
sort=volumetoken againstsort=newis400 invalid_cursor. Restart from the first page. - A full page always returns a cursor, so the last page is the first short one. You may need one empty request to reach the end.
pagination.totalis the size of the whole filtered set, not what remains after the cursor.
// The SDK hides the cursor loop entirely.
for await (const event of parity.iterateEvents({ category: 'economy', tradable: true })) {
upsert(event);
}The outcome object
{
"id": "ctr_9f31c2…", // QUOTE AGAINST THIS. Opaque; names no venue.
"label": "No change",
"teamLogoUrl": null, // a crest on a team fixture, served from your Parity host
"teamColor": null,
"teamMarks": null, // both clubs of a two-sided match result
"teamAbbr": null,
"probability": 0.715, // reference, 0 to 1
"yesCents": 71.5, // reference, in cents
"noCents": 28.5,
"executableYesCents": 72, // what a BUY costs. null = no usable side
"executableNoCents": 29,
"tradable": true, // executableYesCents !== null || executableNoCents !== null
"tradingClosed": false, // true once trading has stopped, whatever status says
"yesLabel": null, // the venue's word for a side, e.g. "Up". Display only
"noLabel": null,
"sportsMarketType": null, // "moneyline", "totals"... on a sports contract
"spreadCents": 1, // ask − bid. Large means the reference is a poor guide
"priceBasis": "midpoint", // midpoint | last | source | none
"priceUpdatedAt": "2026-08-20T04:43:08.322Z",
"priceFeed": "websocket", // websocket | rest
"status": "open",
"threshold": null, // parsed strike, for ordering a ladder
"direction": null, // "above" | "below" | null. Which side of the strike pays
"volume24h": 415244.02, // CONTRACTS traded at the venue in 24h. Not dollars
"volume24hContracts": 415244.02, // the identical number, unambiguously named
"closesAt": "2026-09-16T00:00:00.000Z"
}The display rule
yesCents is the probability; executableYesCents is the price. A buy takes the ask and a sell takes the bid. Buying NO costs 1 − bid, so both executable fields are published.
A null executable price means Parity has no usable book side: show “no price” and never fall back to the reference, which the fill would not match.
null does not mean untradeable. Ask POST /quotes before disabling anything: the quote is the authoritative price and can price contracts shown as null here.
Up or down crypto and commodity windows are always null here
The recurring up or down crypto contracts, on the 5 minute, 15 minute and 4 hour series (btc, eth, sol, xrp) always report executableYesCents: null, executableNoCents: null, spreadCents: null and tradable: false. They are fully tradeable.
They last minutes and their book can move 50 cents in a minute, faster than any catalogue snapshot. Parity prices them from the live order book at quote time. For these, POST /quotes is the only source of a price, and it is the price you are filled at.
A quote on one stands for 5 seconds and is never re-priced. Past expiresAt the order is refused with 409 quote_expired, and a buy is refused with 409 price_moved when the live book has moved too far by the time the order arrives. Either way, quote again and let the player confirm the new price.
The API publishes no price to beat. A window is quoted from the live book from the first read after it opens. The embed shows the window's price to beat, Parity's reading of the reference price at the start of the window, and offers its sides once that reading is set, normally within a few seconds of the start; until then it shows “Trading opens as prices arrive”. A window whose start Parity could not read is not offered in the embed.
The commodity up or down windows, on Gold, Silver, Crude Oil (WTI), Brent Crude and Natural Gas, each on a 15 minute and a 1 hour window, report the same nulls and tradable: false, because their stored price is never published as executable. They are fully tradeable on the same rules as the crypto windows: POST /quotes prices them from the live book, a quote stands for 5 seconds, and an order is refused with 409 quote_expired or 409 price_moved as above.
The 5 minute, 15 minute and 4 hour up or down windows are offered only for BTC, ETH, SOL and XRP, and the commodity windows only on an account that has them enabled, from a window's start to its end. No up or down window, hourly or daily included, is offered before it opens. A window held back by any of these rules is left out of every list, answers 404 unknown_event on GET /events/{id}, and is refused at the quote with 422 market_not_open. A window appears on the first read after it opens.
Read direction with threshold
direction says which side of threshold a contract pays on: "above" for “will it reach $X”, "below" for “will it dip to $X”, and null where nothing states one: a date threshold, a candidate, a bucket.
threshold alone is not enough to group, sort or preview a set. One event often has both: “What price will Bitcoin hit in August?” asks whether the price falls to $80,000 and whether it rises to $80,000. Same strike, opposite propositions. Group by direction first, then by threshold.
Read this field instead of parsing the label. It is derived from the contract’s own question; many labels are a bare "80,000" with nothing to parse.
null means unknown, not "above". Do not show an undirected contract beside directed ones.
- Filter a “what can I offer” list on
tradable, never onyesCents !== null, which is true on almost every contract. - A crossed book (ask at or below bid) is bad data, so both sides are discarded and the outcome reads as untradable.
- Prices of exactly 0 or 1 are settled, not tradeable, and are never published.
Fields on an outcome that appear only when they apply
Each of these is absent, not false or null, on an outcome it does not describe, so test for its presence.
| Field | Meaning |
|---|---|
tradingPaused | Present, and true, only beside tradingClosed: true, when the contract’s window is still open and trading stopped only because the venue stopped taking orders, which it can lift. A paused contract can reopen while its window is open; until it does, a quote on it is refused with 422 market_not_open. tradingClosed: true without tradingPaused means the contract is decided, and it never reopens. |
tradingWindowEnd | Present only beside tradingPaused, and only where the window has an end: the ISO-8601 instant it closes. A pause cannot outlast it. After it the contract is closed, whatever its price says. |
buysPaused | Present, and true, only when the match is postponed and its stated start has passed. New buys are refused (409 market_paused on a quote, market_unavailable on an order) and both executable prices are null; selling an existing position is unaffected. Buying reopens by itself once a new start is published, which can take weeks. The price stream does not carry this flag, so read it here to label the contract. |
priceSuspended | Present, and true, only when Parity’s copy of the price is too old to trade at any size. It clears once the price catches up; until then a quote is refused with 409 price_stale. |
combo | Optional, and not published today. It appears only once the combo endpoints are enabled for your operator, and then only on a contract that can be a combo leg. Absent everywhere else. See Combos (optional). |
venueFeeRate | The execution fee rate for this contract, as a fraction, where one is recorded. It differs between contracts, so a payout estimate reads it per contract. The quote is always the authoritative figure. |
matchResult | Present, and true, only on a contract whose two sides are the fixture’s two competitors. |
fixtureResult | Present, and true, only on the contract that settles the fixture itself, as opposed to a set, map or game winner between the same two sides. |
twoWay | Present, and true, only when this one contract holds both competitors: YES is the fixture’s first side and NO its second. Read it with fixtureResult before drawing a result as two rows from one contract. |
Swipe the table sideways for more columns.
Contract ids
A contract is addressed only by its opaque ctr_… id. It is the id /api/v1/events publishes, the id you post to /api/v1/quotes, and the id you read back on an order, a position and a settlement. There is no second identifier.
- It names no venue and carries no upstream identifier.
- An event id (
evt_…) is not a contract id. You browse by event and trade by contract. imageUrlis a Parity path,/api/v1/images/{eventId}, and the bytes are proxied rather than redirected. Prefix it with your issued host. The SDK hasparity.imageUrl(event).
Structured descriptor
Every outcome on GET /api/v1/events and GET /api/v1/events/{id} carries descriptor: what the contract is, as fields you can map without parsing a title. The game, the competition, the two sides, the kind of market, the period, the line and both selections.
- Every field is read from data Parity stores. Where it is not known the field is
null, never a guess. No field names the source of a price and none carries a URL. - The same object, with the traded
selectionadded, is on theorder.filled,order.completed,order.intent_recordedandposition.settledwebhooks.
| Field | Meaning |
|---|---|
eventId | The event the contract is listed on. |
fixtureId | The game: the fixture’s own event id, also on a contract listed under one of its extra books (player props, exact score). Null outside a game. Group a game’s markets by it. |
sport, league | Each a code and a name. Null outside sport. |
startsAt | The scheduled start of the game, not the contract’s close. Null outside a game, or when no start was published. |
participants | The two sides in the order the game’s title names them, each with a full name, the title’s short name and an upper case abbreviation. The order does not say who is at home. The id is always null. |
marketType | One of a closed list, below. |
period | A code and a name: FG for the full game, 1H, 2H, Q1 to Q4, P1, I1, F5 for the first five innings, S1, G1, M1, R1. Null outside a game. |
line | The spread (the YES side’s number), the total, or the over and under number of a prop. Null elsewhere. |
player | The person a player prop is about. Null on every other market. |
selections | YES and NO, each with a selectionId (the contract id plus :yes or :no, stable for the life of the contract) and the label a ticket prints. |
Swipe the table sideways for more columns.
| marketType | What it is |
|---|---|
moneyline | Who wins the game or a period of it, or one club’s contract in a three way result, and its draw. |
spread | A handicap on the winning margin. |
total | The game’s combined count, over or under the line. |
team_total | One club’s count, over or under the line. |
player_prop | A market about one person. |
team_prop | Any other market about one club. |
game_prop | Any other market on a game. |
outright | One of several exclusive answers outside a game. |
binary | A single yes or no question outside a game. |
Swipe the table sideways for more columns.
Moneyline
{
"eventId": "evt_4c62de03aa3e",
"eventTitle": "Patriots vs. Bears",
"fixtureId": "evt_4c62de03aa3e",
"category": "sports",
"sport": {
"code": "nfl",
"name": "NFL Football"
},
"league": {
"code": "nfl",
"name": "NFL"
},
"startsAt": "2026-10-23T00:15:00.000Z",
"participants": [
{
"id": null,
"name": "New England Patriots",
"shortName": "Patriots",
"abbreviation": "NE"
},
{
"id": null,
"name": "Chicago Bears",
"shortName": "Bears",
"abbreviation": "CHI"
}
],
"marketType": "moneyline",
"marketLabel": "Patriots vs. Bears",
"sportsMarketType": "moneyline",
"period": {
"code": "FG",
"name": "Full Game"
},
"line": null,
"player": null,
"selections": {
"yes": {
"selectionId": "ctr_753564b3291bcd92:yes",
"side": "yes",
"label": "Patriots"
},
"no": {
"selectionId": "ctr_753564b3291bcd92:no",
"side": "no",
"label": "Bears"
}
}
}Spread
{
"eventId": "evt_4c62de03aa3e",
"eventTitle": "Patriots vs. Bears",
"fixtureId": "evt_4c62de03aa3e",
"category": "sports",
"sport": {
"code": "nfl",
"name": "NFL Football"
},
"league": {
"code": "nfl",
"name": "NFL"
},
"startsAt": "2026-10-23T00:15:00.000Z",
"participants": [
{
"id": null,
"name": "New England Patriots",
"shortName": "Patriots",
"abbreviation": "NE"
},
{
"id": null,
"name": "Chicago Bears",
"shortName": "Bears",
"abbreviation": "CHI"
}
],
"marketType": "spread",
"marketLabel": "Spread -3.5",
"sportsMarketType": "spreads",
"period": {
"code": "FG",
"name": "Full Game"
},
"line": -3.5,
"player": null,
"selections": {
"yes": {
"selectionId": "ctr_cccad008224c55d3:yes",
"side": "yes",
"label": "Bears -3.5"
},
"no": {
"selectionId": "ctr_cccad008224c55d3:no",
"side": "no",
"label": "Patriots +3.5"
}
}
}Total
{
"eventId": "evt_4c62de03aa3e",
"eventTitle": "Patriots vs. Bears",
"fixtureId": "evt_4c62de03aa3e",
"category": "sports",
"sport": {
"code": "nfl",
"name": "NFL Football"
},
"league": {
"code": "nfl",
"name": "NFL"
},
"startsAt": "2026-10-23T00:15:00.000Z",
"participants": [
{
"id": null,
"name": "New England Patriots",
"shortName": "Patriots",
"abbreviation": "NE"
},
{
"id": null,
"name": "Chicago Bears",
"shortName": "Bears",
"abbreviation": "CHI"
}
],
"marketType": "total",
"marketLabel": "O/U 46.5",
"sportsMarketType": "totals",
"period": {
"code": "FG",
"name": "Full Game"
},
"line": 46.5,
"player": null,
"selections": {
"yes": {
"selectionId": "ctr_97ecdee3b2809a02:yes",
"side": "yes",
"label": "Over 46.5"
},
"no": {
"selectionId": "ctr_97ecdee3b2809a02:no",
"side": "no",
"label": "Under 46.5"
}
}
}Player prop
{
"eventId": "evt_ef0acf65bb4f",
"eventTitle": "Chargers vs. Chiefs - Player Props",
"fixtureId": "evt_71821e48da0a",
"category": "sports",
"sport": {
"code": "nfl",
"name": "NFL Football"
},
"league": {
"code": "nfl",
"name": "NFL"
},
"startsAt": "2026-10-18T20:25:00.000Z",
"participants": [
{
"id": null,
"name": "Los Angeles Chargers",
"shortName": "Chargers",
"abbreviation": "LAC"
},
{
"id": null,
"name": "Kansas City Chiefs",
"shortName": "Chiefs",
"abbreviation": "KC"
}
],
"marketType": "player_prop",
"marketLabel": "Justin Herbert: Passing Yards O/U 199.5",
"sportsMarketType": "passing_yards",
"period": {
"code": "FG",
"name": "Full Game"
},
"line": 199.5,
"player": {
"id": null,
"name": "Justin Herbert"
},
"selections": {
"yes": {
"selectionId": "ctr_10ffa3f197168984:yes",
"side": "yes",
"label": "Over 199.5"
},
"no": {
"selectionId": "ctr_10ffa3f197168984:no",
"side": "no",
"label": "Under 199.5"
}
}
}Politics
{
"eventId": "evt_a483658cc3cc",
"eventTitle": "Serbia parliament dissolved by…?",
"fixtureId": null,
"category": "politics",
"sport": null,
"league": null,
"startsAt": null,
"participants": null,
"marketType": "binary",
"marketLabel": "December 31",
"sportsMarketType": null,
"period": null,
"line": null,
"player": null,
"selections": {
"yes": {
"selectionId": "ctr_e13c47cd809d3d02:yes",
"side": "yes",
"label": "Yes"
},
"no": {
"selectionId": "ctr_e13c47cd809d3d02:no",
"side": "no",
"label": "No"
}
}
}Change feed
Add updated_since (ISO 8601) to GET /api/v1/events and it answers what changed instead of everything again: every contract whose status, result, catalogue fields or price changed at or after that instant, oldest change first.
{
"data": [
{ "id": "evt_…", "outcomes": [ { "id": "ctr_…", "changedAt": "2026-10-21T19:45:48.729829Z", "descriptor": { } } ] }
],
"closed": [
{ "contractId": "ctr_…", "eventId": "evt_…", "reason": "not_open", "status": "resolved", "resolution": "NO", "closesAt": "2026-10-21T18:00:00.000Z", "changedAt": "2026-10-21T19:45:49.104211Z", "descriptor": { } }
],
"pagination": { "limit": 100, "nextCursor": "…", "hasMore": true },
"changes": { "updatedSince": "2026-10-21T19:40:00.000Z", "serverTime": "2026-10-21T19:46:02.551930Z" }
}dataholds every open contract of a listed event that changed, grouped by event, each event carrying only its changed contracts. That is every changed contract of the event, not only the six per event the list previews. Update them by contract id.closedlists the contracts to remove, bycontractId, with areason:not_openwhen the contract closed, resolved or was voided, andunlistedwhen it is still open but off the list (past its close outside play, curated out, its event moved off the shelf, sport or league you asked for, or withdrawn from your operator's offering). Remove both, and settle by the result.- A removal can name a contract you never held: ignore an id you do not know. The removal of a contract withdrawn from your operator's offering names only
contractId,eventId,status,reasonandchangedAt: itsdescriptor,resolutionandclosesAtare null. - A change is a new status or result, a catalogue field, or a price (reference, best bid, best ask). Volume is not, nor the age of a price, nor the passing of a close: those are a matter of time and write nothing, so always quote before you offer. An edit to the event itself (a new title, a team's record) can change a descriptor without a new
changedAt, which the daily full sync below catches. limitcounts contracts here, 1 to 500, default 100.category,sport,leagueandlocalework as on the list.sort,dir,search,tradable,closesAfter,closesBeforeandbookare refused with400 invalid_parameter.- A page can be short, or empty, while
hasMoreis true. Keep paging withcursoruntilhasMoreis false. Each pass is bounded: its first page fixeschanges.serverTime, every page of the pass returns the same value, andhasMoreturns false at the end of that window, so paging always finishes.
Polling
- Sync in full and note the time you started (T0): page the plain list, then read each event's full set of outcomes with
GET /api/v1/events/{id}, because the list previews at most six per event. Or add outcomes as they arrive from the feed. - Poll with
updated_sinceset to T0 minus 30 seconds, and page to the end. - Take the next poll from that pass's
changes.serverTimeminus 30 seconds. Keep an overlap of at least 10 seconds (30 recommended): a contract can come back twice, which is harmless when you update by id. - Sync in full once a day as a backstop, and again whenever your own offering changes: a change to your offering writes no change.
- An
updated_sinceearlier than the start of the change feed is400 updated_since_too_old: sync in full instead. - An
updated_sincethat is not ISO 8601 is400 invalid_date, a cursor the change feed did not issue is400 invalid_cursor(restart fromupdated_since), and503 change_feed_unavailablemeans the feed is not available yet: retry shortly.
One event, every outcome
The list caps outcomes per event. The detail route returns the whole set, for a ladder or a long field of candidates. It accepts the evt_… id or the slug.
curl -s "$PARITY_BASE/api/v1/events/fed-decision-september" \
-H "Authorization: Bearer $PARITY_KEY"
# → { "data": { …, "outcomes": [ … ] } }// GET /api/v1/events/fed-decision-september [Authorization]
import { ParityClient } from './parity-sdk';
const parity = new ParityClient({
baseUrl: process.env.PARITY_BASE!,
apiKey: process.env.PARITY_KEY!,
});
const event = await parity.getEvent('fed-decision-september');import os
import requests
response = requests.get(
f"{os.environ['PARITY_BASE']}/api/v1/events/fed-decision-september",
headers={
"Authorization": f"Bearer {os.environ['PARITY_KEY']}",
},
)
print(response.status_code, response.json())using var client = new HttpClient();
var request = new HttpRequestMessage(HttpMethod.Get,
$"{Environment.GetEnvironmentVariable("PARITY_BASE")}/api/v1/events/fed-decision-september");
request.Headers.TryAddWithoutValidation("Authorization", $"Bearer {Environment.GetEnvironmentVariable("PARITY_KEY")}");
var response = await client.SendAsync(request);
Console.WriteLine($"{(int)response.StatusCode} {await response.Content.ReadAsStringAsync()}");<?php
$ch = curl_init(getenv('PARITY_BASE') . '/api/v1/events/fed-decision-september');
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => [
'Authorization: Bearer ' . getenv('PARITY_KEY'),
],
]);
$response = curl_exec($ch);
echo curl_getinfo($ch, CURLINFO_RESPONSE_CODE), ' ', $response, PHP_EOL;An event your operator is not offered returns 404 unknown_event, because it is not in your catalogue.
A contract on a settlement protocol Parity does not trade for your account may be withdrawn from your offering or may still be listed. Either way a quote or order against it is refused (409 market_paused on a quote, 422 market_unavailable on an order, both with the detail “This market is not available to trade yet.”), or with 422 market_not_open once its status changes. Treat the refusal, not the listing, as the answer. Positions already held stay open and settle when it resolves.
Categories
{
"data": [
{ "category": "politics", "label": "Politics", "eventCount": 412 },
{ "category": "economy", "label": "Economy", "eventCount": 188 }
],
"totalEvents": 600
}- Counted over events, under your offering policy, with the same filter as the list endpoint, so a tab that says 188 returns 188.
- Only categories with events are returned.
- Ordered canonically, not by count, so a nav does not reshuffle as volume moves.
sportsis an ordinary category: it is listed whenever it has events, and?category=sportsreturns them. Narrow inside it withsportandleague.
Language
The catalogue is English unless you ask. Send ?locale=es, pt or hr on GET /api/v1/events or GET /api/v1/events/{id} and the human text (the event title and outcome label) comes back translated where a translation exists: the source's own published translation first, then a machine translation Parity holds, then the original.
- Where a string was translated, the original travels beside it as
sourceTitleon the event andsourceLabelon the outcome. Printtitle; parsesourceTitle. Both are absent (not null) where nothing was changed. In English,sourceLabelappears only on a draw row shortened because the event title already names the fixture. - Ids, ordering, cursors, prices and
tradableare the same in every language. - A locale outside the four is treated as English, not refused. Tags are matched exactly, so send
pt, notpt-BR.