public interface OddsCreatorFeed
Modifier and Type | Method and Description |
---|---|
List<IdNameEntity> |
getCategories(int sportId)
Returns a list of category ids and the corresponding descriptions we provide
for a specified sport.
|
List<IdNameEntity> |
getGenders()
Returns a list of gender ids and the corresponding gender
description used to calculate tennis odds.
|
List<IdNameEntity> |
getOddsTypeIds(int sportId,
boolean needMatchId)
Returns a list of odds type ids and the corresponding odds type
names.
|
List<IdNameEntity> |
getOutcomeTypeIds(int sportId,
int oddsTypeId)
Returns a list of outcome type ids and the corresponding outcome type names.
|
List<OddsTypeEntity> |
getSidebets(int sportId,
List<Integer> oddsTypeIds,
double homeOdds,
double drawOdds,
double awayOdds,
double totalSpread,
double overOdds,
double underOdds)
General special odds calculation.
|
List<OddsTypeEntity> |
getSidebetsWithKey(int sportId,
double homeOdds,
double drawOdds,
double awayOdds,
double totalSpread,
double overOdds,
double underOdds,
int oddsTypeId,
double oddsKey)
Special odds calculation with a given odds type id and odds key.
|
List<OddsTypeEntity> |
getSidebetsWithMatchid(long matchId,
List<Integer> oddsTypeIds,
double homeOdds,
double drawOdds,
double awayOdds,
double totalSpread,
double overOdds,
double underOdds)
Special odds calculation with a given match id.
|
List<OddsTypeEntity> |
getSidebetsWithMatchidAndKey(long matchId,
double homeOdds,
double drawOdds,
double awayOdds,
double totalSpread,
double overOdds,
double underOdds,
int oddsTypeId,
double oddsKey)
Special odds calculation with a given match id, odds type and odds key.
|
List<OddsTypeEntity> |
getSidebetsWithTournamentIdAndCategoryId(int sportId,
int categoryId,
int tournamentId,
List<Integer> oddsTypeIds,
double homeOdds,
double drawOdds,
double awayOdds,
double totalSpread,
double overOdds,
double underOdds)
Special odds calculation with a given tournament id and category id.
|
List<IdNameEntity> |
getSports()
Returns a list of sport ids and the corresponding sport names.
|
List<IdNameEntity> |
getSurfaces()
Returns a list of surface ids and the corresponding surface type names used to calculate tennis odds.
|
List<IdNameEntity> |
getTennisMatchInfo(long matchId)
Returns the tennis match info
|
List<OddsTypeEntity> |
getTennisSidebets(double homeOdds,
double awayOdds,
int gender,
int bestOfSets,
int surface)
This is a specific method to calculate tennis special odds.
|
List<OddsTypeEntity> |
getTennisSidebetsWithKey(double homeOdds,
double awayOdds,
int gender,
int bestOfSets,
int surface,
int oddsTypeId,
double oddsKey)
This method lets you request odds for tennis for a specific market, adjusted to the key you provide.
|
List<OddsTypeEntity> |
getTennisSidebetsWithTournamentIdAndCategoryId(double homeOdds,
double awayOdds,
int gender,
int bestOfSets,
int surface,
int categoryId,
int tournamentId)
Tennis special odds calculation with tournament id and category id.
|
List<IdNameEntity> |
getTournaments(int categoryId)
Returns a list of tournament ids and the corresponding tournament names.
|
List<OddsTypeEntity> |
getVolleySidebets(int sportId,
List<Integer> oddsTypeIds,
double homeOdds,
double drawOdds,
double awayOdds,
double totalSpread,
double overOdds,
double underOdds,
int gender,
int topLeague)
(Beach) Volleyball special odds calculation
|
List<OddsTypeEntity> |
getVolleySidebetsWithKey(int sportId,
double homeOdds,
double drawOdds,
double awayOdds,
double totalSpread,
double overOdds,
double underOdds,
int gender,
int topLeague,
int oddsTypeId,
double oddsKey)
(Beach) Volleyball special odds calculation with odds type and odds key
|
List<OddsTypeEntity> |
getVolleySidebetsWithTournamentIdAndCategoryId(int sportId,
List<Integer> oddsTypeIds,
double homeOdds,
double drawOdds,
double awayOdds,
double totalSpread,
double overOdds,
double underOdds,
int gender,
int topLeague,
int categoryId,
int tournamentId)
(Beach) Volleyball special odds calculation with tournament id and category id
|
List<IdNameEntity> getCategories(int sportId) throws OddsCreatorException
sportId
- The sport id to fetch the categories from.OddsCreatorException
- when any problem occursList<IdNameEntity> getGenders() throws OddsCreatorException
OddsCreatorException
- when any problem occursList<IdNameEntity> getOddsTypeIds(int sportId, boolean needMatchId) throws OddsCreatorException
sportId
- The sport id.needMatchId
- If set to false, only oddstypes that does not require , match id are returned, otherwise all available.OddsCreatorException
- when any problem occursList<IdNameEntity> getOutcomeTypeIds(int sportId, int oddsTypeId) throws OddsCreatorException
sportId
- The sport id.oddsTypeId
- The odds type id.OddsCreatorException
- when any problem occursList<OddsTypeEntity> getSidebets(int sportId, List<Integer> oddsTypeIds, double homeOdds, double drawOdds, double awayOdds, double totalSpread, double overOdds, double underOdds) throws OddsCreatorException
This is the main method where most of the special odds are calculated. The odds keys are calculated according to the configuration set in betradar.com, or default values if none are set.
sportId
- The internal Betradar sport id.oddsTypeIds
- List of ids corresponding to the odds type ids you want adjusted. (The possible odds type ids are described
in detail in “Life Cycle of Odds” documentation, available in the download section at betradar.com). If the list is empty, all available
odds types will be generated.homeOdds
- Your home team match bet odds.drawOdds
- Your draw match bet odds (set to 0.0 for sports where a draw outcome is not possible (Basketball, American Football, Baseball and so on).awayOdds
- Your away team match bet odds.totalSpread
- Your total odds spread.overOdds
- Your over odds.underOdds
- Your under odds.OddsCreatorException
- when any problem occursList<OddsTypeEntity> getSidebetsWithKey(int sportId, double homeOdds, double drawOdds, double awayOdds, double totalSpread, double overOdds, double underOdds, int oddsTypeId, double oddsKey) throws OddsCreatorException
This method lets you request odds for a specific market, adjusted to the key you provide.
sportId
- The sport id.homeOdds
- Your home team match bet odds.drawOdds
- Your draw match bet odds (set to 0.0 for sports where a draw outcome is not possible (Basketball, American Football, Baseball and so on).awayOdds
- Your away team match bet odds.totalSpread
- Your total odds spread.overOdds
- Your over odds.underOdds
- Your under odds.oddsTypeId
- The odds type you want adjusted.oddsKey
- The odds key you want your odds adjusted to.OddsCreatorException
- when any problem occursList<OddsTypeEntity> getSidebetsWithMatchid(long matchId, List<Integer> oddsTypeIds, double homeOdds, double drawOdds, double awayOdds, double totalSpread, double overOdds, double underOdds) throws OddsCreatorException
This method follows the same as getSideBets, but based on a specific match. It adjusts the odds key according to the configuration set at betradar.com. Default values will be chosen if none are set explicitly.
matchId
- The Betradar match id.oddsTypeIds
- List of ids corresponding to the odds type ids you want adjusted. (The possible odds type ids are described
in detail in “Life Cycle of Odds” documentation, available in the download section at betradar.com). If the list is empty, all available
odds types will be generated.homeOdds
- Your home team match bet odds.drawOdds
- Your draw match bet odds (set to 0.0 for sports where a draw outcome is not possible (Basketball, American Football, Baseball and so on).awayOdds
- Your away team match bet odds.totalSpread
- Your total odds spread.overOdds
- Your over odds.underOdds
- Your under odds.OddsCreatorException
- when any problem occursList<OddsTypeEntity> getSidebetsWithMatchidAndKey(long matchId, double homeOdds, double drawOdds, double awayOdds, double totalSpread, double overOdds, double underOdds, int oddsTypeId, double oddsKey) throws OddsCreatorException
This method lets you request odds for a given match, for a specific market, adjusted to the key you provide.
matchId
- The Betradar match id.homeOdds
- Your home team match bet odds.drawOdds
- Your draw match bet odds (set to 0.0 for sports where a draw outcome is not possible (Basketball, American Football, Baseball and so on).awayOdds
- Your away team match bet odds.totalSpread
- Your total odds spread.overOdds
- Your over odds.underOdds
- Your under odds.oddsTypeId
- The odds type you want adjusted.oddsKey
- The odds key you want your odds adjusted to.OddsCreatorException
- when any problem occursList<OddsTypeEntity> getSidebetsWithTournamentIdAndCategoryId(int sportId, int categoryId, int tournamentId, List<Integer> oddsTypeIds, double homeOdds, double drawOdds, double awayOdds, double totalSpread, double overOdds, double underOdds) throws OddsCreatorException
This method follows the same as getSidebets. In addition it adjusts the odds key according to the configuration set at betradar.com, based on given tournament and / or category id. Default values will be chosen if none are set explicitly. To ignore either the tournament or category id, set id to 0.
sportId
- The sport id.categoryId
- Id to indicate the category configuration we do calculations based upon. Set to 0 if category should not be taken into consideration.tournamentId
- Id to indicate the tournament configuration we do calculations based upon. Set to 0 if tournament should not be taken into consideration.oddsTypeIds
- List of ids corresponding to the odds type ids you want adjusted.(The possible odds type ids are described in detail in
“Life Cycle of Odds” documentation, available in the download section at betradar.com). If the list is empty,all available odds types will be generated.homeOdds
- The home odds.drawOdds
- The draw odds.awayOdds
- The away odds.totalSpread
- The total spread.overOdds
- The over odds.underOdds
- The under odds.OddsCreatorException
- when any problem occursList<IdNameEntity> getSports() throws OddsCreatorException
OddsCreatorException
- when any problem occursList<IdNameEntity> getSurfaces() throws OddsCreatorException
OddsCreatorException
- when any problem occursList<OddsTypeEntity> getTennisSidebets(double homeOdds, double awayOdds, int gender, int bestOfSets, int surface) throws OddsCreatorException
homeOdds
- Your home team match bet odds.awayOdds
- Your away team match bet odds.gender
- Id to indicate if this is a match played by men or women.bestOfSets
- Specify if the match is best of 3 sets or best of 5 sets.surface
- Id to indicate what kind of surface the match is played on.OddsCreatorException
- when any problem occursList<OddsTypeEntity> getTennisSidebetsWithKey(double homeOdds, double awayOdds, int gender, int bestOfSets, int surface, int oddsTypeId, double oddsKey) throws OddsCreatorException
homeOdds
- Your home team match bet odds.awayOdds
- Your away team match bet odds.gender
- Id to indicate if this is a match played by men or women.bestOfSets
- Specify if the match is best of 3 sets or best of 5 sets.surface
- Id to indicate what kind of surface the match is played on.oddsTypeId
- The odds type you want adjusted.oddsKey
- The odds key you want your odds adjusted to.OddsCreatorException
- when any problem occursList<OddsTypeEntity> getTennisSidebetsWithTournamentIdAndCategoryId(double homeOdds, double awayOdds, int gender, int bestOfSets, int surface, int categoryId, int tournamentId) throws OddsCreatorException
This method does the same as getTennisSidebets(homeOdds, awayOdds, gender, bestOfSets, surface). In addition it adjusts the odds key according to the configuration set at betradar.com, based on given tournament and / or category id. Default values will be chosen if none are set explicitly. To ignore either the tournament or category id, set id to 0.
homeOdds
- Your home team match bet odds.awayOdds
- Your away team match bet odds.gender
- Id to indicate if this is a match played by men or women.bestOfSets
- Specify if the match is best of 3 sets or best of 5 sets.surface
- Id to indicate what kind of surface the match is played on.categoryId
- Id to indicate the category configuration we do calculations based upon. Set to 0 if category should not be taken into consideration.tournamentId
- Id to indicate the tournament configuration we do calculations based upon. Set to 0 if tournament should not be taken into considerationOddsCreatorException
- when any problem occursList<IdNameEntity> getTournaments(int categoryId) throws OddsCreatorException
categoryId
- The category id to get the tournaments in.OddsCreatorException
- when any problem occursList<OddsTypeEntity> getVolleySidebets(int sportId, List<Integer> oddsTypeIds, double homeOdds, double drawOdds, double awayOdds, double totalSpread, double overOdds, double underOdds, int gender, int topLeague) throws OddsCreatorException
This is a specific method to calculate volleyball / beach volleyball special odds. The odds calculation requires other input parameters than the rest of the sports.
sportId
- the internal Betradar sport id. (23 for volleyball, or 34 for beach volleyball).oddsTypeIds
- a list of ids corresponding to the odds type ids you want
calculated. (The possible odds type ids are described in detail in “Life Cycle of Odds”
documentation, available in the download section at betradar.com.
If the list is empty, all available odds types will be generated.homeOdds
- your home team match bet odds.drawOdds
- (double)– your draw match bet odds.awayOdds
- your away team match bet odds.totalSpread
- your total odds spread.overOdds
- your over odds.underOdds
- your under odds.gender
- id to indicate if this is a match played by men or women. (See section 3.4 for details).topLeague
- number to indicate whether it is a top league game or not.OddsCreatorException
- when any problem occursList<OddsTypeEntity> getVolleySidebetsWithKey(int sportId, double homeOdds, double drawOdds, double awayOdds, double totalSpread, double overOdds, double underOdds, int gender, int topLeague, int oddsTypeId, double oddsKey) throws OddsCreatorException
This method lets you request odds for volleyball for a specific market, adjusted to the key you provide.
sportId
- the internal Betradar sport id. (23 for volleyball, or 34 for beach volleyball).homeOdds
- your home team match bet odds.drawOdds
- (double)– your draw match bet odds.awayOdds
- your away team match bet odds.totalSpread
- your total odds spread.overOdds
- your over odds.underOdds
- your under odds.gender
- id to indicate if this is a match played by men or women.topLeague
- number to indicate whether it is a top league game or not.oddsTypeId
- the odds type you want calculated.oddsKey
- the odds key you want your odds adjusted to (greater than 99).OddsCreatorException
- when any problem occursList<OddsTypeEntity> getVolleySidebetsWithTournamentIdAndCategoryId(int sportId, List<Integer> oddsTypeIds, double homeOdds, double drawOdds, double awayOdds, double totalSpread, double overOdds, double underOdds, int gender, int topLeague, int categoryId, int tournamentId) throws OddsCreatorException
This method does the same as getVolleySidebets. In addition it adjusts the odds key according to the configuration set at betradar.com, based on given tournament and / or category id. Default values will be chosen if none are set explicitly. To ignore either the tournament or category id, set id to 0.
sportId
- the internal Betradar sport id. (23 for volleyball, or 34 for beach volleyball).oddsTypeIds
- a list of ids corresponding to the odds type ids you want
calculated. (The possible odds type ids are described in detail in “Life Cycle of Odds”
documentation, available in the download section at betradar.com.
If the list is empty, all available odds types will be generated.homeOdds
- your home team match bet odds.drawOdds
- (double)– your draw match bet odds.awayOdds
- your away team match bet odds.totalSpread
- your total odds spread.overOdds
- your over odds.underOdds
- your under odds.gender
- id to indicate if this is a match played by men or women.topLeague
- number to indicate whether it is a top league game or not.categoryId
- id to indicate the category configuration we do calculations based
upon. Set to 0 if category should not be taken into consideration.tournamentId
- id to indicate the tournament configuration we do calculations
based upon. Set to 0 if tournament should not be taken into consideration.OddsCreatorException
- when any problem occursList<IdNameEntity> getTennisMatchInfo(long matchId) throws OddsCreatorException
matchId
- id of the matchOddsCreatorException
Copyright © 2013–2023. All rights reserved.