# LeaderboardService

> The public leaderboard and your standing.

Source: https://docs.stxapp.io/sdks/go/reference/leaderboard/

## LeaderboardService

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

LeaderboardService reads the public leaderboard and your standing. Use it through [Client.Leaderboard](/sdks/go/reference/client/#client). Where the exchange has no leaderboard, its methods return an error matching [ErrNotAvailable](/sdks/go/reference/errors/#constants-and-variables).

### Get

```go
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.

### Me

```go
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.
