Skip to main content
A test environment proves the integration. Production needs it to hold when a connection drops, a bookmaker goes quiet, an answer gets lost, or we ship a release. Work through this list before you switch on real volume. Every item links to the page with the detail.

1. Market data state

  • Connect the WebSocket first, then load the state from /v1/{lang} and merge it in. Per oddsId, the newer changedAt wins.
  • Store odds keyed by oddsId. The key is the same on REST, the WebSocket and the history endpoints.
  • Follow only the fixtures you trade with fixtureIds: odds come fixture by fixture, within 500 fixtures per account.
  • Log in with receiveType: "zstd". Production accepts nothing else.
Detail: Market data and identifiers, Feed channels, Encodings.

2. Reconnect and reload

  • On snapshot_required, reload the listed channels from /v1/{lang} and keep applying messages. The feed channels have no resume.
  • Reload the feed channels after every reconnect, and after a 4002 or a 1006 that follows a burst of traffic.
  • Persist the last eventId of the orders channel and log in with sinceEventId after a reconnect.
  • Act on the reconnect frame as soon as it arrives: reconnect at once.
  • Treat 4003 as final: do not reconnect with that key. Treat 4004 as a limit to fix, not to retry.
Before go-live, run two drills: a disconnect of a few seconds, and a feed reload. Time the reload. It is your worst-case recovery. Detail: Reliability, Close codes, Orders channel.

3. Bookmaker staleness

  • Subscribe to the bookmakers channel alongside odds.
  • Keep staleOdds per fixtureId:bookmaker pair and check it before you price or order on that bookmaker.
  • When it is true, pause that bookmaker on that fixture, or fall back to another one. Resume when it returns to false.
  • Keep it apart from suspended, active and marketActive: those are the bookmaker’s own stops.
  • Expect a bookmaker-wide incident as one message per fixture, not one message.
Detail: Bookmaker staleness.

4. Orders

  • Give every order a unique clientOrderId and store it before you send the request.
  • On a timeout or 502 UPSTREAM_UNAVAILABLE, resend the same request with the same clientOrderId. Never send a new one for the same intent.
  • Take minPrice from the betslip price, not from the market data.
  • Follow working orders on the orders channel, or poll them with version.
  • Have a kill switch: POST /v1/orders/cancel-all is never rate-limited.
Detail: Idempotency, Feed odds and the betslip, Cancellation.

5. Rate limits and connections

  • Per key and per minute: 600 placements and previews, 60 betslip reads, 600 for everything else, market data included.
  • On 429, wait the retry-after seconds. Spread placements over the minute rather than bursting.
  • Use the stream for changes and REST for loads. Polling odds in a loop is the usual cause of rate-limit trouble.
  • Stay within 8 connections per key and 50 betslip selections per account.
  • Check a key before retrying it: 20 failed authentications in a minute lock out your address for the rest of that minute.
Detail: Limits.

6. Monitoring

  • Poll GET /v1/health every 15 seconds and alert on unhealthy, and on degraded for betPlacement.
  • Track the delivery hop: your receipt time minus the message ts. Run NTP.
  • Track observation delay per bookmaker, changedAt − bookmakerChangedAt, against maxDelayLiveInSec and maxDelayPregameInSec from GET /v1/{lang}/bookmakers.
  • Alert on reconnects, snapshot_required and the share of fixtures flagged staleOdds per bookmaker.
  • Subscribe to the status page.
  • Deploy close to the API if latency matters: central Europe.
Detail: Reliability, Server location.

7. Changes and support

  • Follow the changelog. Entries tagged Breaking need action on your side.
  • Ignore unknown fields, and handle unknown enum values and error codes gracefully. See Enumerations.
  • When you report an issue to contact@apexiumbet.com, include the x-request-id, the connectionId, the order id or clientOrderId, and UTC timestamps.

Ready when

  • A forced disconnect recovers through a reload in a time you have measured.
  • A lost answer to an order is resolved by resending it, without a second bet.
  • A staleOdds flag stops trading on that bookmaker and fixture without anyone stepping in.
  • A 429 slows your client down instead of breaking it.
  • Your dashboards show health, delivery hop, observation delay and stale share per bookmaker.