Predictor operations

Let your users predict match outcomes and earn points

Predictor operations are responsible for communicating with the Prediction API in predictor mode.
Each method that works with statistical data also converts your IDs to the desired ID provider for easier and quicker development.

The namespace is of course called predictor. All methods return promises. The general design of the namespace follows this pattern unless stated otherwise:

sdk.predictor.someMethod(filtersObject).then((responseObject) => {
  // do something with responseObject
});

The responses are comprised of different objects you can find here.

Match related operations

Some match related operations require authentication, some do not. This will be stated in each method.
In addition, some API calls are HTTP cached. This, again, will be state in each method.

Another thing to keep in mind is that not all markets are available for all matches. Depending on the coverage from
the data provider some matches will accept all markets, while the rest will accept only some. You can see the list of full coverage competitions
by calling the method getConfig().

Make football prediction

Method: makeFootballPrediction(matchId, market, value, playerId?)

Makes a prediction for a selected match and market.

Requires authentication. Not cached.

Accepted options:

  • matchId: string. ID of the match.
  • market: string. Options include: "FT_1X2", "HT_1X2", "BOTH_TEAMS_SCORE",
    "OVER_GOALS_0_5", "OVER_GOALS_1_5", "OVER_GOALS_2_5", "OVER_GOALS_3_5", "OVER_GOALS_4_5", "OVER_GOALS_5_5", "OVER_GOALS_6_5",
    "OVER_CORNERS_6_5", "OVER_CORNERS_7_5", "OVER_CORNERS_8_5", "OVER_CORNERS_9_5", "OVER_CORNERS_10_5", "OVER_CORNERS_11_5", "OVER_CORNERS_12_5", "OVER_CORNERS_13_5",
    "DOUBLE_CHANCE", "HT_FT", "PLAYER_SCORE", "PLAYER_YELLOW_CARD", "PLAYER_RED_CARD", "RED_CARD_MATCH", "PENALTY_MATCH",
    "PLAYER_SCORE_FIRST_GOAL", "CORNERS_MATCH", "CORRECT_SCORE", "CORRECT_SCORE_HT", "CORRECT_SCORE_ADVANCED" "PLAYER_SCORE_HATTRICK" & "PLAYER_SCORE_TWICE"
  • value: object. the prediction. The value depends on the market. Some markets require booleans, some strings, other numbers. For example when market is "FT_1X2", value can be "1", "x" or "2".

More information about value param can be found here

  • playerId: string. Optional. The ID of the player. Only applicable to the player related markets.

How the method works:

sdk.predictor
  .makeFootballPrediction('matchId', 'market', 'value', 'playerId')
  .then((responseObject) => {
    // do something with responseObject
  });

Example result

{
  id: "GSGUDDW5xVNSo7I0ujVbsNBoeMz2_p_OVER_GOALS_fb:m:806686519",
  gameInstanceId: null,
  wager: null,
  gameType: "MATCH_QUIZ",
  totalFixtures: 1,
  settledFixtures: 0,
  userId: "GSGUDDW5xVNSo7I0ujVbsNBoeMz2",
  fixtures: [
    {
      market: "OVER_GOALS_1.5",
      matchId: "fb:m:806686519",
      matchType: "FOOTBALL",
      matchModel: null, // returns BasicMatchModel
      prediction: {
        value: false,
        playerId: null,
        playerModel: null // only available for player related markets
      },
      result: {
        settledAt: null,
        resettledAt: null,
        status: "NOT_SETTLED",
        outcome: "NOT_VERIFIED",
        points: 0
      }
    }
  ],
  status: "ACTIVE",
  tiebreaker: null,
  points: 0,
  createdAt: "2022-02-08T11:32:59Z",
  updatedAt: "2022-02-08T11:32:59Z"
}

Delete football prediction

Method: deleteFootballPrediction("predictionId")

Allows user to delete their own prediction.

Requires authentication. Not cached.

