/
v3.0.11Get access

subscribeToEventsWithPromotedGame

Subscribes to a real-time data stream to receive live updates specifically for a featured or promoted sports game. It filters incoming data based on the provided sport and betting market configurations.

Request parameters:

Name
DescriptionTypeValuesDefault
eventPrice
Defines the pricing context.number--
sportAlias
The alias for the sport.string--
marketTypes
An array of betting market string identifiers to filter updates.array--

Call example:

subscribeToEventsWithPromotedGame({
  eventPrice: 2.4,
  marketTypes: ['AnytimeGoalscorer', 'AnytimeGoalscorerSubs'],
  sportAlias: 'Soccer'
})

Response examples:

{
  game: {
    '28599877': {
      competition: {
        id: 2969
      },
      id: 28599877,
      is_live: 0,
      team1_id: 241,
      is_blocked: 0,
      team1_name: 'Germany',
      team2_name: 'Curacao',
      region_alias: 'World',
      market: {
        '2284168306': {
          id: 2284168306,
          type: 'AnytimeGoalscorerSubs',
          name: 'Anytime Goalscorer (Sub-on)',
          express_id: 1,
          prematch_express_id: 1,
          event: {
            '6791766073': {
              id: 6791766073,
              price: 1.67,
              name: 'Leroy Sane',
              type_1: 'Leroy Sane',
              type_id: 0,
              team_id: 31111
            },
            '6791766076': {
              id: 6791766076,
              price: 1.57,
              name: 'Maximilian Beier',
              type_1: 'Maximilian Beier',
              type_id: 0,
              team_id: 548980
            }
          }
        },
        '2285263141': {
          id: 2285263141,
          type: 'AnytimeGoalscorer',
          name: 'Anytime Goalscorer',
          express_id: 1,
          prematch_express_id: 1,
          event: {
            '6794799737': {
              id: 6794799737,
              price: 1.44,
              name: 'Deniz Undav',
              type_1: 'Deniz Undav',
              type_id: 0,
              team_id: 199620
            },
            '6794799739': {
              id: 6794799739,
              price: 1.44,
              name: 'Kai Havertz',
              type_1: 'Kai Havertz',
              type_id: 0,
              team_id: 290960
            }
          }
        }
      }
    },
    '28599889': {
      competition: {
        id: 2969
      },
      id: 28599889,
      is_live: 0,
      team1_id: 818,
      is_blocked: 0,
      team1_name: 'Spain',
      team2_name: 'Cape Verde',
      region_alias: 'World',
      market: {
        '2284196186': {
          id: 2284196186,
          type: 'AnytimeGoalscorerSubs',
          name: 'Anytime Goalscorer (Sub-on)',
          express_id: 1,
          prematch_express_id: 1,
          event: {
            '6791847029': {
              id: 6791847029,
              price: 1.53,
              name: 'Mikel Oyarzabal',
              type_1: 'Mikel Oyarzabal',
              type_id: 0,
              team_id: 236834
            }
          }
        }
      }
    }
  }
}