Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
neipo13 committed Jan 18, 2024
1 parent 7841360 commit e82af5c
Show file tree
Hide file tree
Showing 40 changed files with 2,058 additions and 155 deletions.
16 changes: 12 additions & 4 deletions CBB/CBBv3Odds.js
Original file line number Diff line number Diff line change
Expand Up @@ -133,19 +133,23 @@ class CBBv3OddsClient extends BaseClient {
/// Get Betting Markets by Event
/// </summary>
/// <param name="eventId">The EventId of the desired event/game for which to pull all betting markets (includes outcomes/bets).</param>
getBettingMarketsByEventPromise(eventId){
/// <param name="include">This parameter indicates which <code>BettingOutcome</code> records to return in the payload. By default, this endpoint only returns available outcomes, excluding the unlisted bets. <b>Important Note:</b> the default parameter of available is much faster and provides the best performance. Passing unlisted will return unlisted odds, but these are cached for much longer and may be several minutes old. For best performance, the default parameter is highly recommended. Possible values include: <code>available</code> - excludes any betting outcomes that have been removed/unlisted by the respective sportsbook. This is more lightweight and delivers odds much faster than using unlisted. <code>unlisted</code> - includes the most recently available betting outcome per sportsbook, for each listed market, even those outcomes are expired/unlisted or otherwise unavailable from the respective sportsbook. This is a far heavier payload, and it's cached for much longer than available.</param>
getBettingMarketsByEventPromise(eventId, include){
var parameters = {};
parameters['eventId']=eventId;
parameters['include']=include;
return this.GetPromise('/v3/cbb/odds/{format}/BettingMarkets/{eventId}', parameters);
}

/// <summary>
/// Get Betting Markets by GameID
/// </summary>
/// <param name="gameid">The GameID of the desired game for which to pull all betting markets (includes outcomes/bets).</param>
getBettingMarketsByGameIDPromise(gameid){
/// <param name="include">This parameter indicates which <code>BettingOutcome</code> records to return in the payload. By default, this endpoint only returns available outcomes, excluding the unlisted bets. <b>Important Note:</b> the default parameter of available is much faster and provides the best performance. Passing unlisted will return unlisted odds, but these are cached for much longer and may be several minutes old. For best performance, the default parameter is highly recommended. Possible values include: <code>available</code> - excludes any betting outcomes that have been removed/unlisted by the respective sportsbook. This is more lightweight and delivers odds much faster than using unlisted. <code>unlisted</code> - includes the most recently available betting outcome per sportsbook, for each listed market, even those outcomes are expired/unlisted or otherwise unavailable from the respective sportsbook. This is a far heavier payload, and it's cached for much longer than available.</param>
getBettingMarketsByGameIDPromise(gameid, include){
var parameters = {};
parameters['gameid']=gameid;
parameters['include']=include;
return this.GetPromise('/v3/cbb/odds/{format}/BettingMarketsByGameID/{gameid}', parameters);
}

Expand All @@ -154,10 +158,12 @@ class CBBv3OddsClient extends BaseClient {
/// </summary>
/// <param name="eventId">The EventId of the desired event/game for which to pull all betting markets (includes outcomes/bets).</param>
/// <param name="marketTypeID">The Market Type ID of the desired MarketTypes to pull. Some common types include: <code>1</code> for Game Lines, <code>2</code> for Player Props, <code>3</code> for Team Props, <code>6</code> for Game Props</param>
getBettingMarketsByMarketTypePromise(eventId, marketTypeID){
/// <param name="include">This parameter indicates which <code>BettingOutcome</code> records to return in the payload. By default, this endpoint only returns available outcomes, excluding the unlisted bets. <b>Important Note:</b> the default parameter of available is much faster and provides the best performance. Passing unlisted will return unlisted odds, but these are cached for much longer and may be several minutes old. For best performance, the default parameter is highly recommended. Possible values include: <code>available</code> - excludes any betting outcomes that have been removed/unlisted by the respective sportsbook. This is more lightweight and delivers odds much faster than using unlisted. <code>unlisted</code> - includes the most recently available betting outcome per sportsbook, for each listed market, even those outcomes are expired/unlisted or otherwise unavailable from the respective sportsbook. This is a far heavier payload, and it's cached for much longer than available.</param>
getBettingMarketsByMarketTypePromise(eventId, marketTypeID, include){
var parameters = {};
parameters['eventId']=eventId;
parameters['marketTypeID']=marketTypeID;
parameters['include']=include;
return this.GetPromise('/v3/cbb/odds/{format}/BettingMarketsByMarketType/{eventId}/{marketTypeID}', parameters);
}

Expand Down Expand Up @@ -199,9 +205,11 @@ class CBBv3OddsClient extends BaseClient {
/// Get Betting Player Props by GameID
/// </summary>
/// <param name="gameId">The unique GameID of the game in question.</param>
getBettingPlayerPropsByGameIDPromise(gameId){
/// <param name="include">This parameter indicates which <code>BettingOutcome</code> records to return in the payload. By default, this endpoint only returns available outcomes, excluding the unlisted bets. <b>Important Note:</b> the default parameter of available is much faster and provides the best performance. Passing unlisted will return unlisted odds, but these are cached for much longer and may be several minutes old. For best performance, the default parameter is highly recommended. Possible values include: <code>available</code> - excludes any betting outcomes that have been removed/unlisted by the respective sportsbook. This is more lightweight and delivers odds much faster than using unlisted. <code>unlisted</code> - includes the most recently available betting outcome per sportsbook, for each listed market, even those outcomes are expired/unlisted or otherwise unavailable from the respective sportsbook. This is a far heavier payload, and it's cached for much longer than available.</param>
getBettingPlayerPropsByGameIDPromise(gameId, include){
var parameters = {};
parameters['gameId']=gameId;
parameters['include']=include;
return this.GetPromise('/v3/cbb/odds/{format}/BettingPlayerPropsByGameID/{gameId}', parameters);
}

Expand Down
39 changes: 23 additions & 16 deletions CBB/CBBv3Scores.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,10 @@ class CBBv3ScoresClient extends BaseClient {
}

/// <summary>
/// Get Games by Date
/// Get Games by Date - Legacy
/// </summary>
/// <param name="date">The date of the game(s). Examples: <code>2018-FEB-27</code>, <code>2017-DEC-01</code>.</param>
getGamesByDatePromise(date){
getGamesByDateLegacyPromise(date){
var parameters = {};
parameters['date']=date;
return this.GetPromise('/v3/cbb/scores/{format}/GamesByDate/{date}', parameters);
Expand Down Expand Up @@ -66,10 +66,10 @@ class CBBv3ScoresClient extends BaseClient {
}

/// <summary>
/// Get Schedules
/// Get Schedules - Legacy
/// </summary>
/// <param name="season">Year of the season (with optional season type). Examples: <code>2018</code>, <code>2018PRE</code>, <code>2018POST</code>, <code>2018STAR</code>, <code>2019</code>, etc.</param>
getSchedulesPromise(season){
getSchedulesLegacyPromise(season){
var parameters = {};
parameters['season']=season;
return this.GetPromise('/v3/cbb/scores/{format}/Games/{season}', parameters);
Expand All @@ -96,9 +96,9 @@ class CBBv3ScoresClient extends BaseClient {
}

/// <summary>
/// Get Teams
/// Get Teams - Legacy
/// </summary>
getTeamsPromise(){
getTeamsLegacyPromise(){
return this.GetPromise('/v3/cbb/scores/{format}/teams');
}

Expand All @@ -120,11 +120,11 @@ class CBBv3ScoresClient extends BaseClient {
}

/// <summary>
/// Get Team Schedule
/// Get Team Schedule - Legacy
/// </summary>
/// <param name="season">Year of the season (with optional season type). Examples: <code>2018</code>, <code>2018PRE</code>, <code>2018POST</code>, <code>2018STAR</code>, <code>2019</code>, etc.</param>
/// <param name="team">The abbreviation of the requested team. Examples: <code>SF</code>, <code>NYY</code>.</param>
getTeamSchedulePromise(season, team){
getTeamScheduleLegacyPromise(season, team){
var parameters = {};
parameters['season']=season;
parameters['team']=team;
Expand Down Expand Up @@ -153,42 +153,49 @@ class CBBv3ScoresClient extends BaseClient {
}

/// <summary>
/// Get Games by Date (Basic)
/// Get Scores by Date
/// </summary>
/// <param name="date">The date of the game(s). Examples: <code>2018-FEB-27</code>, <code>2017-DEC-01</code>.</param>
getGamesByDateBasicPromise(date){
getScoresByDatePromise(date){
var parameters = {};
parameters['date']=date;
return this.GetPromise('/v3/cbb/scores/{format}/ScoresBasic/{date}', parameters);
}

/// <summary>
/// Get Players by Team (Basic)
/// Get Players by Team
/// </summary>
/// <param name="team">The abbreviation of the requested team. Examples: <code>SF</code>, <code>NYY</code>.</param>
getPlayersByTeamBasicPromise(team){
getPlayersByTeamPromise(team){
var parameters = {};
parameters['team']=team;
return this.GetPromise('/v3/cbb/scores/{format}/PlayersBasic/{team}', parameters);
}

/// <summary>
/// Get Schedules (Basic)
/// Get Schedules
/// </summary>
/// <param name="season">Year of the season (with optional season type). Examples: <code>2018</code>, <code>2018PRE</code>, <code>2018POST</code>, <code>2018STAR</code>, <code>2019</code>, etc.</param>
getSchedulesBasicPromise(season){
getSchedulesPromise(season){
var parameters = {};
parameters['season']=season;
return this.GetPromise('/v3/cbb/scores/{format}/SchedulesBasic/{season}', parameters);
}

/// <summary>
/// Get Teams (Basic)
/// Get Teams
/// </summary>
getTeamsBasicPromise(){
getTeamsPromise(){
return this.GetPromise('/v3/cbb/scores/{format}/TeamsBasic');
}

/// <summary>
/// Get Players by Active
/// </summary>
getPlayersByActivePromise(){
return this.GetPromise('/v3/cbb/scores/{format}/PlayersByActive');
}

}

module.exports = CBBv3ScoresClient;
Expand Down
16 changes: 12 additions & 4 deletions CFB/CFBv3Odds.js
Original file line number Diff line number Diff line change
Expand Up @@ -139,19 +139,23 @@ class CFBv3OddsClient extends BaseClient {
/// Get Betting Markets by Event
/// </summary>
/// <param name="eventId">The EventId of the desired event/game for which to pull all betting markets (includes outcomes/bets).</param>
getBettingMarketsByEventPromise(eventId){
/// <param name="include">This parameter indicates which <code>BettingOutcome</code> records to return in the payload. By default, this endpoint only returns available outcomes, excluding the unlisted bets. <b>Important Note:</b> the default parameter of available is much faster and provides the best performance. Passing unlisted will return unlisted odds, but these are cached for much longer and may be several minutes old. For best performance, the default parameter is highly recommended. Possible values include: <code>available</code> - excludes any betting outcomes that have been removed/unlisted by the respective sportsbook. This is more lightweight and delivers odds much faster than using unlisted. <code>unlisted</code> - includes the most recently available betting outcome per sportsbook, for each listed market, even those outcomes are expired/unlisted or otherwise unavailable from the respective sportsbook. This is a far heavier payload, and it's cached for much longer than available.</param>
getBettingMarketsByEventPromise(eventId, include){
var parameters = {};
parameters['eventId']=eventId;
parameters['include']=include;
return this.GetPromise('/v3/cfb/odds/{format}/BettingMarkets/{eventId}', parameters);
}

/// <summary>
/// Get Betting Markets by GameID
/// </summary>
/// <param name="gameid">The GameID of the desired game for which to pull all betting markets (includes outcomes/bets).</param>
getBettingMarketsByGameIDPromise(gameid){
/// <param name="include">This parameter indicates which <code>BettingOutcome</code> records to return in the payload. By default, this endpoint only returns available outcomes, excluding the unlisted bets. <b>Important Note:</b> the default parameter of available is much faster and provides the best performance. Passing unlisted will return unlisted odds, but these are cached for much longer and may be several minutes old. For best performance, the default parameter is highly recommended. Possible values include: <code>available</code> - excludes any betting outcomes that have been removed/unlisted by the respective sportsbook. This is more lightweight and delivers odds much faster than using unlisted. <code>unlisted</code> - includes the most recently available betting outcome per sportsbook, for each listed market, even those outcomes are expired/unlisted or otherwise unavailable from the respective sportsbook. This is a far heavier payload, and it's cached for much longer than available.</param>
getBettingMarketsByGameIDPromise(gameid, include){
var parameters = {};
parameters['gameid']=gameid;
parameters['include']=include;
return this.GetPromise('/v3/cfb/odds/{format}/BettingMarketsByGameID/{gameid}', parameters);
}

Expand All @@ -160,10 +164,12 @@ class CFBv3OddsClient extends BaseClient {
/// </summary>
/// <param name="eventId">The EventId of the desired event/game for which to pull all betting markets (includes outcomes/bets).</param>
/// <param name="marketTypeID">The Market Type ID of the desired MarketTypes to pull. Some common types include: <code>1</code> for Game Lines, <code>2</code> for Player Props, <code>3</code> for Team Props, <code>6</code> for Game Props</param>
getBettingMarketsByMarketTypePromise(eventId, marketTypeID){
/// <param name="include">This parameter indicates which <code>BettingOutcome</code> records to return in the payload. By default, this endpoint only returns available outcomes, excluding the unlisted bets. <b>Important Note:</b> the default parameter of available is much faster and provides the best performance. Passing unlisted will return unlisted odds, but these are cached for much longer and may be several minutes old. For best performance, the default parameter is highly recommended. Possible values include: <code>available</code> - excludes any betting outcomes that have been removed/unlisted by the respective sportsbook. This is more lightweight and delivers odds much faster than using unlisted. <code>unlisted</code> - includes the most recently available betting outcome per sportsbook, for each listed market, even those outcomes are expired/unlisted or otherwise unavailable from the respective sportsbook. This is a far heavier payload, and it's cached for much longer than available.</param>
getBettingMarketsByMarketTypePromise(eventId, marketTypeID, include){
var parameters = {};
parameters['eventId']=eventId;
parameters['marketTypeID']=marketTypeID;
parameters['include']=include;
return this.GetPromise('/v3/cfb/odds/{format}/BettingMarketsByMarketType/{eventId}/{marketTypeID}', parameters);
}

Expand Down Expand Up @@ -215,9 +221,11 @@ class CFBv3OddsClient extends BaseClient {
/// Get Betting Player Props by GameID
/// </summary>
/// <param name="gameId">The unique GameID of the game in question.</param>
getBettingPlayerPropsByGameIDPromise(gameId){
/// <param name="include">This parameter indicates which <code>BettingOutcome</code> records to return in the payload. By default, this endpoint only returns available outcomes, excluding the unlisted bets. <b>Important Note:</b> the default parameter of available is much faster and provides the best performance. Passing unlisted will return unlisted odds, but these are cached for much longer and may be several minutes old. For best performance, the default parameter is highly recommended. Possible values include: <code>available</code> - excludes any betting outcomes that have been removed/unlisted by the respective sportsbook. This is more lightweight and delivers odds much faster than using unlisted. <code>unlisted</code> - includes the most recently available betting outcome per sportsbook, for each listed market, even those outcomes are expired/unlisted or otherwise unavailable from the respective sportsbook. This is a far heavier payload, and it's cached for much longer than available.</param>
getBettingPlayerPropsByGameIDPromise(gameId, include){
var parameters = {};
parameters['gameId']=gameId;
parameters['include']=include;
return this.GetPromise('/v3/cfb/odds/{format}/BettingPlayerPropsByGameID/{gameId}', parameters);
}

Expand Down
Loading

0 comments on commit e82af5c

Please sign in to comment.