Skip to content

Add integration test for holdings endpoint returning entries sorted by total value descending by default #543

Description

@Chucks1093

Summary

The holdings endpoint should sort entries by total holding value descending so the most valuable position appears first. An integration test with three holdings of different values should confirm the default ordering without a sort param.

Scope

  • Seed a wallet with three creator holdings at prices that produce distinct total values
  • Call GET /wallets/:address/holdings with no sort param
  • Assert the entry with the highest total value appears first
  • Assert the entry with the lowest total value appears last

Acceptance Criteria

  • Highest value entry is first in the response
  • Lowest value entry is last
  • Order is by total value, not by balance or price alone

ETA: 12 hours


Coordinate on Telegram

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    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