> For the complete documentation index, see [llms.txt](https://docs.lsports.eu/u/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.lsports.eu/u/trade/integration/quick-reference.md).

# Quick Reference

A condensed, single-page summary of the whole integration. Use it to orient yourself or hand to a teammate.

### Steps 1–2: Credentials & distribution

* Username / Password / Package ID provided by LSports.
* `/Distribution/Start` and `/Distribution/Stop` control your feed.
* Poll Distribution Status every \~5 seconds; target 0 messages in queue, investigate at 500 or more, recover at 10,000.

### Step 3: Connection, reliability & recovery

* Prefetch \~100, no-ack/auto-ack; separate consumption from processing; route by message type and headers.
* Recovery order: Start distribution, connect and cache, snapshot (in parallel), reconcile, resume.
* Heartbeat every 5 seconds; no heartbeat for more than 12 seconds triggers recovery. Distribution active status `false` also triggers the recovery sequence.
* Sequence gaps of 1–2 are normal; watch trends, not isolated gaps.
* Snapshot is for recovery/enrichment only, filtered by last heartbeat; available up to 24 hours post-fixture.
* Rate limits: 5 or fewer concurrent requests, 1 or fewer per second per endpoint.

### Steps 4–6: Mapping, testing & go-live

* Metadata API endpoints (Sports, Locations, Leagues, Markets, Participants, Fixtures) for catalog alignment, in that order.
* Joint stress test validates recovery, liveness detection and trading suspension, reconciliation, and high-volume behavior.
* CSM schedules go-live; LSports switches the account to production and configures quota.

Questions? Reach out to your CSM or CEM at any step.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.lsports.eu/u/trade/integration/quick-reference.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