Parameters:

  • predictionId: string. ID of the prediction.
sdk.predictor.deleteFootballPrediction('prediction-id-here').then((responseObject) => {
  // do something with responseObject
});

Example result

true; // returns true on success or exception on failure

Get match summary

Method: getMatchSummary(matchId, disableCache?)

Returns the summary of all predictions for all users in all markets.

Cached by API for 1 hour.

Parameters:

  • matchId: string. ID of a football match.
  • disableCache: boolean. Optional. Option to disable cache from API.
sdk.predictor.getMatchSummary('fb:m:887608794').then((responseObject) => {
  // do something with responseObject
});

Example result

{
   matchId: "fb:m:887608794",
   matchType: "FOOTBALL",
   predictions: {
      fullTimeOneXTwo: {
         1: 0,
         2: 0,
         x: 0
      },
      halfTimeOneXTwo: {
         1: 0,
         2: 0,
         x: 0
      },
      bothTeamsScore: {
         no: 0,
         yes: 0
      },
      doubleChance: {
         12: 0,
         1x: 0,
         x2: 0
      },
      halfTimeFullTime: {
         "x/x": 0,
         "1/1": 0,
         "1/2": 0,
         "2/1": 0,
         "2/2": 0,
         "1/x": 0,
         "x/2": 0,
         "x/1": 0,
         "2/x": 0
      },
      playerScore: {},
      playerYellowCard: {},
      playerRedCard: {},
      redCardMatch: {
         no: 0,
         yes: 0
      },
      penaltyMatch: {
         no: 0,
         yes: 0
      },
      playerScoreFirstGoal: {},
      cornersMatch: {},
      correctScore: {},
      playerScoreHattrick: {},
      playerScoreTwice: {},
      overZeroPointFiveGoals: {
         no: 0,
         yes: 0
      },
      overOnePointFiveGoals: {
         no: 0,
         yes: 0
      },
      overTwoPointFiveGoals: {
         no: 0,
         yes: 0
      },
      overThreePointFiveGoals: {
         no: 0,
         yes: 0
      },
      overFourPointFiveGoals: {
         no: 0,
         yes: 0
      },
      overFivePointFiveGoals: {
         no: 0,
         yes: 0
      },
      overSixPointFiveGoals: {
         no: 0,
         yes: 0
      },
      overSixPointFiveCorners: {
         no: 0,
         yes: 0
      },
      overSevenPointFiveCorners: {
         no: 0,
         yes: 0
      },
      overEightPointFiveCorners: {
         no: 0,
         yes: 0
      },
      overNinePointFiveCorners: {
         no: 0,
         yes: 0
      },
      overTenPointFiveCorners: {
         no: 0,
         yes: 0
      },
      overElevenPointFiveCorners: {
         no: 0,
         yes: 0
      },
      overTwelvePointFiveCorners: {
         no: 0,
         yes: 0
      },
      overThirteenPointFiveCorners: {
         no: 0,
         yes: 0
      }
   }
}

Get market summary

Method: getMarketSummary(matchId, market, playerId?)

Returns the summary of a specific market for a particular match for all users.

Cached by API for 1 hour.

