Skip to content

Add /api/v1/rankings/assets endpoint: top assets by holders and volume #39

Description

@christabel888

Context: Grant-milestone-facing "asset rankings" endpoint, distinct from #33's 24h Top Movers -- this is a more general top-assets-by-holders-and-volume view.

Where:

What to do:

  • Rank assets by absolute holder count and absolute volume (not percent change), for the frontend/mobile Asset Rankings page.

Suggested approach:

  1. Same file as Add /api/v1/rankings/top-movers endpoint: 24h percent change by holders/volume #33 (src/api/rankings.rs), a second endpoint alongside top-movers.
  2. This is mostly composition over data Add largest-holder-percent-of-supply computation per asset #7-Add most-active-counterparties aggregation: DEX vs payment address classification #10/Add /api/v1/rankings/top-movers endpoint: 24h percent change by holders/volume #33 already compute -- rank by absolute holders and absolute volume rather than percent change.

Watch out for:

Definition of done:

  • GET /api/v1/rankings/assets returns assets sorted by holders and by volume (two sort modes or two lists)

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions