Skip to content

Response Normalisation | Normalise GET /account/:id/trades response to remove raw Horizon fields #417

Description

@Sulex45

The trades endpoint added in Issue #85 may pass through raw Horizon fields like base_asset_type, counter_asset_code, base_is_seller, and price_r as a fraction object. Ensure the response is fully normalised — all fields camelCase, price_r converted to a single decimal price string, all amounts seven-decimal strings, and all asset fields following the standard { code, issuer, type } shape.

Acceptance Criteria: No snake_case fields or raw fraction objects in the trades response. All conventions match other normalised endpoints. Tests are updated to verify the normalised shape.

Metadata

Metadata

Assignees

Labels

Stellar WaveIssues in the Stellar wave programmiddlewareRelated to Express middleware (validation, security, logging)

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