Skip to content

OverviewCore concepts

The sports screen is a price comparison grid: game → bet type → period → line → selection → one price per venue. It groups quotes for the same selection and exact line. A venue without that line has an empty cell; it never supplies its nearest line instead.

The screen and catalog routes in the table below are live and metered. Fixture price history is not available by default, as described below. The screen and catalog routes can still be unavailable for your account; their calls then return 404 ROUTE_NOT_FOUND and are not charged. The screen can be unavailable while the other sports routes answer.

Check error.code, not just HTTP status. SPORTS_FIXTURE_NOT_FOUND means the fixture is absent from the current mirror. SPORTS_BLOCK_NOT_FOUND means that fixture has no block for the requested bet type, period or team slot. Neither means the sports surface is unavailable. 503 SPORTS_SCREEN_UNAVAILABLE is retryable when the mirror is loading or the fixture changed during the read.

Clients never retry a sports 404, replace it with an empty list, probe availability at startup or cache an unavailable result. TypeScript and Python preserve the typed NotFoundError and its code. MCP and the Node CLI’s human output add an availability hint; Node CLI --json preserves the raw error envelope, and the Python CLI prints the SDK error unchanged. A subsequent call can succeed once the route is enabled for your account.

All routes below use GET. Use fixture ids returned by the API for {fixtureId}.

REST routeTypeScript SDKPython SDKMCPCLI
/v1/sports/launchesfetchSportsLaunchesfetch_sports_launchesget_sports_launchespredictefy sports launches
/v1/sports/facetsfetchSportsFacetsfetch_sports_facetsget_sports_facets with kind=cascadepredictefy sports facets
/v1/sports/screenfetchSportsScreenfetch_sports_screenget_sports_screenpredictefy sports screen
/v1/sports/competitionsfetchSportsCompetitionsfetch_sports_competitionsget_sports_facets with kind=competitionspredictefy sports competitions
/v1/sports/teamsfetchSportsTeamsfetch_sports_teamsget_sports_facets with kind=teamspredictefy sports teams [query]
/v1/sports/fixturesfetchSportsFixturesfetch_sports_fixturesget_fixturespredictefy sports fixtures
/v1/sports/fixtures/{fixtureId}fetchSportsFixturefetch_sports_fixtureget_fixturepredictefy sports fixture <fixtureId>
/v1/sports/fixtures/{fixtureId}/comparecompareFixturePricescompare_fixture_pricescompare_fixture_pricespredictefy sports compare <fixtureId>

The launch tool and command are included in @predictefy/mcp and @predictefy/cli 1.0.0-beta.12 and later.

Start with competitions, then request facets for a competition to discover bet types, periods and lines. Facets include inactive and non-screenable types. MCP’s cascade requires competition; use kind=competitions to find an id first. Facets accept sport and competition, with no from or to window. Team search uses q in REST and the SDKs, query in MCP, and the CLI’s positional query.

The screen supports moneyline, match_result, spread, total, team_total, btts and halftime_result. Select a marketType, period and, for team_total, a lineTeam of team1 or team2. The screen’s line selects an exact line. Compare returns all available lines in ascending order; its clients expose no line filter.

Fixture listings return identity and block availability in markets, with market: null. Fixture detail returns identity and full market blocks. Compare returns market blocks; the screen returns fixture rows with the selected market or market: null.

TypeScript returns data with .meta attached, including on arrays. Python returns lists as PageList with .meta; facets and fixture detail keep the full response envelope. Screen and fixture lists also carry paging metadata. Read the TypeScript, Python, MCP and CLI guides for client setup.

Each cell identifies its venue, marketId, outcomeId and selection. Prices carry probability, american and decimal representations computed by the server.

FieldMeaning
grossAsk price before fees, or null. grossReason explains a missing price: no_asks, book_unavailable, synthetic_book or market_not_open.
netPrice including the venue’s known fees, or null when it cannot be supplied.
feeUnknownWhen true, net is always null. Never show a net price in this case. A displayed gross price must be labelled as gross with unknown fees.
feeBpsFee adjustment in basis points, or null when unknown.
sizeAtPriceAvailable size at the quoted price, or null when unavailable. It does not promise depth for a larger order.
asOfThe source quote clock, or null. It is not a fresh confirmation just because the response arrived now.
staleWhether the quote is stale under the fixture’s freshness tier. A stale cell cannot win best.
sourcelive or catalog. A catalog cell cannot win best.

An empty cell is absent, never zero. Preserve missing prices as null or an absent display value. Do not turn them into a zero probability, zero odds or zero available size. Use the returned prices and calculations; clients do not convert odds or compute their own replacement calculations.

