Skip to content

Issue #55 — Admin dashboard stats #452

Description

@GoSTEAN

Title: [Admin] Implement admin dashboard statistics endpoint

Tags: backend, admin, feature

Description:
Aggregated platform-wide stats for the admin dashboard.

Acceptance Criteria:

  • GET /admin/stats (admin only).
  • Returns: { totalUsers, activeUsers24h, totalMarkets, openMarkets, totalVolume, totalFeeCollected, treasuryBalance, totalPredictions, totalDisputes, pendingDisputes }.
  • Cached in Redis for 60 seconds.
  • Integration test: create data → stats reflect accurate counts.

Files: src/routes/admin.routes.ts, src/controllers/admin.controller.ts, src/services/admin.service.ts


Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions