Skip to content

Add historical top-movers snapshot storage for trend/share cards #37

Description

@christabel888

Context: For share cards / trend sparklines on Top Movers, a single current ranking isn't enough -- need history.

Where:

  • New migration, e.g. migrations/032_create_top_movers_snapshots.sql, following the existing NNN_description.sql naming convention (latest is 030_comprehensive_seed_data.sql)

What to do:

Suggested approach:

  1. New migration, e.g. migrations/032_create_top_movers_snapshots.sql, following the NNN_description.sql convention (latest is 030_comprehensive_seed_data.sql).
  2. One row per (asset, hour) from Add /api/v1/rankings/top-movers endpoint: 24h percent change by holders/volume #33/Add hourly background job to compute top movers in src/jobs #34's hourly job -- this becomes the data source for share-card sparklines later.

Watch out for:

Definition of done:

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