Skip to content

Add integration test for trade history endpoint returning empty array for a wallet with no trades #642

Description

@Chucks1093

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

  • Response status is 200 for a wallet with no trades
  • items is an empty array
  • has_more is false
  • next_cursor is null

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