- Market data under
/v1/{lang}and on the feed channels: OddsPapi v5 values, unchanged. - Account and execution endpoints of
/v1: Apexium’s own values for orders, bets, settlement and health.
The enum contract. Existing values are frozen: they never change meaning and never disappear. New values are only ever appended. Handle a value you do not know gracefully: log it and treat it like the closest value you do know, never crash on it.
Market data (OddsPapi v5)
statusId: fixture life cycle
- Branch on the ID.
statusNameis the translated label and follows thelangof the path;statusIdis the stable key. - Status only moves forward.
0 → 1 → 2, any status →3, any status →4. It never goes back. 3vs4.cancelledis a real fixture that will not be played: called off, abandoned, postponed indefinitely.removedis a fixture that should not have been listed: a duplicate, a test entry, a fixture that was not real.4is final. Any status can move to4,3included, and a removed fixture stays removed. No scores are published for it. Stop following it.
3 or 4 are graded by the bookmakers that took them: see Settlement status of a bet.
period
Scores and markets are keyed by one generic period vocabulary, so the same keys work in every sport. What a period means depends on the sport: read the fixture’s expectedPeriods and periodLength. p1 is a half in soccer, a quarter in NBA basketball, a set in tennis, a map in esports.
Whole match
Numbered periods
Combined segments: sums of consecutive periods, for markets offered on a combined segment.
Sub-periods: one shape,
p{X}{axis}{Y}, unit Y within period X.
Open taxonomies
These are string sets that grow over time. Each value is stable, but the list is never complete:marketType: the kind of market (1x2,totals,spreads,bothteamsscore,players-shots, …). The full list of a sport is inGET /v1/{lang}/markets?sportId=…. See Markets and outcomes.bookmaker: the bookmaker slug (pinnacle,sharpbet, …). Yours are listed byGET /v1/me.
Orders and bets
Order status
PENDING and PARTIALLY_FILLED are the working statuses. Compare filledStake with requestedStake to know how much of a final order filled. See Order and bet life cycle.
Bet status
Settlement status of a bet
settlement.status grades a bet. settlement.amount is your profit or loss on it.
Order fields
Cancellation outcomes
See Cancellation.
Grouping
Platform
Health
GET /v1/health gives each service and the API as a whole one of:
The services are
database, caching, betPlacement and betUpdates. status is the worst of them. See Health and Reliability.
Languages
lang in /v1/{lang}: en, es, fr, pt, de, it, ru, zh.
Error codes and close codes
- Error codes: every
codewith its HTTP status and whether to retry is in Errors. - WebSocket close codes:
4001to4004and1011to1013, with what to do for each, are in Close codes.