best, avg, fair, edge and hold below are Predictefy’s own definitions. They describe this price comparison and do not guarantee execution or a return.

FieldPredictefy’s own definition
bestThe lowest eligible live, non-stale ask probability including known fees. Catalog and stale cells never win. An unknown-fee cell ranks on gross, keeps net: null and sets edgeOnGross: true. This does not promise a verified all-in execution cost.
avgWeighted mean of gross implied probabilities across eligible venues. By default, all live, non-stale venues have equal weight, including the best venue. Vig is not removed. avgVenues selects the averaging venues; avgWeights supplies relative integer weights from 0 to 10, with 0 excluding a venue.
fairPredictefy’s own no-vig probability: normalize the averages of every selection in the block to sum to 1. If any selection lacks an average, all fair prices in the block are null.
edgePredictefy’s own ratio: fair probability divided by the best comparable probability, minus 1. It may be negative. It is null when fair or best is unavailable. The denominator uses net when known, or gross with edgeOnGross: true when fees are unknown.
holdPredictefy’s own sum of selection probabilities minus 1. average uses the selection averages; byVenue uses each venue’s eligible gross prices. An incomplete selection set has no computed hold: the average is null or the venue entry is absent.

These definitions are computed by the server. Preserve edgeOnGross when displaying Predictefy’s own edge so an unknown-fee comparison cannot look fee-adjusted.

Use meta.freshness on screen, fixture-list, fixture-detail and compare responses. Its thresholds are milliseconds:

TierThresholdApplied when
live30 seconds (30000)Exact kickoff has passed or is within two hours.
day2 minutes (120000)Exact kickoff is within 24 hours, outside the live tier.
week20 minutes (1200000)Exact kickoff is further away.

A date-only fixture uses the week tier before its event date, then the day tier. Inspect each cell’s asOf and stale alongside these thresholds.

meta.degraded: true means the response is degraded and some cells may come from an older snapshot. Show that state and meta.degradedReason; do not imply every cell is fresh. A screen row with degradedReason: 'snapshot_unavailable' has an unavailable block, which remains market: null. meta.unplaced records reasons some selections could not be placed in the grid. Missing facets can return sports: [] with facets_unavailable in metadata; that is different from a route-not-found error.

Screen and fixture lists use keyset pagination. Pass the returned nextCursor as cursor on the next call, retaining the same filters. The wire sends nextCursor: null at the end. TypeScript omits the top-level cursor at the end while preserving page.nextCursor: null; Python exposes .next_cursor as None. Stop when the cursor is null or absent.

The default window runs from 12 hours before now to 7 days after now. from and to can narrow it; the maximum span is 31 days. Use YYYY-MM-DD or an ISO timestamp with seconds and a timezone offset. Python calls the lower bound from_ and accepts a date or timezone-aware datetime too. Epoch numbers and offset-less timestamps are refused.

REST pages default to 50 rows and accept limit from 1 to 200. Each venue list is capped at 16 venues. Use venues for screen and compare display columns, avgVenues and avgWeights for averaging. Fixture lists instead take a single venue; in the CLI this is the global --venue option. Screen and compare use --venues.

MCP defaults to 5 screen rows, capped at 25, and 20 fixture rows, capped at 100. If its payload is truncated, lower limit or request fewer venues. A cursorWithheld note means the payload budget dropped rows and the cursor was withheld to avoid skipping them. Repeat with a smaller request; do not treat that payload as a complete page.

Catalog identity is Predictefy’s grouping of venue markets. home, away and kickoffAt are null when no source states them. Do not infer home/away from team order or invent a kickoff time from eventDate; kickoffPrecision: 'date' preserves that distinction.

final means our keyed markets closed. A fixture listing is not a settlement claim. It does not independently verify an official outcome. postponed and cancelled are reported only when a source states them.

For either postponed or cancelled, the fixture stays listed without prices:

  • The screen row keeps its status and returns market: null.
  • Fixture detail keeps data.status and returns markets: [].
  • Compare returns data: [].
  • The fixture stream sends no priced blocks in snapshots or deltas. An empty snapshot clears prices already held by subscribers when either status takes effect.

Suppressed block clocks do not contribute to REST meta.asOf. Screen responses use the oldest remaining served block clock, or the index refresh clock if none remain. Status-only detail and compare responses use the index refresh clock.

When the fixture returns to scheduled, these surfaces can serve retained prices again. The stream reloads retained blocks and restores prices in its next snapshot, even without a new price update. Normal freshness rules still apply.

The sports screen is a price comparison. The executable-gated arbitrage finder is a different route, described in Cross-venue data; a screen row does not establish that route’s live-ask, open-market, depth, fee/gas and resolution-equivalence checks.

