Skip to content

feat(v3.1.7): add Earn Elite API endpoints and update version - #144

Merged
tiagosiebler merged 2 commits into
sieblyio:masterfrom
JJ-Cro:update21042026
Apr 28, 2026
Merged

feat(v3.1.7): add Earn Elite API endpoints and update version#144
tiagosiebler merged 2 commits into
sieblyio:masterfrom
JJ-Cro:update21042026

Conversation

@JJ-Cro

@JJ-Cro JJ-Cro commented Apr 23, 2026

Copy link
Copy Markdown
Contributor

Summary

Bitget SDK updates from recent API changelogs: Classic (V2) agent/affiliate customer endpoints, On-Chain Elite Earn on V2 and UTA (V3), extra market/risk-reserve and copy-trading futures routes on V3, spot symbol fields, and naming alignment for elite subscribe/redeem.

REST V2 (RestClientV2)

  • Agent customer APIs: customer-commissions, sub-customer-list, customer-trade-volume (POST), customer-list (POST), customer-kyc-result, customer-deposit, customer-asset, agent-commission — typed requests/responses under types/request|response/v2/broker.ts.
  • Earn On-Chain Elite: full set under /api/v2/earn/elite/* with types in v2/earn and client methods.
  • Spot: SpotSymbolInfoV2 — optional maxLimitOrderValue, maxMarketOrderValue.
  • Naming: subscribeEarnElite, redeemEarnElite; types RedeemEarnEliteRequestV2 / RedeemEarnEliteResultV2 (and V3 equivalents).

REST V3 (RestClientV3)

  • Market: getRiskReserveHour, getRiskReserveAll; GetRiskReserveRequestV3 adds optional marginCoin; daily reserve response supports optional totalBalance and record type.
  • Copy trading (futures): getCopyFuturesTradingPairs, getCopyFuturesPositionSummary — types in types/response/v3/copytrading.ts.
  • Earn On-Chain Elite (UTA): /api/v3/earn/elite-* endpoints with types/request|response/v3/earn.ts and client methods (subscribeEarnElite, redeemEarnElite).

Exports / hygiene

  • src/index.ts: export v3/earn, v3/copytrading; simple-import-sort order fixed for websocket re-exports.
  • ESLint import sort applied on REST clients where needed.

JJ-Cro added 2 commits April 23, 2026 18:31
- Introduced new Earn Elite API endpoints in both v2 and v3, including functionalities for subscriptions, redeeming, and retrieving asset information.
- Updated package version to 3.1.7 in package.json and package-lock.json.
- Added example scripts for new Earn Elite API endpoints in the documentation.
- Refactored existing code to accommodate new Earn-related types and interfaces.
- Moved RedeemEarnEliteRequest and RedeemEarnEliteResult types to maintain consistency in import structure.
- Updated import statements in both rest-client-v2.ts and rest-client-v3.ts for better clarity and organization.

@tiagosiebler tiagosiebler left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just a check on the request method for a few of the agent endpoints. The rest looks good to me, thanks!

Comment thread src/rest-client-v2.ts

@tiagosiebler tiagosiebler left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks

@tiagosiebler
tiagosiebler merged commit 0b8e357 into sieblyio:master Apr 28, 2026
1 of 2 checks passed
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.

2 participants