Skip to content

feat: add query order endpoint#98

Open
Vinayak1337 wants to merge 1 commit into
singlesly:mainfrom
Vinayak1337:fix/query-order
Open

feat: add query order endpoint#98
Vinayak1337 wants to merge 1 commit into
singlesly:mainfrom
Vinayak1337:fix/query-order

Conversation

@Vinayak1337
Copy link
Copy Markdown

Fixes #85

What changed

  • Added a signed GET /openApi/swap/v2/trade/order endpoint for querying one order.
  • Exposed the endpoint through TradeService.queryOrder.
  • Supported both orderId and clientOrderId query paths.
  • Added focused tests for service dispatch, request shape, and client-order-id handling.
  • Marked the README feature checkbox as supported.
  • Removed one unused import so lint passes.

Tests

  • npm test -- trade.service.spec.ts
  • npm run lint
  • npm run build

@Vinayak1337 Vinayak1337 marked this pull request as ready for review May 11, 2026 21:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Implement query order endpoint

1 participant