Skip to content

Build leaderboard endpoint for top creator keys by holder count and volume #941

Description

@Chucks1093

Summary

Create a leaderboard endpoint that ranks creator keys by holder count, trading volume, and price performance across configurable time windows.

Scope

  • GET /keys/leaderboard accepts sort_by param: holder_count, volume_24h, volume_7d, price_change
  • Returns top N keys with rank, key metadata, and sort metric value
  • Results cached with 60s TTL per sort dimension
  • Limit param accepted up to configured maximum
  • Tied ranks handled with secondary sort by creation date

Acceptance Criteria

  • Leaderboard ranked correctly for all supported sort dimensions
  • Tied ranks broken correctly by creation date
  • Results cached per sort dimension with 60s TTL
  • Limit param respected up to configured maximum
  • Response under 150ms with valid cache

ETA

12 hours

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Stellar WaveIssues in the Stellar wave program

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions