Skip to content

Add a trade history CSV export button on the portfolio page #857

Description

@Chucks1093

Summary

Investors who want to report gains or do their own analysis have no way to export their trade history. A CSV export button on the trade history tab should fetch all trades for the wallet and download them as a formatted CSV file.

Scope

  • Add an Export CSV button to the trade history tab header on the portfolio page
  • Fetch all trades from GET /users/:wallet/trades without pagination on export click
  • Generate a CSV with columns: Date, Key Name, Type, Quantity, Price per Key, Total, Fee
  • Trigger a file download with filename trades-[wallet-truncated]-[date].csv
  • Show a loading spinner on the Export button while the fetch is in progress

Acceptance Criteria

  • CSV downloaded with correct columns and data
  • Filename includes truncated wallet and current date
  • Loading spinner shown during fetch
  • All trades included without pagination limit
  • Button accessible only when the user is authenticated

ETA: 12 hours


Coordinate on Telegram

Activity

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