LeaderboardService
Describes github.com/stxapp/stx-go v0.3.1, the current release.
LeaderboardService
Section titled “LeaderboardService”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.
Docs version v1.10.5

