client

package
v0.0.0-...-a3a9e33 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 28, 2022 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const CheckAcceptedTryMaxCount = 10

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	*api.APIClient
	// contains filtered or unexported fields
}

func NewClient

func NewClient(cfg *config.Config, log *zap.SugaredLogger, username string, password string) *Client

func (*Client) CheckAccepted

func (c *Client) CheckAccepted(uniqueRequestId string) (api.PlaceBetResponseV2, error)

func (*Client) CheckLine

func (c *Client) CheckLine(ctx context.Context,
	sportId int,
	leagueId int,
	eventId int64,
	side string,
	handicap *float64, periodNumber int, betType string, team string) (api.LineResponse, error)

Side: This is needed only for TOTAL_POINTS and TEAM_TOTAL_POINTS Available values : OVER, UNDER \n Handicap: This is needed for SPREAD, TOTAL_POINTS and TEAM_TOTAL_POINTS bet types PeriodNumber: For example, for soccer we have 0 (Game), 1 (1st Half) & 2 (2nd Half) BetType: Available values : SPREAD, MONEYLINE, TOTAL_POINTS, TEAM_TOTAL_POINTS Team: This is needed only for SPREAD, MONEYLINE and TEAM_TOTAL_POINTS bet types Available values : Team1, Team2, Draw

func (*Client) GetBalance

func (c *Client) GetBalance(ctx context.Context) (api.ClientBalanceResponse, error)

func (*Client) GetBetByUUID

func (c *Client) GetBetByUUID(ctx context.Context, uniqueRequestId string) (api.GetBetsByTypeResponseV3, error)

func (*Client) GetBets

func (*Client) GetBettingStatus

func (c *Client) GetBettingStatus(ctx context.Context) (api.BettingStatusResponse, error)

func (*Client) GetEvents

func (c *Client) GetEvents(ctx context.Context, sportId int, since int64) (api.FixturesResponse, error)

func (*Client) GetLeagues

func (c *Client) GetLeagues(ctx context.Context, sportId int) ([]api.League, error)

func (*Client) GetLines

func (c *Client) GetLines(ctx context.Context, sportId int, since int64) (api.OddsResponse, error)

func (*Client) GetPeriods

func (c *Client) GetPeriods(ctx context.Context, sportId int) ([]api.Period, error)

func (*Client) GetSpecialLines

func (c *Client) GetSpecialLines(ctx context.Context, sportId int, since int64) (api.SpecialOddsResponse, error)

func (*Client) GetSpecials

func (c *Client) GetSpecials(ctx context.Context, SportId int, since int64) (api.SpecialsFixturesResponse, error)

func (*Client) GetSports

func (c *Client) GetSports(ctx context.Context) ([]api.Sport, error)

func (*Client) PlaceBet

func (c *Client) PlaceBet(ctx context.Context,
	sportId int64,
	eventId int64,
	side string,
	periodNumber int,
	betType string,
	team string,
	lineId int64,
	altLineId *int64,
	uniqueRequestId string,
	stake float64,

) (api.PlaceBetResponseV2, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL