Documentation ¶
Index ¶
- type ApiClient
- func (a *ApiClient) GetBets(ctx context.Context, r *BetsRequest) (res *BetsResponse, err error)
- func (a *ApiClient) GetBettingStatus(ctx context.Context) (res *BettingStatusResponse, err error)
- func (a *ApiClient) GetCancellationReasons(ctx context.Context) (res *CancellationReasonsResponse, err error)
- func (a *ApiClient) GetClientBalance(ctx context.Context) (res *ClientBalanceResponse, err error)
- func (a *ApiClient) GetCurrencies(ctx context.Context) (res *CurrenciesResponse, err error)
- func (a *ApiClient) GetFixtures(ctx context.Context, r *FixturesRequest) (res *FixturesResponse, err error)
- func (a *ApiClient) GetFixturesSettled(ctx context.Context, r *FixturesSettledRequest) (res *FixturesSettledResponse, err error)
- func (a *ApiClient) GetFixturesSpecial(ctx context.Context, r *FixturesSpecialRequest) (res *FixturesSpecialResponse, err error)
- func (a *ApiClient) GetFixturesSpecialSettled(ctx context.Context, r *FixturesSpecialSettledRequest) (res *FixturesSpecialSettledResponse, err error)
- func (a *ApiClient) GetInRunning(ctx context.Context) (res *InrunningResponse, err error)
- func (a *ApiClient) GetLeagues(ctx context.Context, r *LeaguesRequest) (res *LeaguesResponse, err error)
- func (a *ApiClient) GetLine(ctx context.Context, r *LineRequest) (res *LineResponse, err error)
- func (a *ApiClient) GetLineParlay(ctx context.Context, r *LineParlayRequest) (res *LineParlayResponse, err error)
- func (a *ApiClient) GetLineTeaser(ctx context.Context, r *LineTeaserRequest) (res *LineTeaserResponse, err error)
- func (a *ApiClient) GetOdds(ctx context.Context, r *OddsRequest) (res *OddsResponse, err error)
- func (a *ApiClient) GetOddsParlay(ctx context.Context, r *OddsRequest) (res *OddsParlayResponse, err error)
- func (a *ApiClient) GetOddsSpecial(ctx context.Context, r *OddsSpecialRequest) (res *OddsSpecialResponse, err error)
- func (a *ApiClient) GetOddsTeaser(ctx context.Context, r *OddsTeaserRequest) (res *OddsTeaserResponse, err error)
- func (a *ApiClient) GetPeriods(ctx context.Context, r *PeriodsRequest) (res *PeriodsResponse, err error)
- func (a *ApiClient) GetSpecialLine(ctx context.Context, r *SpecialLineRequest) (res *LineSpecialResponse, err error)
- func (a *ApiClient) GetSports(ctx context.Context) (res *SportsResponse, err error)
- func (a *ApiClient) GetTeaserGroups(ctx context.Context, r *TeaserGroupsRequest) (res *TeaserGroupsResponse, err error)
- func (a *ApiClient) PlaceParlayBet(ctx context.Context, r *ParlayBetRequest) (res *PlaceParlayBetResponse, err error)
- func (a *ApiClient) PlaceStraightBet(ctx context.Context, r *PlaceStraightBetRequest) (res *PlaceStraightBetResponse, err error)
- func (a *ApiClient) PlaceTeaserBet(ctx context.Context, r *TeaserBetRequest) (res *TeaserBetResponse, err error)
- func (a *ApiClient) Send(ctx context.Context, target interface{}, requestMethod string, path string, ...) (err error)
- type AwayParlay
- type BetListType
- type BetStatusesType
- type BetType
- type BetsRequest
- type BetsResponse
- type BettingStatusResponse
- type CancellationReason
- type CancellationReasonsResponse
- type ClientBalanceResponse
- type Config
- type Contestant
- type ContestantLine
- type CurrenciesResponse
- type Currency
- type Detail
- type Details
- type Event
- type EventParlay
- type EventSettled
- type EventStatus
- type EventTeaser
- type FillType
- type FixturesLeague
- type FixturesRequest
- type FixturesResponse
- type FixturesSettledRequest
- type FixturesSettledResponse
- type FixturesSpecialRequest
- type FixturesSpecialResponse
- type FixturesSpecialSettledRequest
- type FixturesSpecialSettledResponse
- type InrunningEvent
- type InrunningLeague
- type InrunningResponse
- type InrunningSport
- type League
- type LeagueParlay
- type LeagueSettled
- type LeagueSpecial
- type LeagueSpecialSettled
- type LeagueTeaser
- type LeaguesRequest
- type LeaguesResponse
- type Leg
- type Leg3
- type LegParlay
- type LegTeaser
- type LineParlayLeg
- type LineParlayRequest
- type LineParlayResponse
- type LineRequest
- type LineResponse
- type LineSpecialResponse
- type LineTeaserRequest
- type LineTeaserResponse
- type ManualBet
- type Moneyline
- type MoneylineParlay
- type OddsEvent
- type OddsFormat
- type OddsLeague
- type OddsParlayResponse
- type OddsPeriod
- type OddsRequest
- type OddsResponse
- type OddsSpecialRequest
- type OddsSpecialResponse
- type OddsTeaserRequest
- type OddsTeaserResponse
- type PSBStatus
- type ParlayBet
- type ParlayBetLeg
- type ParlayBetRequest
- type Payout
- type Period
- type PeriodParlay
- type PeriodTeaser
- type PeriodsRequest
- type PeriodsResponse
- type PinnacleError
- type PlaceParlayBetResponse
- type PlaceStraightBetRequest
- type PlaceStraightBetResponse
- type RoundRobinOptionWithOdd
- type Side
- type SortDirType
- type Special
- type SpecialBet
- type SpecialLineRequest
- type SpecialSettled
- type Sport
- type SportsResponse
- type Spread
- type SpreadParlay
- type SpreadTeaser
- type StraightBet
- type TeamTotal
- type TeamTotalParlay
- type TeamType
- type Teaser
- type TeaserBet
- type TeaserBetLeg
- type TeaserBetRequest
- type TeaserBetResponse
- type TeaserGroup
- type TeaserGroupsRequest
- type TeaserGroupsResponse
- type Total
- type TotalTeaser
- type ValidLeg
- type ValidLeg2
- type WinRiskType
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ApiClient ¶
type ApiClient struct {
// contains filtered or unexported fields
}
func NewApiClient ¶
func (*ApiClient) GetBets ¶
func (a *ApiClient) GetBets(ctx context.Context, r *BetsRequest) (res *BetsResponse, err error)
func (*ApiClient) GetBettingStatus ¶
func (a *ApiClient) GetBettingStatus(ctx context.Context) (res *BettingStatusResponse, err error)
func (*ApiClient) GetCancellationReasons ¶
func (a *ApiClient) GetCancellationReasons(ctx context.Context) (res *CancellationReasonsResponse, err error)
func (*ApiClient) GetClientBalance ¶
func (a *ApiClient) GetClientBalance(ctx context.Context) (res *ClientBalanceResponse, err error)
func (*ApiClient) GetCurrencies ¶
func (a *ApiClient) GetCurrencies(ctx context.Context) (res *CurrenciesResponse, err error)
func (*ApiClient) GetFixtures ¶
func (a *ApiClient) GetFixtures(ctx context.Context, r *FixturesRequest) (res *FixturesResponse, err error)
func (*ApiClient) GetFixturesSettled ¶
func (a *ApiClient) GetFixturesSettled(ctx context.Context, r *FixturesSettledRequest) (res *FixturesSettledResponse, err error)
func (*ApiClient) GetFixturesSpecial ¶
func (a *ApiClient) GetFixturesSpecial(ctx context.Context, r *FixturesSpecialRequest) (res *FixturesSpecialResponse, err error)
func (*ApiClient) GetFixturesSpecialSettled ¶
func (a *ApiClient) GetFixturesSpecialSettled(ctx context.Context, r *FixturesSpecialSettledRequest) (res *FixturesSpecialSettledResponse, err error)
func (*ApiClient) GetInRunning ¶
func (a *ApiClient) GetInRunning(ctx context.Context) (res *InrunningResponse, err error)
func (*ApiClient) GetLeagues ¶
func (a *ApiClient) GetLeagues(ctx context.Context, r *LeaguesRequest) (res *LeaguesResponse, err error)
func (*ApiClient) GetLine ¶
func (a *ApiClient) GetLine(ctx context.Context, r *LineRequest) (res *LineResponse, err error)
func (*ApiClient) GetLineParlay ¶
func (a *ApiClient) GetLineParlay(ctx context.Context, r *LineParlayRequest) (res *LineParlayResponse, err error)
func (*ApiClient) GetLineTeaser ¶
func (a *ApiClient) GetLineTeaser(ctx context.Context, r *LineTeaserRequest) (res *LineTeaserResponse, err error)
func (*ApiClient) GetOdds ¶
func (a *ApiClient) GetOdds(ctx context.Context, r *OddsRequest) (res *OddsResponse, err error)
func (*ApiClient) GetOddsParlay ¶
func (a *ApiClient) GetOddsParlay(ctx context.Context, r *OddsRequest) (res *OddsParlayResponse, err error)
func (*ApiClient) GetOddsSpecial ¶
func (a *ApiClient) GetOddsSpecial(ctx context.Context, r *OddsSpecialRequest) (res *OddsSpecialResponse, err error)
func (*ApiClient) GetOddsTeaser ¶
func (a *ApiClient) GetOddsTeaser(ctx context.Context, r *OddsTeaserRequest) (res *OddsTeaserResponse, err error)
func (*ApiClient) GetPeriods ¶
func (a *ApiClient) GetPeriods(ctx context.Context, r *PeriodsRequest) (res *PeriodsResponse, err error)
func (*ApiClient) GetSpecialLine ¶
func (a *ApiClient) GetSpecialLine(ctx context.Context, r *SpecialLineRequest) (res *LineSpecialResponse, err error)
func (*ApiClient) GetSports ¶
func (a *ApiClient) GetSports(ctx context.Context) (res *SportsResponse, err error)
func (*ApiClient) GetTeaserGroups ¶
func (a *ApiClient) GetTeaserGroups(ctx context.Context, r *TeaserGroupsRequest) (res *TeaserGroupsResponse, err error)
func (*ApiClient) PlaceParlayBet ¶
func (a *ApiClient) PlaceParlayBet(ctx context.Context, r *ParlayBetRequest) (res *PlaceParlayBetResponse, err error)
func (*ApiClient) PlaceStraightBet ¶
func (a *ApiClient) PlaceStraightBet(ctx context.Context, r *PlaceStraightBetRequest) (res *PlaceStraightBetResponse, err error)
func (*ApiClient) PlaceTeaserBet ¶
func (a *ApiClient) PlaceTeaserBet(ctx context.Context, r *TeaserBetRequest) (res *TeaserBetResponse, err error)
type AwayParlay ¶
type BetListType ¶
type BetListType string
const ( Settled BetListType = "SETTLED" Running BetListType = "RUNNING" Cancelled BetListType = "CANCELLED" BetListTypeAll BetListType = "ALL" )
type BetStatusesType ¶
type BetStatusesType string
const ( Won BetStatusesType = "WON" Lose BetStatusesType = "LOSE" BetStatusesTypeCancelled BetStatusesType = "CANCELLED" Refunded BetStatusesType = "REFUNDED" NotAccepted BetStatusesType = "NOT_ACCEPTED" Accepted BetStatusesType = "ACCEPTED" PendingAcceptance BetStatusesType = "PENDING_ACCEPTANCE" )
type BetsRequest ¶
type BetsRequest struct { BetList BetListType `url:"betlist,omitempty"` BetStatuses BetStatusesType `url:"betStatuses,omitempty"` FromDate string `url:"fromDate,omitempty"` ToDate string `url:"toDate,omitempty"` SortDir SortDirType `url:"sortDir,omitempty"` PageSize int `url:"pageSize,omitempty"` FromRecord int `url:"fromRecord,omitempty"` //BetIDs []int `url:"betids,omitempty"` BetIDs string `url:"betids,omitempty"` UniqueRequestIds []string `url:"uniqueRequestIds,omitempty"` }
type BetsResponse ¶
type BetsResponse struct { MoreAvailable bool `json:"moreAvailable,omitempty"` PageSize int64 `json:"pageSize,omitempty"` FromRecord int64 `json:"fromRecord,omitempty"` ToRecord int64 `json:"toRecord,omitempty"` StraightBets []StraightBet `json:"straightBets"` ParlayBets []ParlayBet `json:"parlayBets,omitempty"` SpecialBets []SpecialBet `json:"specialBets,omitempty"` ManualBets []ManualBet `json:"manualBets,omitempty"` }
res
type BettingStatusResponse ¶
type BettingStatusResponse struct {
Status string
}
type CancellationReason ¶
type CancellationReasonsResponse ¶
type CancellationReasonsResponse struct {
CancellationReasons []CancellationReason `json:"cancellationReasons"`
}
type ClientBalanceResponse ¶
type Contestant ¶
type ContestantLine ¶
type CurrenciesResponse ¶
type CurrenciesResponse struct {
Currencies []Currency `json:"currencies"`
}
type Event ¶
type Event struct { ID int64 `json:"id"` ParentID *int64 `json:"parentId,omitempty"` Starts time.Time `json:"starts"` Home string `json:"home"` Away string `json:"away"` //Deprecated RotNum string `json:"rotNum"` //0 = No live betting will be offered on this event, 1 = Live betting event, 2 = Live betting will be offered on this match, but on a different event LiveStatus int64 `json:"liveStatus"` //Home team pitcher. Only for Baseball. HomePitcher *string `json:"homePitcher,omitempty"` //Away team pitcher. Only for Baseball. AwayPitcher *string `json:"awayPitcher,omitempty"` //Deprecated Status string `json:"status"` ParlayRestriction int64 `json:"parlayRestriction"` ResultingUnit string `json:"resultingUnit"` Version int64 `json:"version"` }
type EventParlay ¶
type EventSettled ¶
type EventStatus ¶
type EventStatus string
const ( LowerMax EventStatus = "I" Open EventStatus = "O" )
type EventTeaser ¶
type EventTeaser struct {}
type FixturesLeague ¶
type FixturesRequest ¶
type FixturesRequest struct { SportID int64 `json:"sportId"` LeagueIDs []int `json:"leagueIds,omitempty"` IsLive bool `json:"isLive,omitempty"` Since int64 `json:"since,omitempty"` EventIDs []int `json:"eventIds,omitempty"` }
request
type FixturesResponse ¶
type FixturesResponse struct { SportID int64 `json:"sportId"` Last int64 `json:"last"` League []FixturesLeague `json:"league"` }
type FixturesSettledRequest ¶
type FixturesSettledRequest struct { SportID int64 `json:"sportId"` LeagueIDs []int `json:"leagueIds"` Since int64 `json:"since"` }
**************************** *** fixtures settled ****
type FixturesSettledResponse ¶
type FixturesSpecialRequest ¶
type FixturesSpecialResponse ¶
type FixturesSpecialResponse struct { SportID int64 `json:"sportId"` Last int64 `json:"last"` Leagues []LeagueSpecial `json:"leagues"` }
************************ *** special fixtures ******
type FixturesSpecialSettledRequest ¶
type FixturesSpecialSettledRequest struct { SportID int64 `json:"sportId"` LeagueIDs []int `json:"leagueIds"` Since int64 `json:"since"` }
********************** ***** Settled Special Fixtures
type FixturesSpecialSettledResponse ¶
type FixturesSpecialSettledResponse struct { SportID int64 `json:"sportId"` Last int64 `json:"last"` Leagues []LeagueSpecialSettled `json:"leagues"` }
type InrunningEvent ¶
type InrunningLeague ¶
type InrunningLeague struct { ID int64 `json:"id"` Events []InrunningEvent `json:"events"` }
type InrunningResponse ¶
type InrunningResponse struct {
Sports []InrunningSport `json:"sports"`
}
type InrunningSport ¶
type InrunningSport struct { ID int64 `json:"id"` Leagues []InrunningLeague `json:"leagues"` }
type League ¶
type League struct { ID int64 `json:"id"` Name string `json:"name"` HomeTeamType TeamType `json:"homeTeamType"` HasOfferings bool `json:"hasOfferings"` Container string `json:"container"` AllowRoundRobins bool `json:"allowRoundRobins"` LeagueSpecialsCount int64 `json:"leagueSpecialsCount"` EventSpecialsCount int64 `json:"eventSpecialsCount"` EventCount int64 `json:"eventCount"` }
type LeagueParlay ¶
type LeagueParlay struct { ID int64 `json:"id"` Events []EventParlay `json:"events"` }
type LeagueSettled ¶
type LeagueSpecial ¶
type LeagueSpecialSettled ¶
type LeagueSpecialSettled struct { ID int64 `json:"id"` Specials []SpecialSettled `json:"specials"` }
type LeagueTeaser ¶
type LeagueTeaser struct {}
type LeaguesRequest ¶
type LeaguesRequest struct {
SportId int `url:"sportId,omitempty"`
}
type LeaguesResponse ¶
type LeaguesResponse struct {
Leagues []League `json:"leagues"`
}
type Leg ¶
type Leg struct { SportID int64 `json:"sportId"` LegBetType string `json:"legBetType"` LegBetStatus string `json:"legBetStatus"` LeagueID int64 `json:"leagueId"` EventID int64 `json:"eventId"` EventStartTime string `json:"eventStartTime"` Handicap *float64 `json:"handicap"` Price int64 `json:"price"` TeamName string `json:"teamName"` Side *Side `json:"side"` Pitcher1 *string `json:"pitcher1"` Pitcher2 *string `json:"pitcher2"` Pitcher1MustStart bool `json:"pitcher1MustStart"` Pitcher2MustStart bool `json:"pitcher2MustStart"` Team1 string `json:"team1"` Team2 string `json:"team2"` PeriodNumber int64 `json:"periodNumber"` FtTeam1Score *float64 `json:"ftTeam1Score"` FtTeam2Score *float64 `json:"ftTeam2Score"` PTeam1Score *float64 `json:"pTeam1Score"` PTeam2Score *float64 `json:"pTeam2Score"` CancellationReason CancellationReason `json:"cancellationReason"` }
type Leg3 ¶
type Leg3 struct { SportID int64 `json:"sportId"` LegBetType string `json:"legBetType"` LegBetStatus string `json:"legBetStatus"` LeagueID int64 `json:"leagueId"` EventID int64 `json:"eventId"` EventStartTime string `json:"eventStartTime"` Handicap int64 `json:"handicap"` TeamName string `json:"teamName"` Side string `json:"side"` Team1 string `json:"team1"` Team2 string `json:"team2"` PeriodNumber int64 `json:"periodNumber"` }
type LegParlay ¶
type LegParlay struct { UniqueLegID string `url:"uniqueLegId,omitempty"` LineID int64 `url:"lineId,omitempty"` AltLineID *int64 `url:"altLineId,omitempty"` Pitcher1MustStart bool `url:"pitcher1MustStart,omitempty"` Pitcher2MustStart bool `url:"pitcher2MustStart,omitempty"` SportID int64 `url:"sportId,omitempty"` EventID int64 `url:"eventId,omitempty"` PeriodNumber int64 `url:"periodNumber,omitempty"` // 0 - Game, 1 - 1st Half and 2 - 2nd Half LegBetType BetType `url:"legBetType,omitempty"` Team string `url:"team,omitempty"` Side *Side `url:"side,omitempty"` }
type LineParlayLeg ¶
type LineParlayLeg struct { UniqueLegId string `url:"uniqueLegId,omitempty"` EventId int64 `url:"eventId,omitempty"` PeriodNumber int64 `url:"periodNumber,omitempty"` // 0 (Game), 1 (1st Half), 2 (2nd Half) LegBetType BetType `url:"legBetType,omitempty"` Team TeamType `url:"team,omitempty"` Side Side `url:"side,omitempty"` Handicap float32 `url:"handicap,omitempty"` //This is needed for SPREAD and TOTAL_POINTS bet type }
type LineParlayRequest ¶
type LineParlayRequest struct { OddsFormat OddsFormat `url:"oddsFormat,omitempty"` Legs []LineParlayLeg `url:"legs,omitempty"` }
** odds parlay
type LineParlayResponse ¶
type LineParlayResponse struct { Status string `json:"status"` Error string `json:"error"` MaxRiskStake int64 `json:"maxRiskStake"` MinRiskStake int64 `json:"minRiskStake"` RoundRobinOptionWithOdds []RoundRobinOptionWithOdd `json:"roundRobinOptionWithOdds"` Legs []Leg `json:"legs"` }
resp
type LineRequest ¶
type LineRequest struct { SportId int64 `url:"sportId"` LeagueId int64 `url:"leagueId"` EventId int64 `url:"eventId"` OddsFormat OddsFormat `url:"oddsFormat"` BetType BetType `url:"betType"` // This represents the period of the match. For example, for soccer we have 0 (Game), 1 (1st Half) & 2 (2nd Half) PeriodNumber int64 `url:"periodNumber"` // Team Chosen Team type. This is needed only for SPREAD, MONEYLINE and TEAM_TOTAL_POINTS bet types Team TeamType `url:"team,omitempty"` // Chosen Side. This is needed only for TOTAL_POINTS and TEAM_TOTAL_POINTS Side Side `url:"side,omitempty"` // This is needed for SPREAD, TOTAL_POINTS and TEAM_TOTAL_POINTS bet types Handicap float64 `url:"handicap,omitempty"` }
type LineResponse ¶
type LineResponse struct { // NOT_EXISTS or SUCCESS Status string `json:"status"` Price float64 `json:"price"` LineID int64 `json:"lineId"` AltLineID int64 `json:"altLineId"` Team1Score int64 `json:"team1Score"` Team2Score int64 `json:"team2Score"` Team1RedCards int64 `json:"team1RedCards"` Team2RedCards int64 `json:"team2RedCards"` MaxRiskStake float64 `json:"maxRiskStake"` MinRiskStake float64 `json:"minRiskStake"` MaxWinStake float64 `json:"maxWinStake"` MinWinStake float64 `json:"minWinStake"` EffectiveAsOf string `json:"effectiveAsOf"` }
type LineSpecialResponse ¶
type LineSpecialResponse struct { Status string `json:"status"` SpecialID int64 `json:"specialId"` ContestantID int64 `json:"contestantId"` MinRiskStake float64 `json:"minRiskStake"` MaxRiskStake float64 `json:"maxRiskStake"` MinWinStake float64 `json:"minWinStake"` MaxWinStake float64 `json:"maxWinStake"` LineID int64 `json:"lineId"` Price float64 `json:"price"` Handicap float64 `json:"handicap"` }
type LineTeaserRequest ¶
type LineTeaserRequest struct {}
type LineTeaserResponse ¶
type LineTeaserResponse struct {}
type ManualBet ¶
type ManualBet struct { BetID int64 `json:"betId"` WagerNumber int64 `json:"wagerNumber"` PlacedAt time.Time `json:"placedAt"` BetStatus BetStatusesType `json:"betStatus"` BetType BetType `json:"betType"` Win float64 `json:"win"` Risk float64 `json:"risk"` WinLoss float64 `json:"winLoss"` UpdateSequence int64 `json:"updateSequence"` Description string `json:"description"` ReferenceBetID *int64 `json:"referenceBetId"` }
type MoneylineParlay ¶
type OddsEvent ¶
type OddsEvent struct { ID int64 `json:"id"` Periods []OddsPeriod `json:"periods"` }
type OddsFormat ¶
type OddsFormat string
const ( DECIMAL OddsFormat = "DECIMAL" AMERICAN OddsFormat = "AMERICAN" HONGKONG OddsFormat = "HONGKONG" INDONESIAN OddsFormat = "INDONESIAN" MALAY OddsFormat = "MALAY" )
type OddsLeague ¶
type OddsParlayResponse ¶
type OddsParlayResponse struct { SportID int64 `json:"sportId"` Last int64 `json:"last"` Leagues []LeagueParlay `json:"leagues"` }
type OddsPeriod ¶
type OddsPeriod struct { LineID int64 `json:"lineId"` Number int64 `json:"number"` Cutoff time.Time `json:"cutoff"` MoneylineUpdatedAt *time.Time `json:"moneylineUpdatedAt,omitempty"` SpreadUpdatedAt *time.Time `json:"spreadUpdatedAt,omitempty"` TotalUpdatedAt *time.Time `json:"totalUpdatedAt,omitempty"` TeamTotalUpdatedAt *time.Time `json:"teamTotalUpdatedAt,omitempty"` MaxMoneyline *float64 `json:"maxMoneyline,omitempty"` MaxSpread *float64 `json:"maxSpread,omitempty"` MaxTotal *float64 `json:"maxTotal,omitempty"` MaxTeamTotal *float64 `json:"maxTeamTotal,omitempty"` Moneyline *Moneyline `json:"moneyline,omitempty"` Spreads []*Spread `json:"spreads,omitempty"` Totals []*Total `json:"totals,omitempty"` TeamTotal *TeamTotal `json:"teamTotal,omitempty"` Status int64 `json:"status"` }
type OddsRequest ¶
type OddsRequest struct { SportID int64 `url:"sportId"` LeagueIds []int `url:"leagueIds"` OddsFormat OddsFormat `url:"oddsFormat,omitempty"` Since int64 `url:"since,omitempty"` IsLive bool `url:"isLive,omitempty"` EventIds []int `url:"eventIds,omitempty"` // Default USD. ToCurrencyCode string `url:"toCurrencyCode,omitempty"` }
type OddsResponse ¶
type OddsResponse struct { SportID int64 `json:"sportId"` Last int64 `json:"last"` Leagues []OddsLeague `json:"leagues"` }
type OddsSpecialRequest ¶
type OddsSpecialRequest struct { OddsFormat OddsFormat `url:"oddsFormat,omitempty"` SportID int `url:"sportId,omitempty"` LeagueIDs []int `url:"leagueIds,omitempty"` Since int `url:"since,omitempty"` SpecialID []int `url:"specialId"` }
type OddsSpecialResponse ¶
type OddsSpecialResponse struct { SportID int64 `json:"sportId"` Last int64 `json:"last"` Leagues []LeagueSpecial `json:"leagues"` }
type OddsTeaserRequest ¶
type OddsTeaserRequest struct {
}type ParlayBet ¶
type ParlayBet struct { BetID int64 `json:"betId"` UniqueRequestID string `json:"uniqueRequestId"` WagerNumber int64 `json:"wagerNumber"` PlacedAt string `json:"placedAt"` BetStatus BetStatusesType `json:"betStatus"` BetType BetType `json:"betType"` Win float64 `json:"win"` Risk int64 `json:"risk"` WinLoss *float64 `json:"winLoss"` OddsFormat string `json:"oddsFormat"` CustomerCommission *float64 `json:"customerCommission"` CancellationReason CancellationReason `json:"cancellationReason"` UpdateSequence int64 `json:"updateSequence"` Legs []ParlayBetLeg `json:"legs"` Price float64 `json:"price"` FinalPrice float64 `json:"finalPrice"` }
type ParlayBetLeg ¶
type ParlayBetLeg struct { SportID int64 `json:"sportId"` LegBetType string `json:"legBetType"` LegBetStatus BetStatusesType `json:"legBetStatus"` LeagueID int64 `json:"leagueId"` EventID int64 `json:"eventId"` EventStartTime string `json:"eventStartTime"` Handicap *float64 `json:"handicap"` Price int64 `json:"price"` TeamName string `json:"teamName"` Side *Side `json:"side"` Pitcher1 *string `json:"pitcher1"` Pitcher2 *string `json:"pitcher2"` Pitcher1MustStart bool `json:"pitcher1MustStart"` Pitcher2MustStart bool `json:"pitcher2MustStart"` Team1 string `json:"team1"` Team2 string `json:"team2"` PeriodNumber int64 `json:"periodNumber"` FtTeam1Score *float64 `json:"ftTeam1Score"` FtTeam2Score *float64 `json:"ftTeam2Score"` PTeam1Score *float64 `json:"pTeam1Score"` PTeam2Score *float64 `json:"pTeam2Score"` CancellationReason CancellationReason `json:"cancellationReason"` }
type ParlayBetRequest ¶
type ParlayBetRequest struct { UniqueRequestID string `url:"uniqueRequestId,omitempty"` AcceptBetterLine bool `url:"acceptBetterLine,omitempty"` RiskAmount float64 `url:"riskAmount,omitempty"` OddsFormat OddsFormat `url:"oddsFormat,omitempty"` Legs []LegParlay `url:"legs,omitempty"` //Array of string //Items Enum:"Parlay" "TwoLegRoundRobin" "ThreeLegRoundRobin" "FourLegRoundRobin" "FiveLegRoundRobin" "SixLegRoundRobin" "SevenLegRoundRobin" "EightLegRoundRobin" RoundRobinOptions []string `url:"roundRobinOptions,omitempty"` }
req & res for bet parlay
type Period ¶
type Period struct { Number int64 `json:"number"` Description string `json:"description"` ShortDescription string `json:"shortDescription"` SpreadDescription string `json:"spreadDescription"` MoneylineDescription string `json:"moneylineDescription"` TotalDescription string `json:"totalDescription"` Team1TotalDescription string `json:"team1TotalDescription"` Team2TotalDescription string `json:"team2TotalDescription"` SpreadShortDescription string `json:"spreadShortDescription"` MoneylineShortDescription string `json:"moneylineShortDescription"` TotalShortDescription string `json:"totalShortDescription"` Team1TotalShortDescription string `json:"team1TotalShortDescription"` Team2TotalShortDescription string `json:"team2TotalShortDescription"` }
type PeriodParlay ¶
type PeriodParlay struct { LineID int64 `json:"lineId"` Number int64 `json:"number"` Cutoff string `json:"cutoff"` Status int64 `json:"status"` MaxSpread float64 `json:"maxSpread"` MaxMoneyline float64 `json:"maxMoneyline"` MaxTotal float64 `json:"maxTotal"` MaxTeamTotal float64 `json:"maxTeamTotal"` Spreads []SpreadParlay `json:"spreads"` Moneyline MoneylineParlay `json:"moneyline"` Totals []Total `json:"totals"` TeamTotal TeamTotalParlay `json:"teamTotal"` }
type PeriodTeaser ¶
type PeriodTeaser struct {}
type PeriodsRequest ¶
type PeriodsRequest struct {
SportId int `url:"sportId,omitempty"`
}
type PeriodsResponse ¶
type PeriodsResponse struct {
Periods []Period `json:"periods"`
}
type PinnacleError ¶
type PinnacleError struct { Ref string `json:"ref,omitempty"` Code string `json:"code,omitempty"` Message string `json:"message,omitempty"` }
func (*PinnacleError) Error ¶
func (p *PinnacleError) Error() string
type PlaceParlayBetResponse ¶
type PlaceParlayBetResponse struct { Status string `json:"status"` ErrorCode *string `json:"errorCode"` BetID int64 `json:"betId"` UniqueRequestID string `json:"uniqueRequestId"` RoundRobinOptionWithOdds []RoundRobinOptionWithOdd `json:"roundRobinOptionWithOdds"` MaxRiskStake int64 `json:"maxRiskStake"` MinRiskStake int64 `json:"minRiskStake"` ValidLegs []ValidLeg `json:"validLegs"` InvalidLegs []ValidLeg `json:"invalidLegs"` ParlayBet ParlayBet `json:"parlayBet"` }
type PlaceStraightBetRequest ¶
type PlaceStraightBetRequest struct { OddsFormat OddsFormat `json:"oddsFormat"` UniqueRequestID string `json:"uniqueRequestId"` AcceptBetterLine bool `json:"acceptBetterLine"` Stake float64 `json:"stake"` WinRiskStake WinRiskType `json:"winRiskStake"` LineID int64 `json:"lineId"` AltLineID *int64 `json:"altLineId,omitempty"` Pitcher1MustStart bool `json:"pitcher1MustStart,omitempty"` Pitcher2MustStart bool `json:"pitcher2MustStart,omitempty"` FillType FillType `json:"fillType"` SportID int64 `json:"sportId"` EventID int64 `json:"eventId"` PeriodNumber int64 `json:"periodNumber"` BetType BetType `json:"betType"` Team TeamType `json:"team,omitempty"` Side Side `json:"side,omitempty"` }
type PlaceStraightBetResponse ¶
type PlaceStraightBetResponse struct { Status string `json:"status"` // //string Nullable //Enum:"ALL_BETTING_CLOSED" "ALL_LIVE_BETTING_CLOSED" "ABOVE_EVENT_MAX" "ABOVE_MAX_BET_AMOUNT" "BELOW_MIN_BET_AMOUNT" "BLOCKED_BETTING" "BLOCKED_CLIENT" "INSUFFICIENT_FUNDS" "INVALID_COUNTRY" "INVALID_EVENT" "INVALID_ODDS_FORMAT" "LINE_CHANGED" "LISTED_PITCHERS_SELECTION_ERROR" "OFFLINE_EVENT" "PAST_CUTOFFTIME" "RED_CARDS_CHANGED" "SCORE_CHANGED" "TIME_RESTRICTION" "DUPLICATE_UNIQUE_REQUEST_ID" "INCOMPLETE_CUSTOMER_BETTING_PROFILE" "INVALID_CUSTOMER_PROFILE" "LIMITS_CONFIGURATION_ISSUE" "RESPONSIBLE_BETTING_LOSS_LIMIT_EXCEEDED" "RESPONSIBLE_BETTING_RISK_LIMIT_EXCEEDED" "SYSTEM_ERROR_3" "LICENCE_RESTRICTION_LIVE_BETTING_BLOCKED" ErrorCode *string `json:"errorCode"` UniqueRequestID string `json:"uniqueRequestId"` StraightBet *StraightBet `json:"straightBet"` }
type RoundRobinOptionWithOdd ¶
type SortDirType ¶
type SortDirType string
const ( Asc SortDirType = "ASC" Desc SortDirType = "DESC" )
type Special ¶
type Special struct { ID int64 `json:"id"` MaxBet int64 `json:"maxBet"` ContestantLines []ContestantLine `json:"contestantLines"` }
type SpecialBet ¶
type SpecialBet struct { BetID int64 `json:"betId"` UniqueRequestID string `json:"uniqueRequestId"` WagerNumber int64 `json:"wagerNumber"` PlacedAt string `json:"placedAt"` BetStatus string `json:"betStatus"` BetType string `json:"betType"` Win int64 `json:"win"` Risk float64 `json:"risk"` WinLoss *float64 `json:"winLoss"` OddsFormat string `json:"oddsFormat"` CustomerCommission *float64 `json:"customerCommission"` CancellationReason CancellationReason `json:"cancellationReason"` UpdateSequence int64 `json:"updateSequence"` SpecialID int64 `json:"specialId"` SpecialName string `json:"specialName"` ContestantID int64 `json:"contestantId"` ContestantName string `json:"contestantName"` Price int64 `json:"price"` Handicap float64 `json:"handicap"` Units string `json:"units"` SportID int64 `json:"sportId"` LeagueID int64 `json:"leagueId"` EventID *int64 `json:"eventId"` PeriodNumber *int64 `json:"periodNumber"` Team1 *string `json:"team1"` Team2 *string `json:"team2"` EventStartTime string `json:"eventStartTime"` }
type SpecialLineRequest ¶
type SpecialLineRequest struct { SpecialId int64 `url:"specialId"` ContestantId int64 `url:"contestantId"` OddsFormat OddsFormat `url:"oddsFormat"` Handicap float64 `url:"handicap,omitempty"` }
type SpecialSettled ¶
type SportsResponse ¶
type SportsResponse struct {
Sports []Sport `json:"sports"`
}
type SpreadParlay ¶
type SpreadTeaser ¶
type SpreadTeaser struct {}
type StraightBet ¶
type StraightBet struct { BetID int64 `json:"betId"` WagerNumber int64 `json:"wagerNumber"` PlacedAt time.Time `json:"placedAt"` BetStatus BetStatusesType `json:"betStatus"` BetStatus2 BetStatusesType `json:"betStatus2"` BetType BetType `json:"betType"` Win float64 `json:"win"` Risk float64 `json:"risk"` WinLoss *float64 `json:"winLoss"` OddsFormat OddsFormat `json:"oddsFormat"` CustomerCommission *float64 `json:"customerCommission,omitempty"` CancellationReason CancellationReason `json:"cancellationReason"` UpdateSequence int64 `json:"updateSequence"` SportID int64 `json:"sportId"` SportName string `json:"sportName"` LeagueID int64 `json:"leagueId"` LeagueName string `json:"leagueName"` EventID int64 `json:"eventId"` Handicap *float64 `json:"handicap"` Price float64 `json:"price"` TeamName string `json:"teamName"` Side *Side `json:"side"` Pitcher1 *string `json:"pitcher1,omitempty"` Pitcher2 *string `json:"pitcher2,omitempty"` Pitcher1MustStart *string `json:"pitcher1MustStart,omitempty"` Pitcher2MustStart *string `json:"pitcher2MustStart,omitempty"` Team1 string `json:"team1"` Team2 string `json:"team2"` PeriodNumber int64 `json:"periodNumber"` Team1Score *float64 `json:"team1Score,omitempty"` Team2Score *float64 `json:"team2Score,omitempty"` FtTeam1Score *float64 `json:"ftTeam1Score,omitempty"` FtTeam2Score *float64 `json:"ftTeam2Score,omitempty"` PTeam1Score *float64 `json:"pTeam1Score,omitempty"` PTeam2Score *float64 `json:"pTeam2Score,omitempty"` IsLive interface{} `json:"isLive"` EventStartTime time.Time `json:"eventStartTime"` SettledAt *time.Time `json:"settledAt,omitempty"` }
type TeamTotalParlay ¶
type TeamTotalParlay struct { Away AwayParlay `json:"away"` Home AwayParlay `json:"home"` }
type TeaserBetLeg ¶
type TeaserBetLeg struct {}
type TeaserBetResponse ¶
type TeaserBetResponse struct {}
type TeaserGroup ¶
type TeaserGroup struct {}
type TeaserGroupsRequest ¶
type TeaserGroupsRequest struct {
}type TeaserGroupsResponse ¶
type TeaserGroupsResponse struct {
}type TotalTeaser ¶
type TotalTeaser struct {}
type WinRiskType ¶
type WinRiskType string
const ( Win WinRiskType = "WIN" Risk WinRiskType = "RISK" )
Click to show internal directories.
Click to hide internal directories.