Developers building portfolio analytics need to query trades within a specific date range. Add optional ?startDate and ?endDate query parameters to GET /account/:id/trades that accept ISO 8601 date strings and filter results to trades executed within the given range. Follow the same validation pattern established in Issue #82 — validate date format, ensure startDate is before endDate, and return clear 400 errors for invalid inputs.
Acceptance Criteria: ?startDate and ?endDate filter trades by ledgerCloseTime. Invalid date strings return a 400. startDate after endDate returns a 400 with a clear message. Tests cover valid range, invalid dates, and reversed range.
Developers building portfolio analytics need to query trades within a specific date range. Add optional ?startDate and ?endDate query parameters to GET /account/:id/trades that accept ISO 8601 date strings and filter results to trades executed within the given range. Follow the same validation pattern established in Issue #82 — validate date format, ensure startDate is before endDate, and return clear 400 errors for invalid inputs.
Acceptance Criteria: ?startDate and ?endDate filter trades by ledgerCloseTime. Invalid date strings return a 400. startDate after endDate returns a 400 with a clear message. Tests cover valid range, invalid dates, and reversed range.