Skip to content

Replace Mock Win Rate with Real Data #8

Description

@wfnuser

Description

Replace the mock win rate data in the frontend with actual calculated win rate from trading history.

Current Problem

  • Win rate shows mock/dummy data instead of real trading performance
  • Users cannot see their actual trading success rate
  • Misleading performance metrics in the dashboard

Requirements

  • Calculate real win rate from trades table in database
  • Backend API endpoint to return actual win rate percentage
  • Update frontend to fetch and display real win rate instead of mock data
  • Show additional metrics like total trades count, wins/losses

Implementation

  1. Query trades table to count profitable vs losing trades
  2. Calculate win rate percentage (wins / total trades * 100)
  3. Update the stats card to show real data
  4. Remove mock data from frontend

Priority

High - Users need to see real performance metrics

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

    Labels

    enhancementNew feature or request

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions