EventsService
Describes github.com/stxapp/stx-go v0.3.1, the current release.
EventsService
Section titled “EventsService”type EventsService struct { // contains filtered or unexported fields}EventsService lists events and their players. Use it through Client.Events.
func (s *EventsService) All(ctx context.Context, q *EventsQuery) iter.Seq2[Event, error]All returns every event matching q, following the cursor.
func (s *EventsService) List(ctx context.Context, q *EventsQuery) (*Page[Event], error)List returns one page of events (GET /api/v1/events).
Players
Section titled “Players”func (s *EventsService) Players(ctx context.Context, eventID string) (*EventPlayers, error)Players returns the event’s team rosters and the stats a market on it can use (GET /api/v1/events/{event_id}/players). It needs an API key or an OAuth app token with the events scope, and returns an error matching ErrNotAvailable where the exchange does not have it.
StatsFor
Section titled “StatsFor”func (s *EventsService) StatsFor(ctx context.Context, eventID string) ([]EventStat, error)StatsFor returns the stats an event accepts for new markets.
Docs version v1.10.5

