Skip to content

Implement key analytics snapshot indexer and historical data REST API #1112

Description

@Chucks1093

Summary

Index SnapshotTaken contract events and expose REST endpoints for daily snapshot history per key, used to power the historical performance charts on the frontend.

Scope

  • Indexer processes SnapshotTaken events into key_snapshots table
  • GET /keys/:key_id/snapshots?range=7d|30d|90d|all — returns array of daily metric snapshots
  • Each snapshot: date, price, volume, holder_count, market_cap
  • Range param filters from current date backward
  • Response cached for 5 minutes; invalidated on new SnapshotTaken event

Acceptance Criteria

  • SnapshotTaken events indexed with all four metrics
  • Snapshots endpoint returns correct data for all supported ranges
  • Empty array returned for keys with no snapshots yet
  • Cache invalidates correctly on new snapshot event
  • Response time under 200ms for cached requests

ETA

12 hours

Activity

  1. rupesh-kumar-sah commented on Oct 19, 2026

    @rupesh-kumar-sah

    Hi maintainers,

    I reviewed "Implement key analytics snapshot indexer and historical data REST API" and have a structured approach ready for implementation:

    I have reviewed the problem description and acceptance criteria for this issue. I have a clear, tested implementation ready with defensive error handling and 100% green CI proof.

    I will deliver a clean, well-tested, and production-ready PR promptly upon assignment. Kindly assign this issue to me.

    Thank you!

  2. danielchukuma-dev commented on Oct 19, 2026

    @danielchukuma-dev

    @danielchukuma-dev has applied to work on this issue as part of the Stellar Wave Program's 10th wave.

    Hi Maintainer, I’d like to take this issue. I have experience with the relevant area and can work on implementing a fix. Please assign it to me.

    ℹ️ Repo Maintainers: To accept this application, review their application or assign @danielchukuma-dev to this issue.

  3. jerrzxy commented on Oct 19, 2026

    @jerrzxy

    @jerrzxy has applied to work on this issue as part of the Stellar Wave Program's 10th wave.

    Hi maintainar
    I'm interested in the testing. I will give a good result

    ℹ️ Repo Maintainers: To accept this application, review their application or assign @jerrzxy to this issue.

  4. matthewsholademi-glitch commented on Oct 19, 2026

    @matthewsholademi-glitch

    @matthewsholademi-glitch has applied to work on this issue as part of the Stellar Wave Program's 10th wave.

    I would like to work on this issue based on my experience on issues like this

    ℹ️ Repo Maintainers: To accept this application, review their application or assign @matthewsholademi-glitch to this issue.

  5. sksneh commented on Oct 19, 2026

    @sksneh

    @sksneh has applied to work on this issue as part of the Stellar Wave Program's 10th wave.

    Please kindly assign sir

    ℹ️ Repo Maintainers: To accept this application, review their application or assign @sksneh to this issue.

  6. deborahogunjinmi592-byte commented on Oct 19, 2026

    @deborahogunjinmi592-byte

    @deborahogunjinmi592-byte has applied to work on this issue as part of the Stellar Wave Program's 10th wave.

    Hi maintainer
    I'm interested in working on the issue
    Could you please assign it to me?

    ℹ️ Repo Maintainers: To accept this application, review their application or assign @deborahogunjinmi592-byte to this issue.

  7. bashir347 commented on Oct 19, 2026

    @bashir347

    @bashir347 has applied to work on this issue as part of the Stellar Wave Program's 10th wave.

    Hi maintainer I would like to work on this issue

    ℹ️ Repo Maintainers: To accept this application, review their application or assign @bashir347 to this issue.

  8. shinorh247 commented on Oct 19, 2026

    @shinorh247
    Contributor

    @shinorh247 has applied to work on this issue as part of the Stellar Wave Program's 10th wave.

    Hello sir pls kindly assign me

    ℹ️ Repo Maintainers: To accept this application, review their application or assign @shinorh247 to this issue.

  9. drips-wave commented on Oct 19, 2026

    @drips-wave

    Congratulations, @shinorh247! 🎉 Your application was accepted by the repo's maintainers, and the issue is due on October 22, 2026.

    🧑‍💻 @shinorh247: Please resolve the issue such that the repo's maintainers have enough time to review your contribution before the due date. You'll earn Points for completing the issue on-time, which will make you eligible for a share of the Stellar Wave Program's reward pool.

    Warning

    When opening a PR, please link it to this issue to ensure it gets tracked accurately. Points are awarded when this issue is marked as completed by the maintainer.

    🤠 Repo maintainers: Please keep an eye on the contributor's progress and review their work before the due date. You can manage this issue, including adjusting its complexity and points, here.

    🌊 Happy Wave 🌊

  10. grantfox-oss commented on Oct 27, 2026

    @grantfox-oss

    🎉 This issue has been marked as completed on GrantFox!

    @shinorh247's PR #1212 was approved and merged by @Chucks1093.

    🏆 @shinorh247: You earned 35 FoxPoints for this contribution! Your current tier: Explorer (105 total points). Track your full progress on GrantFox.

    👏 Great work, @shinorh247! Keep contributing to accesslayerorg.

  11. drips-wave commented on Oct 27, 2026

    @drips-wave

    This issue has been completed by @shinorh247 as part of the Stellar Wave Program's 10th Wave 🥳

    😎 @shinorh247: You earned 200 Points for completing this issue! Once the Wave's rewards are finalized, you'll be eligible for a percentage of the Wave's reward pool based on the percentage of total points you've earned. Learn more here. You can also Leave a review to share your experience working on this issue.

    🧑‍💻 Repo maintainers: How'd the contributor do? Leave a review to share your experience working with them.

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