When a bettor requests a Parlay Market, a message is sent via theDocumentation Index
Fetch the complete documentation index at: https://docs.sx.bet/llms.txt
Use this file to discover all available pages before exploring further.
markets:parlay channel. In order to offer orders on Parlay Markets, you will need to subscribe to this channel. The payload will contain the marketHash that is associated with the Parlay Market.
You can post orders to this market as you would for any other market, using this marketHash. The payload also contains the token and size that the bettor is requesting. The legs in the payload contain the underlying legs that make up the parlay market. You can query for market data on each leg’s marketHash to determine current orders for that individual market.
ParlayMarket PAYLOAD FORMAT
| Name | Type | Description |
|---|---|---|
| marketHash | string | The parlay market associated with this request |
| baseToken | string | The token this request is denominated in |
| requestSize | number | The size in baseTokens that the bettor is requesting. See the token section of how to convert this into nominal amounts |
| legs | ParlayMarketLeg[] | An array of legs that make up the parlay |
ParlayMarketLeg PAYLOAD FORMAT
| Name | Type | Description |
|---|---|---|
| marketHash | string | The market for an individual leg within the parlay |
| bettingOutcomeOne | boolean | The side the bettor is betting for an individual leg within the parlay |
Note that the
requestSize is only indicating what the user is requesting, but does not limit market makers in how much they want to offer. You are allowed to offer any size.