Every sports answer that names a sport carries launchStatus: facets, competitions, teams, screen rows, fixture listings, fixture detail and fixture history. The value is launched or preview.

Every price cell carries its own launchStatus as well: on screen rows, fixture detail, fixture compare, and fixture history (its closing prices and each price series). A cell is launched only when its sport is launched and its venue is listed in the launch record’s venues. A comparison between two venues is covered by a launch only when both of its cells read launched. A cell at any other venue reads preview, even inside a launched sport.

Sports matching pairs the same game across venues based on each venue’s public market data, such as the teams, the competition and the start time. Matches, launch statuses and settlement notes are provided as is, for information only, and are not financial advice.

A launched sport carries a launch record. A preview sport carries none, and its data is served exactly as before. Read the record; do not infer a launch from a sport name.

GET /v1/sports/launches returns one row per canonical sport, preview sports included. The answer is static and read only. It is part of the sports surface, which is not available on every account; an unavailable call returns 404 ROUTE_NOT_FOUND and is not charged. The answer is cached with an ETag, so repeat If-None-Match for a bodyless 304. TypeScript calls it fetchSportsLaunches and returns data; Python calls it fetch_sports_launches and returns the full envelope.

The answer carries data.generatedAt (the answer clock), data.disclosureVersion (the settlement matrix version) and data.sports. Each sport row carries sport, launchStatus, record and settlementDisclosure. record is null for a preview sport. settlementDisclosure is null on every row except soccer.

A launched sport’s record carries its coverage facts:

FieldMeaning
sportCanonical sport slug.
launchedAtISO date-time when the sport launched.
snapshotAtThe time the launch coverage facts were measured; never after launchedAt. servedPairs is as of this time.
venuesVenue slugs the launch covers, sorted ascending.
venueJoins{ venue: string, joinedAt: string }[] in venues order; per-venue join dates.
venueCountNumber of covered venues; equals venues.length, including venues that joined after snapshotAt.
servedPairsPairs served when the sport launched, measured at snapshotAt. Not a live count; it does not change after launch.
disclosureVersionThe settlement disclosure version the launch published.

venueJoins[].joinedAt is the UTC time the venue joined the launch. It equals launchedAt for venues present at the launch and is never earlier. xo is the documented exception: its joinedAt records when its coverage completed rather than the launch start.

The soccer launch record covers 16 venues, including Myriad. Myriad price cells read launchStatus: launched while the record lists it. disclosureVersion stays 3.

The soccer row always carries settlementDisclosure: it is present in both the launched and the preview state. The matrix is static and sourced from a dated read of the venue rules. It has version, researchReadOn, classes, venues and pairMarks.

classes lists the six settlement classes in hazard order, largest exposure first: postponement_void_window, extra_time_penalties, stat_correction, player_did_not_play, exact_line_push and draw_payout.

venues has one entry per soccer venue. Each entry carries six cells, one per class. A stated cell carries code, sentence, the venue sourceUrl, readOn and basis. The basis is sport_rule, venue_wide_rule, other_sport_terms or partial. An unstated cell carries code: 'not_stated', the sentence “not stated by the venue”, a null sourceUrl and no basis. A pending cell carries code: 'pending_verification', the sentence “Verification of this rule against live market text is in progress.”, a null sourceUrl and no basis: the stated rule was withdrawn pending verification against live market text. A not-applicable cell carries code: 'not_applicable', the sentence “No soccer market read at this venue carries the feature this rule describes.”, a null sourceUrl and no basis: the venue serves no market family that carries the feature.

pairMarks has one derived mark per class for every pair of the 16 soccer venues. Every mark carries both venues’ cells, so a customer sees both sentences.

The cells describe soccer match markets; season and futures markets are not yet described. settlementDisclosure.venues lists the venues whose settlement rules are described; it is not the launch coverage, which the launch record and classes state.

MarkMeaning
sameBoth cells are stated with basis sport_rule or venue_wide_rule and the two codes match.
differsBoth cells are stated with basis sport_rule or venue_wide_rule and the two codes differ.
not_statedAny other case, including a not-stated, pending or not-applicable cell, or a cell with basis other_sport_terms or partial.

not_stated never means same. It means two comparable stated rules do not prove that the venues agree. Show both sentences and keep the uncertainty visible. Never present a not_stated pair as agreement, and never fill an unstated cell with a rule read for another sport.

Fixture price history (not available by default)

Section titled “Fixture price history (not available by default)”

