> ## Documentation Index
> Fetch the complete documentation index at: https://docs.apexiumbet.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Go-live checklist - From test key to production

> A production readiness checklist for an Apexium API integration: market data state, reconnects and reloads, staleOdds, idempotent orders, rate limits, monitoring, and what to send support.

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](https://docs.apexiumbet.com/api-reference/market-data.md), [Feed channels](https://docs.apexiumbet.com/websocket/feed-channels.md), [Encodings](https://docs.apexiumbet.com/websocket/encodings.md).

***

## 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](https://docs.apexiumbet.com/api-reference/reliability.md#recovery), [Close codes](https://docs.apexiumbet.com/websocket/close-codes.md), [Orders channel](https://docs.apexiumbet.com/websocket/orders.md).

***

## 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](https://docs.apexiumbet.com/api-reference/reliability.md#bookmaker-staleness-staleodds).

***

## 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](https://docs.apexiumbet.com/guides/idempotency.md), [Feed odds and the betslip](https://docs.apexiumbet.com/guides/feed-odds-and-betslip.md), [Cancellation](https://docs.apexiumbet.com/guides/cancellation.md).

***

## 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](https://docs.apexiumbet.com/api-reference/limits.md).

***

## 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](https://apexium-v1.instatus.com).
* [ ] Deploy close to the API if latency matters: central Europe.

Detail: [Reliability](https://docs.apexiumbet.com/api-reference/reliability.md), [Server location](https://docs.apexiumbet.com/api-reference/reliability.md#server-location).

***

## 7. Changes and support

* [ ] Follow the [changelog](https://docs.apexiumbet.com/changelog/index.md). Entries tagged **Breaking** need action on your side.
* [ ] Ignore unknown fields, and handle unknown enum values and error codes gracefully. See [Enumerations](https://docs.apexiumbet.com/api-reference/enumerations.md).
* [ ] When you report an issue to [contact@apexiumbet.com](mailto: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.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.