RabbitMQ Connection
Establish and maintain a connection to the TRADE data feed
Last updated
Was this helpful?
Establish and maintain a connection to the TRADE data feed
This section covers everything you need to establish and maintain a connection to the TRADE data feed via RabbitMQ.
TRADE uses RabbitMQ to deliver real-time sports data. The connection process involves:
Enabling your distribution - Activating your data package
Establishing connection - Connecting to the RabbitMQ server
Consuming messages - Processing incoming data messages
Handling message types - Understanding and processing different message formats
Connection & Consumption Setup - Step-by-step guide to connect to RabbitMQ
Message Deserializing - How to decode and parse incoming messages
Market/Bet Message Handling - Processing market and bet data
Working with TRADE Feed - Best practices for feed consumption
RabbitMQ messages include metadata headers you can read before deserializing the payload: MessageType on every message, FixtureId and SportId on data messages, and MarketId on market-related messages. Use them to route or filter at the consumer level without touching the message body. See RabbitMQ Header for the full list.
Connect using the username and password provided by your CSM. The host and virtual host depend on the feed type:
Host
stm-inplay.lsports.eu
stm-prematch.lsports.eu
Virtual Host
StmInPlay
StmPreMatch
Port
5672
Queue
_YOUR_PACKAGE_ID_ (e.g. _102030_)
Protocol
AMQP 0.9.1
Admins can view their RMQ credentials directly in TRADE — go to the avatar menu → Account → Plan & Usage → More (on your TRADE package) → Integration. If you need assistance, contact your CSM.
Last updated
Was this helpful?
Was this helpful?