feat(v3.1.7): add Earn Elite API endpoints and update version - #144
Merged
Conversation
- 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
left a comment
Member
There was a problem hiding this comment.
Just a check on the request method for a few of the agent endpoints. The rest looks good to me, thanks!
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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)customer-commissions,sub-customer-list,customer-trade-volume(POST),customer-list(POST),customer-kyc-result,customer-deposit,customer-asset,agent-commission— typed requests/responses undertypes/request|response/v2/broker.ts./api/v2/earn/elite/*with types inv2/earnand client methods.SpotSymbolInfoV2— optionalmaxLimitOrderValue,maxMarketOrderValue.subscribeEarnElite,redeemEarnElite; typesRedeemEarnEliteRequestV2/RedeemEarnEliteResultV2(and V3 equivalents).REST V3 (
RestClientV3)getRiskReserveHour,getRiskReserveAll;GetRiskReserveRequestV3adds optionalmarginCoin; daily reserve response supports optionaltotalBalanceand recordtype.getCopyFuturesTradingPairs,getCopyFuturesPositionSummary— types intypes/response/v3/copytrading.ts./api/v3/earn/elite-*endpoints withtypes/request|response/v3/earn.tsand client methods (subscribeEarnElite,redeemEarnElite).Exports / hygiene
src/index.ts: exportv3/earn,v3/copytrading; simple-import-sort order fixed for websocket re-exports.