Skip to content

v0.5.533

Choose a tag to compare

@ope-olatunji ope-olatunji released this 15 Mar 16:38
· 27 commits to main since this release

Fix: Archive Only Closed Positions + Filters & Detail Modal

Archive Logic Fixed

The archive was incorrectly moving ALL filled trades out of Trade History, leaving it empty. Now it only archives:

  • Failed, rejected, cancelled orders (never executed)
  • Filled trades for closed positions (sold or market resolved) — checked via on-chain position data

Filled trades for positions you still hold stay in Trade History where they belong.

Archive Display

  • Now uses renderFilteredTable with search, filters (Side, Outcome, Status), and sort by date
  • Clicking a row opens the detail modal — same as live trading tab
  • Shows P&L and Cost columns
  • Proper empty state: "Only trades for closed positions (sold or resolved markets) are archived"

Archive GET Endpoint

  • Added pagination (page, pageSize params) with totalPages in response
  • Added filters (side, status, search query params)