v2.0.11: chore() bump dependencies, feat() update logo, feat() add spot bills type

This commit is contained in:
Tiago Siebler
2024-10-01 16:15:06 +01:00
parent 7d04ff944a
commit baa8e727cd
9 changed files with 775 additions and 15 deletions

View File

@@ -4,6 +4,7 @@ import {
FuturesAccountBillRequestV2,
FuturesCandlesRequestV2,
SpotCandlesRequestV2,
SpotAccountBill,
} from './types';
import { REST_CLIENT_TYPE_ENUM, assertMarginType } from './util';
import BaseRestClient from './util/BaseRestClient';
@@ -417,7 +418,15 @@ export class RestClientV2 extends BaseRestClient {
);
}
getSpotAccountBills(params?: object): Promise<APIResponse<any>> {
getSpotAccountBills(params?: {
coin?: string;
groupType?: string;
businessType?: string;
startTime?: string;
endTime?: string;
limit?: string;
idLessThan?: string;
}): Promise<APIResponse<SpotAccountBill[]>> {
return this.getPrivate(`/api/v2/spot/account/bills`, params);
}

View File

@@ -48,3 +48,28 @@ export interface SpotMarketTrade {
fillQuantity: string;
fillTime: string;
}
export interface SpotAccountAsset {
coin: string;
available: string;
frozen: string;
locked: string;
limitAvailable: string;
uTime: string;
}
export interface SpotAccountBill {
cTime: string;
coino: string;
groupType: string;
businessType:
| 'SMALL_EXCHANGE_USER_IN'
| 'SMALL_EXCHANGE_USER_OUT'
| 'AIRDROP_REWARD'
| 'WITHDRAW'
| string; // TODO: complete list of possible values here?
size: string;
balance: string;
fees: string;
billd: string;
}