Parameters:

  • matchId: string. ID of a football match.
  • market: string. The ID of the market. Options include: "FT_1X2", "HT_1X2", "BOTH_TEAMS_SCORE", "OVER_GOALS_0.5",
    "OVER_GOALS_1.5", "OVER_GOALS_2.5", "OVER_GOALS_3.5", "OVER_GOALS_4.5", "OVER_GOALS_5.5", "OVER_GOALS_6.5", "OVER_CORNERS_6.5",
    "OVER_CORNERS_7.5", "OVER_CORNERS_8.5", "OVER_CORNERS_9.5", "OVER_CORNERS_10.5", "OVER_CORNERS_11.5", "OVER_CORNERS_12.5",
    "OVER_CORNERS_13.5", "DOUBLE_CHANCE", "HT_FT", "PLAYER_SCORE", "PLAYER_YELLOW_CARD", "PLAYER_RED_CARD", "RED_CARD_MATCH",
    "PENALTY_MATCH", "PLAYER_SCORE_FIRST_GOAL", "CORNERS_MATCH", "CORRECT_SCORE", "PLAYER_SCORE_HATTRICK" & "PLAYER_SCORE_TWICE"
  • playerId: string. Optional. When provided market is some of the following: ("PLAYER_SCORE", "PLAYER_YELLOW_CARD", "PLAYER_RED_CARD", "PLAYER_SCORE_FIRST_GOAL", "PLAYER_SCORE_HATTRICK" & "PLAYER_SCORE_TWICE") client can pass an id of a player to get the specific market summary for the player.

Keep in mind that for PLAYER_SCORE_FIRST_GOAL for playerId paramater is available also "OWN_GOAL" and "NOBODY"

Example call with player market and player id:

sdk.predictor.getMarketSummary('fb:m:887608794', 'PLAYER_SCORE_FIRST_GOAL', "fb:p:476").then((responseObject) => {
  // do something with responseObject
});

Example result

// keep in mind the response changes depending on the market
{
   yes: 541,
   no: 102,
   model: PlayerBasicModel
}

Example call with player market no player id:

sdk.predictor.getMarketSummary('fb:m:887608794', 'PLAYER_SCORE_FIRST_GOAL').then((responseObject) => {
  // do something with responseObject
});

Example result

// keep in mind the response changes depending on the market
matchId: "fb:m:46358",
   matchType: "FOOTBALL",
   playerScoreFirstGoal: {
      fb:p:4208556: {
         no: 0,
         yes: 1,
         model: PlayerBasicModel
      },
      OWN_GOAL: {
         no: 1,
         yes: 0
      },
      NOBODY: {
         no: 0,
         yes: 0
      }
   }

Example call:

sdk.predictor.getMarketSummary('fb:m:887608794', 'FT_1X2').then((responseObject) => {
  // do something with responseObject
});

Example result

// keep in mind the response changes depending on the market
{
   matchId: "fb:m:887608794",
   matchType: "FOOTBALL",
   fullTimeOneXTwo: {
      1: 541,
      2: 102,
      x: 67
   }
}

User related operations

Get user's own predictions

Method: getMyPredictions({})

Gets the currently logged-in user's predictions.

Requires authentication. Not cached.

Options object:

  • limit: number. Number of records to be returned.
  • startAfter: string. The ID of the prediction you want to start the count after.
  • status: string. The status of prediction. Options include: "ACTIVE", "WON", "LOST", "PARTIALLY_WON", "CANCELED".
  • type: string. Type of game for predictions. Options are: "MATCH_QUIZ", "TOP_X" and "SINGLE".
  • matchIds: string[]. Filter the predictions by their matches.
  • gameIds: string[]. Filter the predictions by their games.

Notes:

  1. status, type, matchIds and gameIds can be used only individually
  2. matchIds and gameIds parameters are limited to 10 IDs.
sdk.predictor.getMyPredictions({}).then((responseObject) => {
  // do something with responseObject
});

Example result

{
   meta: {
      pagination: {
         nextPageStartsAfter: "GSGUDDW5xVNSo7I0ujVbsNBoeMz2_p_PLAYER_SCORE_fb:m:219813020",
         itemsPerPage: 20
      }
   },
   data: [
      {
         id: "GSGUDDW5xVNSo7I0ujVbsNBoeMz2_p_PLAYER_SCORE_fb:m:219813020",
         gameInstanceId: null,
         gameType: "SINGLE",
         wager: null,
         totalFixtures: 1,
         settledFixtures: 0,
         userId: "GSGUDDW5xVNSo7I0ujVbsNBoeMz2",
         fixtures: [
            {
               market: "PLAYER_SCORE",
               matchId: "fb:m:219813020",
               matchType: "FOOTBALL",
               matchModel: {}, // Basic Match Model
               prediction: {
                  value: true,
                  playerId: "fb:p:43400",
                  playerModel: {} // Player Model
               },
               result: {
                  settledAt: "2022-02-15T22:11:00Z",
                  resettledAt: null,
                  status: "SETTLED",
                  outcome: "CORRECT",
                  points: 10
               }
            }
         ],
         status: "WON",
         tiebreaker: null,
         points: 10,
         createdAt: "2022-02-15T13:29:22Z",
         updatedAt: "2022-02-15T22:11:03Z"
      }
   ]
}

Get own predictions for specific matches

Method: getMyPredictionsForMatches(matchIds: string[], filters?: PredictionsFilters)

Returns all own predictions for specified list of matches.
Optional filters options:

  • limit: number. Number of records to be returned.
  • startAfter: string. The ID of the prediction you want to start the count after.
const matchIds: string[] = ["1", "2", "3"];
const filters = {
  limit: 1,
  startAfter: "prediction-id"
}

sdk.predictor.getMyPredictionsForMatches(matchIds, filters)
  .then(responseObject => {
  // do something with responseObject
});

Example result

N.B. matchIds parameter is limited to 10 matches. If you provide more than 10, JS SDK throws an exception before even making a request to Prediction API.

Example:

const matchIds: string[] = ["1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11"];

sdk.predictor.getMyPredictionsForMatches(matchIds)
  .catch(error => {
  // Throws message "Maximum matchIds in PredictionFilters should be 10 or less."
});

Get user's own current predictions

Method: getMyCurrentPredictions(filters?)

Gets the logged-in user's currently active predictions.

Requires authentication. Not cached.

Optional filters options:

  • limit: number. Number of records to be returned.
  • startAfter: string. The ID of the prediction you want to start the count after.
sdk.predictor.getMyCurrentPredictions({}).then((responseObject) => {
  // do something with responseObject
});

Example result

// See the response for getMyPredictions() method

Get user's own past predictions

Method: getMyPastPredictions(filters?)

Gets the logged-in user's past predictions.

Requires authentication. Not cached.

Options filters options:

  • limit: number. Number of records to be returned.
  • startAfter: string. The ID of the prediction you want to start the count after.
sdk.predictor.getMyPastPredictions({}).then((responseObject) => {
  // do something with responseObject
});

Example result

// See the response for getMyPredictions() method

Get user's predictions

Method: getUserPredictions("ID", filters?, disableCache?)

Gets the predictions for a particular user.

  • userId: string. The ID of the user you want to fetch the predictions for
  • filters: object. Optional.
    • limit: number. Number of records to be returned.
    • startAfter: string. The ID of the prediction you want to start the count after.
    • status: string. The status of prediction. Options include: "ACTIVE", "WON", "LOST", "PARTIALLY_WON", "CANCELED".
    • type: string. Type of game for predictions. Options are: "MATCH_QUIZ", "TOP_X" and "SINGLE".
    • matchIds: string[]. Filter the predictions by their matches.
    • gameIds: string[]. Filter the predictions by their games.
  • disableCache: boolean. Default: false. Disables cached response

Notes:

  1. status, type, matchIds and gameIds can be used only individually
  2. matchIds and gameIds parameters are limited to 10 IDs.
sdk.predictor.getUserPredictions('user-id-here', {}, true).then((responseObject) => {
  // do something with responseObject
});

Example result

// See the response for getMyPredictions() method

Get user's predictions for matches

Method: getUserPredictionsForMatches(userId: string, matchIds: string[], filters?: PredictionsFilters, disableCache?: boolean)

Returns all user's predictions for specified list of matches.
Optional filters options:

  • limit: number. Number of records to be returned.
  • startAfter: string. The ID of the prediction you want to start the count after.
