Summary
The trade history endpoint should return an empty items array with has_more: false when called for a wallet that has never made a trade. An integration test should confirm this response shape rather than a 404 or an error.
Scope
- Call the trade history endpoint with a wallet address that has no trade records in the database
- Assert the response status is 200
- Assert
items is an empty array
- Assert
has_more is false and next_cursor is null
Acceptance Criteria
ETA: 12 hours
Coordinate on Telegram
Summary
The trade history endpoint should return an empty items array with
has_more: falsewhen called for a wallet that has never made a trade. An integration test should confirm this response shape rather than a 404 or an error.Scope
itemsis an empty arrayhas_moreis false andnext_cursoris nullAcceptance Criteria
itemsis an empty arrayhas_moreis falsenext_cursoris nullETA: 12 hours
Coordinate on Telegram