Skip to content

Add user fee rate endpoint#100

Open
iKoles-dev wants to merge 1 commit into
singlesly:mainfrom
iKoles-dev:codex/user-fee-rate-80
Open

Add user fee rate endpoint#100
iKoles-dev wants to merge 1 commit into
singlesly:mainfrom
iKoles-dev:codex/user-fee-rate-80

Conversation

@iKoles-dev
Copy link
Copy Markdown

Closes #80.

Summary

  • Add BingxUserFeeRateEndpoint for GET /openApi/swap/v2/user/commissionRate, including optional recvWindow.
  • Expose the endpoint through AccountService.getUserFeeRate(...).
  • Export the endpoint and mark the README feature checklist item as implemented.

Validation

  • npm test -- account.service.spec.ts --runInBand
  • npx jest src/bingx-client/services/account.service.spec.ts src/bingx-client/bingx-api.client.spec.ts src/nest-bingx/nest-bingx.module.spec.ts --runInBand
  • npm run build
  • npx eslint src/bingx/endpoints/bingx-user-fee-rate-endpoint.ts src/bingx-client/services/account.service.ts src/bingx-client/services/account.service.spec.ts src/bingx/endpoints/index.ts
  • npx prettier --check src/bingx/endpoints/bingx-user-fee-rate-endpoint.ts src/bingx-client/services/account.service.ts src/bingx-client/services/account.service.spec.ts src/bingx/endpoints/index.ts
  • git diff --check

Note: full npm test -- --runInBand is not currently clean on main in this checkout because the existing playground specs require API_ACCOUNT_KEY / API_ACCOUNT_SECRET, and an existing socket reconnect spec times out with open handles. The targeted account/client/module tests and build are clean.

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 user fee rate endpoint

1 participant