Skip to content

Add integration test for trade history endpoint returning results filtered by date range #599

Description

@Chucks1093

Summary

The trade history endpoint accepts optional from and to date parameters but has no integration test confirming the filter works correctly. A test should seed trades across multiple dates and assert the response only includes trades within the specified range.

Scope

  • Seed five trades: two before the range, one inside, two after
  • Call the endpoint with from and to params enclosing only the middle trade
  • Assert exactly one trade is returned and it matches the expected trade
  • Assert trades outside the range are absent from the response

Acceptance Criteria

  • Only trades within the date range returned
  • Trades before from absent from response
  • Trades after to absent from response
  • Boundary trades (exactly on from and to) included

ETA: 12 hours


Coordinate on Telegram

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