Skip to content

Commit

Permalink
Typing for dust transfer (#631) (#650)
Browse files Browse the repository at this point in the history
  • Loading branch information
EnkhAmar authored Oct 14, 2023
1 parent 71ca238 commit 6d27134
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -251,6 +251,21 @@ declare module 'binance-api-node' {
userAssetDribblets: UserAssetDribblets[]
}

export interface DustTransferResult {
amount: string;
fromAsset: string;
operateTime: number;
serviceChargeAmount: string;
tranId: number;
transferedAmount: string;
}

export interface DustTransfer {
totalServiceCharge: string
totalTransfered: string
transferResult: DustTransferResult[]
}

export interface DepositHistoryResponse {
[index: number]: {
insertTime: number
Expand Down Expand Up @@ -604,6 +619,10 @@ declare module 'binance-api-node' {
recvWindow?: number
timestamp: number
}): DustLog
dustTransfer(options: {
asset: string[],
recvWindow?: number,
})
universalTransfer(options: UniversalTransfer): Promise<{ tranId: number }>
universalTransferHistory(
options: UniversalTransferHistory,
Expand Down

0 comments on commit 6d27134

Please sign in to comment.