const userId = "profile-id";
const matchIds = ["1", "2", "3"];
const filters = {
  limit: 1,
  startAfter: "prediction-id"
};
const disableCache = true;

sdk.predictor.getUserPredictionsForMatches(userId, matchIds, filters, disableCache)
  .then(responseObject => {
  // do something with responseObject
});

Example result

N.B. matchIds parameter is limited to 10 matches. If you provide more than 10, JS SDK throws an exception before even making a request to Prediction API.

Example:

const userId = "profile-id";
const matchIds = ["1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11"];

sdk.predictor.getUserPredictionsForMatches(userId, matchIds, filters, disableCache)
  .catch(error => {
  // Throws message "Maximum matchIds in PredictionFilters should be 10 or less."
});

Get user's past predictions

Method: getUserPastPredictions("ID", filters?)

Gets the past predictions for a particular user.

  • userId: string. The ID of the user you want to fetch the predictions for
  • filters: object. Optional.
    • limit: number. Number of records to be returned.
    • startAfter: string. The ID of the prediction you want to start the count after.
sdk.predictor.getUserPastPredictions('user-id-here', {}).then((responseObject) => {
  // do something with responseObject
});

Example result

// See the response for getMyPredictions() method

Get user's current predictions

Method: getUserCurrentPredictions("ID", filters)

Gets the current (active/live and future) predictions of a user.

  • userId: string. The ID of the user you want to fetch the predictions for
  • options: object. Optional.
    • limit: number. Number of records to be returned.
    • startAfter: string. The ID of the prediction you want to start the count after.
sdk.predictor.getUserCurrentPredictions('user-id-here', {}).then((responseObject) => {
  // do something with responseObject
});

Example result

// See the response for getMyPredictions() method

Other operations

Get config

Method: getConfig()

Returns the configuration for the Predictor feature. The matches from competitions listed in fullCoverageCompetitions accept all markets.
The matches in all other competitions accept only the main markets.

The config will be cached in LocalStorage for 4 hours.

sdk.predictor.getConfig().then((responseObject) => {
  // do something with responseObject
});

Example result

{
   fullCoverageCompetitions: [
      "fb:c:1",
      "fb:c:3",
      "fb:c:4",
      "fb:c:5",
      "fb:c:6",
      "fb:c:7",
      "fb:c:8",
      "fb:c:9",
      "fb:c:11",
      "fb:c:12",
      "fb:c:13",
      "fb:c:14",
      "fb:c:15",
      "fb:c:16",
      "fb:c:17",
      "fb:c:18",
      "fb:c:19",
      "fb:c:20",
      "fb:c:21",
      "fb:c:22",
      "fb:c:27",
      "fb:c:28",
      "fb:c:30",
      "fb:c:34",
      "fb:c:37",
      "fb:c:119"
   ],
   markets: {
      main: [
         "FT_1X2",
         "BOTH_TEAMS_SCORE",
         "CORRECT_SCORE",
         "DOUBLE_CHANCE",
         "OVER_GOALS"
      ],
      all: [
         "FT_1X2",
         "HT_1X2",
         "HT_FT",
         "BOTH_TEAMS_SCORE",
         "CORRECT_SCORE",
         "DOUBLE_CHANCE",
         "PLAYER_SCORE",
         "PLAYER_SCORE_TWICE",
         "PLAYER_SCORE_HATTRICK",
         "PLAYER_YELLOW_CARD",
         "PLAYER_RED_CARD",
         "RED_CARD_MATCH",
         "PENALTY_MATCH",
         "OVER_GOALS",
         "OVER_CORNERS",
         "PLAYER_SCORE_FIRST_GOAL",
         "CORNERS_MATCH"
      ]
   }
}

Get prediction by ID

Method: getPredictionById("prediction-id")

Returns prediction's object information

sdk.predictor.getPredictionById("Y44CxUzkpHdypYxcVVlwIQiLNtD2_p_CORRECT_SCORE_ADVANCED_fb:m:152157").then((responseObject) => {
  // do something with responseObject
});

Example result

{
   id: "Y44CxUzkpHdypYxcVVlwIQiLNtD2_p_CORRECT_SCORE_ADVANCED_fb:m:152157",
   gameInstanceId: null,
   gameType: "SINGLE",
   wager: null,
   totalFixtures: 1,
   settledFixtures: 1,
   userId: "Y44CxUzkpHdypYxcVVlwIQiLNtD2",
   fixtures: [
      {
         market: "CORRECT_SCORE_ADVANCED",
         matchId: "fb:m:152157",
         matchType: "FOOTBALL",
         matchModel: MatchBasicModel,
         prediction: {
            value: "1:1",
            playerId: null,
            playerModel: null
         },
         result: {
            settledAt: "2023-05-18T15:15:01Z",
            resettledAt: null,
            status: "SETTLED",
            outcome: "INCORRECT",
            points: 0
         }
      }
   ],
   status: "LOST",
   tiebreaker: null,
   points: 0,
   createdAt: "2023-05-18T10:18:57Z",
   updatedAt: "2023-05-18T15:15:01Z"
}

FAQ about making predictions

Here are all markets supported by JS SDK:

enum MarketEnum {
    FT_1X2 = 'FT_1X2',
    HT_1X2 = "HT_1X2",
    BOTH_TEAMS_SCORE = "BOTH_TEAMS_SCORE",
    DOUBLE_CHANCE = "DOUBLE_CHANCE",
    HT_FT = "HT_FT",
    PLAYER_SCORE = "PLAYER_SCORE",
    PLAYER_YELLOW_CARD = "PLAYER_YELLOW_CARD",
    PLAYER_RED_CARD = "PLAYER_RED_CARD",
    RED_CARD_MATCH = "RED_CARD_MATCH",
    PENALTY_MATCH = "PENALTY_MATCH",
    PLAYER_SCORE_FIRST_GOAL = "PLAYER_SCORE_FIRST_GOAL",
    CORNERS_MATCH = "CORNERS_MATCH",
    CORRECT_SCORE = "CORRECT_SCORE",
    CORRECT_SCORE_HT = "CORRECT_SCORE_HT",
    CORRECT_SCORE_ADVANCED = "CORRECT_SCORE_ADVANCED",
    PLAYER_SCORE_HATTRICK = "PLAYER_SCORE_HATTRICK",
    PLAYER_SCORE_TWICE = "PLAYER_SCORE_TWICE",
    OVER_GOALS_0_5 = "OVER_GOALS_0_5",
    OVER_GOALS_1_5 = "OVER_GOALS_1_5",
    OVER_GOALS_2_5 = "OVER_GOALS_2_5",
    OVER_GOALS_3_5 = "OVER_GOALS_3_5",
    OVER_GOALS_4_5 = "OVER_GOALS_4_5",
    OVER_GOALS_5_5 = "OVER_GOALS_5_5",
    OVER_GOALS_6_5 = "OVER_GOALS_6_5",
    OVER_CORNERS_6_5 = "OVER_CORNERS_6_5",
    OVER_CORNERS_7_5 = "OVER_CORNERS_7_5",
    OVER_CORNERS_8_5 = "OVER_CORNERS_8_5",
    OVER_CORNERS_9_5 = "OVER_CORNERS_9_5",
    OVER_CORNERS_10_5 = "OVER_CORNERS_10_5",
    OVER_CORNERS_11_5 = "OVER_CORNERS_11_5",
    OVER_CORNERS_12_5 = "OVER_CORNERS_12_5",
    OVER_CORNERS_13_5 = "OVER_CORNERS_13_5"
};

And all available values for some of the markets:

enum OneXTwoEnum {
    ONE = "1",
    X = "x",
    TWO = "2"
};