fetchFixturePriceHistory (GET /v1/sports/fixtures/{fixtureId}/history) returns recorded price series for each venue, selection and line, with opening and closing marks and main-line movement. It is not available on every account. When it is unavailable, the route returns 404 ROUTE_NOT_FOUND. The rest of the sports surface can be available while fixture price history is not.

Use a fixture id returned by the API. All query parameters are optional:

ParameterMeaning and default
marketTypemoneyline by default; also accepts match_result, spread, total, team_total, btts and halftime_result.
periodCanonical period, default full.
lineTeamOnly allowed for team_total: team1 by default or team2. team1 is home when both home and away are stated, otherwise teamA. Spread lines always address team1 without this parameter.
lineFinite numeric line filtering retained samples. Omission selects the latest recorded main line; line-less markets retain null.
venuesComma-separated venues, with at most 16 distinct venues after normalization. Omission uses all available venues.
fromDefaults to the later of the resolved to minus 7 days and the plan’s history-window cutoff (7 days back on Free, 12 months on Builder, none from Pro). Must be strictly before to.
toDefaults to the earlier of now and exact kickoff plus 12 hours; defaults to now when kickoff is not exact. Explicit future values are clamped to now.
interval1m, 5m, 15m, 1h, 6h or 1d. Omission picks the finest supported interval that fits the 1,000-point cap: ceil((to - from) / interval) <= 1000.

from and to accept ISO-8601 instants with seconds and a timezone, or YYYY-MM-DD as UTC midnight. The resolved window must span at most 31 days. An explicit interval too fine for that window returns 400 VALIDATION_ERROR. A from or to, explicit or defaulted, before the plan’s history-window cutoff returns 403 PLAN_REQUIRED; see the plan history window. Each bucket retains its last recorded state; an earlier retained sample may anchor the first point at from. The future-to clamp prevents manufactured future points. Read the resolved from, to and interval from meta.

line and venues filter sample-backed data. Permanent opening and closing marks can still contribute series for other lines and venues. data.lines lists retained sample lines, so a line represented only by marks may be absent from that list.

These are best-ask observations, with meta.priceBasis: best_ask. The read uses stored history and makes no live venue calls. Samples are retained for 90 days; opening and closing marks are kept forever once taken. The sample read horizon starts at the resolved to minus 32 days. Sample-backed fields such as lines, the series[].open fallback, current and movement.changes only consider samples newer than that horizon, within retained history.

Each series entry has open, close, current and time-ordered points. open uses the permanent opening mark, falling back to the earliest priced sample within the read horizon. close is the recorded kickoff mark. current is the latest retained state and can fall outside the requested window. movement describes recorded main-line changes, including its opening, current and closing line.

The closing block is the recorded state at kickoff. Closing marks are taken after an exact kickoff with a default delay of 120 seconds. This is neither a current quote nor an official result. A missing block stays null; closingUnavailable explains it with kickoff_not_exact, before_kickoff or no_samples.

For each point, at is the recorded point time (or from for an anchor); asOf is source freshness. gross is the recorded best ask or null with a reason. net is non-null only when feeUnknown is false and a net price is available. Unknown fees keep net: null. Preserve stale and source when displaying prices.

meta.degraded: true preserves retained prices while reporting a recording-health problem in meta.degradedReason:

ReasonMeaning
recorder_staleThe recording health check is missing or stale.
recorder_not_writingThe recording health check is fresh, but no new prices are being recorded.
redis_unavailableA temporary service degradation made the health check unavailable.

Healthy responses omit degradedReason. meta.truncated: true means the sample result exceeded the read’s row limit; do not treat it as complete. This route has no pagination.

HTTP status and codeMeaning
400 VALIDATION_ERRORInvalid fixture id, query, window or interval.
403 PLAN_REQUIREDfrom or to, explicit or defaulted, is before the plan’s history-window cutoff.
404 SPORTS_FIXTURE_NOT_FOUNDThe fixture could not be found in the mirror or identity fallback.
404 ROUTE_NOT_FOUNDFixture price history is not enabled for your account.
503 HISTORY_UNAVAILABLEThe History read failed, exceeded its budget, or hit the concurrent-read capacity limit. Database timeouts and budget exhaustion are not retryable; capacity overflow is retryable with Retry-After: 1.
503 SPORTS_SCREEN_UNAVAILABLEThe fixture index could not load.
503 CATALOG_UNAVAILABLEThe fixture-identity fallback timed out.
503 PLATFORM_UNAVAILABLEAuthentication or metering storage is unavailable.

History uses the history weight, 5 credits. Calls that return a not-available error are not charged.

Calls that return a not-available error are not charged. Available sports reads are metered. See Pricing, credits & billing for the current action costs and billing rules.