Skip to content

Developer Experience | Add ?startDate and ?endDate filters to GET /account/:id/trades #423

Description

@Sulex45

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.

Metadata

Metadata

Assignees

Labels

Stellar WaveIssues in the Stellar wave programdxDeveloper experience improvements (logging, errors, docs)featureA new feature or endpoint to be added to the API

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