feat(v2.3.2): add v1 query broker detail endpoint

This commit is contained in:
Tiago Siebler
2025-02-21 17:20:09 +00:00
parent 8c53f707c1
commit b3915c6c61
3 changed files with 19 additions and 3 deletions

4
package-lock.json generated
View File

@@ -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",

View File

@@ -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",

View File

@@ -155,4 +155,20 @@ export class BrokerClient extends BaseRestClient {
): Promise<APIResponse<any>> {
return this.postPrivate('/api/broker/v1/manage/sub-api-modify', params);
}
/**
* Undocumented endpoints
*/
getAgentCommissionDetail(params?: {
startTime?: string;
endTime?: string;
limit?: string;
idLessTham?: string;
}): Promise<APIResponse<any>> {
return this.getPrivate(
'/api/broker/v1/agent/commission-distribution',
params,
);
}
}