subscribeToEventsWithMarket
This API manages a real-time subscription for specific betting markets (like "Match Result" or "Correct Score") associated with a single game. It returns a nested object of markets containing individual events (the outcomes you can bet on), including their current prices and recent odds fluctuations.
Data structure market -> event
Documentation
Try it now
Request parameters:
Call example:
subscribeToEventsWithMarket({
gameId: 29737720
})Response examples:
{
market: {
'2256768587': {
id: 2256768587,
name: 'Match Result',
type: 'P1XP2',
order: 300000,
cashout: 1,
sequence: 0,
col_count: 3,
express_id: 1,
group_name: 'Match',
group_order: 2,
display_key: 'WINNER',
market_type: 'MatchResult',
point_sequence: 0,
display_sub_key: 'MATCH',
prematch_express_id: 1,
event: {
'6714482087': {
id: 6714482087,
price: 13,
name: 'W1',
order: 0,
type: 'P1',
type_1: 'W1',
type_id: 5452
},
'6714482431': {
id: 6714482431,
price: 1.35,
name: 'W2',
order: 2,
type: 'P2',
type_1: 'W2',
type_id: 6524
},
'6714482432': {
id: 6714482432,
price: 3.3,
name: 'Draw',
order: 1,
type: 'X',
type_1: 'X',
type_id: 5453
}
}
},
'2256768674': {
id: 2256768674,
name: 'Double Chance',
type: '1X12X2',
order: 900000,
cashout: 1,
sequence: 0,
col_count: 3,
express_id: 1,
group_id: 1,
group_name: 'Match',
group_order: 2,
display_key: 'DOUBLE CHANCE',
market_type: 'DoubleChance',
point_sequence: 0,
display_sub_key: 'MATCH',
prematch_express_id: 1,
event: {
'6714482429': {
id: 6714482429,
price: 1.28,
name: '12',
order: 1,
type: '12',
type_1: '12',
type_id: 6541
},
'6714482428': {
id: 6714482428,
price: 1.03,
name: 'X2',
order: 2,
type: 'X2',
type_1: 'X2',
type_id: 6542
},
'6714482430': {
id: 6714482430,
price: 2.7,
name: '1X',
order: 0,
type: '1X',
type_1: '1X',
type_id: 6540
}
}
}
}
}