Skip to main content

Overview

This guide covers the full flow for market making parlays on SX Bet: connecting to the WebSocket, receiving parlay requests, analyzing legs, calculating odds, and posting orders — all within the 3-second RFQ window.

Step 1: Connect to the parlay channel

Subscribe to the parlay_markets:global WebSocket channel to receive parlay requests in real-time. You’ll need a token from the GET /user/realtime-token/api-key endpoint.

Step 2: Parse the parlay request

Each incoming message contains the parlay’s marketHash, the requested token and size, and the legs:
The requestSize is what the bettor requested, but you can offer any size you want. You are not limited to matching their request.

Step 3: Look up each leg

Query each leg’s market via GET /markets/find to understand what’s being bet on, and optionally check current single-market odds via GET /orders/odds/best if you want a reference point for pricing:

Step 4: Calculate your odds

The simplest approach is to multiply the implied probabilities of each leg. Your pricing strategy is up to you. This is a basic example:
The percentageOdds field represents the maker’s implied probability in the SX protocol format (multiply by 10^20). The taker’s implied odds are 1 - percentageOdds / 10^20. See odds formats and unit conversion for details.

Step 5: Post your order

Post an order to the parlay marketHash using POST /orders/new, the same endpoint as single bets. The parlay market hash from the request is your marketHash.
You have a 3-second window from when the parlay request is broadcast to post your order.

Step 6: Manage your orders

After posting, you can cancel parlay orders the same way as any other order:

Summary

The full maker flow at a glance:
Parlay orders expire like normal orders. Set apiExpiry appropriately — a short expiry (e.g., 60 seconds) is recommended since parlay orderbooks are ephemeral.

Parlays (RFQ System) →

How the RFQ parlay system works conceptually.

Post New Order →

API reference for the order submission endpoint.

Order Signing →

How to sign orders for the SX Bet protocol.

WebSocket Parlay Requests →

WebSocket channel reference for parlay requests.
Last modified on July 6, 2026