Skip to content

LeaderboardService

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

type LeaderboardService struct {
// contains filtered or unexported fields
}

LeaderboardService reads the public leaderboard and your standing. Use it through Client.Leaderboard. Where the exchange has no leaderboard, its methods return an error matching ErrNotAvailable.

func (s *LeaderboardService) Get(ctx context.Context, q *LeaderboardQuery) (*Leaderboard, error)

Get returns ranked members for a period, sport and metric (GET /api/v1/leaderboard). Rows carry a public handle and avatar, never an account id.

func (s *LeaderboardService) Me(ctx context.Context, q *LeaderboardQuery) (*LeaderboardStanding, error)

Me returns your own standing, including your rank outside the shown list (GET /api/v1/leaderboard/me). Only Period and Category are used.

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