v2.0.11: chore() bump dependencies, feat() update logo, feat() add spot bills type
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user