enum DoubleChanceEnum {
    ONE_X = "1x",
    X_TWO = "x2",
    ONE_TWO = "12",
};

enum HalfTimeFullTimeEnum {
    ONE_ONE = "1/1",
    ONE_X = "1/x",
    ONE_TWO = "1/2",
    X_ONE = "x/1",
    X_X = "x/x",
    X_TWO = "x/2",
    TWO_ONE = "2/1",
    TWO_X = "2/x",
    TWO_TWO = "2/2"
};

FT_1X2

For example you want to make a prediction for market FT_1X2 with value "x". Here is an example call:

// Value for prediction must be OneXTwoEnum
const value = 'x'; // For JavaScript
const value = OneXTwoEnum.X; // For TypeScript


sdk.predictor
  .makeFootballPrediction('matchId', 'FT_1X2', value)
  .then((responseObject) => {
    // Do something with responseObject
  })
  .catch((error) => {
    // Handle error
  });

Same goes for HT_1X2 market

DOUBLE_CHANCE

For example you want to make a prediction for market DOUBLE_CHANCE with value "1x". Here is an example call:

// Value for prediction must be DoubleChanceEnum
const value = '1x'; // For JavaScript
const value = DoubleChanceEnum.ONE_X; // For TypeScript

sdk.predictor
  .makeFootballPrediction('matchId', 'DOUBLE_CHANCE', value)
  .then((responseObject) => {
    // Do something with responseObject
  })
  .catch((error) => {
    // Handle error
  });

HT_FT

For example you want to make a prediction for market HT_FT with value "1/x". Here is an example call:

// Value for prediction must be HalfTimeFullTimeEnum
const value = '1/x'; // For JavaScript
const value = HalfTimeFullTimeEnum.ONE_X; // For TypeScript

sdk.predictor
  .makeFootballPrediction('matchId', 'HT_FT', value)
  .then((responseObject) => {
    // Do something with responseObject
  })
  .catch((error) => {
    // Handle error
  });

Player related markets

For example you want to make a prediction for market PLAYER_SCORE_TWICE with playerId and prediction. Here is an example call:

const value = true;
const playerId = 'id of player';

sdk.predictor
  .makeFootballPrediction('matchId', 'PLAYER_SCORE_TWICE', value, playerId)
  .then((responseObject) => {
    // Do something with responseObject
  })
  .catch((error) => {
    // Handle error
  });

Same goes for all other PLAYER related markets

N.B:
You can provide playerId: null OR playerId: "OWN_GOAL" for market PLAYER_SCORE_FIRST_GOAL.
That way we handle the case for Match Quiz play method

BOTH_TEAMS_SCORE

For example you want to make a prediction for market BOTH_TEAMS_SCORE with prediction true. Here is an example call:

const value = true;

sdk.predictor
  .makeFootballPrediction('matchId', 'BOTH_TEAMS_SCORE', value)
  .then((responseObject) => {
    // Do something with responseObject
  })
  .catch((error) => {
    // Handle error
  });

Same goes for RED_CARD_MATCH, PENALTY_MATCH, all OVER_GOALS and OVER_CORNERS sub markets

CORNERS_MATCH

For example you want to make a prediction for market CORNERS_MATCH with prediction some number. Here is an example call:

const value = 9;

sdk.predictor
  .makeFootballPrediction('matchId', 'CORNERS_MATCH', value)
  .then((responseObject) => {
    // Do something with responseObject
  })
  .catch((error) => {
    // Handle error
  });

CORRECT_SCORE, CORRECT_SCORE_HT, CORRECT_SCORE_ADVANCED

For example you want to make a prediction for market CORRECT_SCORE with prediction correct score. Here is an example call:

const value '2:1'; // prediction has to be in this format !!!

sdk.predictor
  .makeFootballPrediction('matchId', 'CORRECT_SCORE', value)
  .then((responseObject) => {
    // Do something with responseObject
  })
  .catch((error) => {
    // Handle error
  });