From b3915c6c61322b45cc20b5e4a7339fdbfc4f2723 Mon Sep 17 00:00:00 2001 From: Tiago Siebler Date: Fri, 21 Feb 2025 17:20:09 +0000 Subject: [PATCH] feat(v2.3.2): add v1 query broker detail endpoint --- package-lock.json | 4 ++-- package.json | 2 +- src/broker-client.ts | 16 ++++++++++++++++ 3 files changed, 19 insertions(+), 3 deletions(-) diff --git a/package-lock.json b/package-lock.json index 5b94398..dab9740 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "bitget-api", - "version": "2.3.1", + "version": "2.3.2", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "bitget-api", - "version": "2.3.1", + "version": "2.3.2", "license": "MIT", "dependencies": { "axios": "^1.6.1", diff --git a/package.json b/package.json index cd6e5da..31cac0c 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "bitget-api", - "version": "2.3.1", + "version": "2.3.2", "description": "Node.js & JavaScript SDK for Bitget REST APIs & WebSockets, with TypeScript & end-to-end tests.", "main": "lib/index.js", "types": "lib/index.d.ts", diff --git a/src/broker-client.ts b/src/broker-client.ts index 83daf10..de4f3c4 100644 --- a/src/broker-client.ts +++ b/src/broker-client.ts @@ -155,4 +155,20 @@ export class BrokerClient extends BaseRestClient { ): Promise> { return this.postPrivate('/api/broker/v1/manage/sub-api-modify', params); } + + /** + * Undocumented endpoints + */ + + getAgentCommissionDetail(params?: { + startTime?: string; + endTime?: string; + limit?: string; + idLessTham?: string; + }): Promise> { + return this.getPrivate( + '/api/broker/v1/agent/commission-distribution', + params, + ); + } }