Skip to content

EventsService

Describes github.com/stxapp/stx-go v0.3.1, the current release.

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).

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.

func (s *EventsService) StatsFor(ctx context.Context, eventID string) ([]EventStat, error)

StatsFor returns the stats an event accepts for new markets.

STX is operated by XV Exchange, LLC, a Designated Contract Market regulated by the U.S. Commodity Futures Trading Commission (CFTC). Contracts traded on STX are cleared by XV Clearing, LLC, a CFTC-registered Derivatives Clearing Organization. Trading involves substantial risk of loss and may not be appropriate for everyone. Members risk losing the cost to enter any transaction, including fees. Consider whether trading is appropriate for you in light of your experience and financial resources. Nothing on this site is investment advice or a recommendation to trade. Past performance is not indicative of future results.

© 2026 STX. All rights reserved.llms.txtllms-full.txtView as Markdown
Docs version v1.10.5