Skip to content

SDK Expansion | Add a dex module method for fetching account trades #416

Description

@Sulex45

Add a getAccountTrades(id: string, options?: { limit?: number; cursor?: string }) method to the SDK dex module that calls the new GET /account/:id/trades endpoint and returns a typed paginated response. Each trade should be typed with a Trade interface that includes tradeId, ledgerCloseTime, selling, buying, soldAmount, boughtAmount, price, and offerId using the standard Asset interface for asset fields.

Acceptance Criteria: Method is fully typed with the Trade interface. Returns a PaginatedResponse type. Throws a typed StellarKitError on failure. Includes JSDoc with @example. Compiles without TypeScript errors.

Metadata

Metadata

Assignees

Labels

Stellar WaveIssues in the Stellar wave programfeatureA new feature or endpoint to be added to the APImediumModerate complexity, requires some research

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions