From e49f4c49d44298f2ddc7ea5c638e06b4c03822d6 Mon Sep 17 00:00:00 2001 From: EnkhAmar Date: Fri, 13 Oct 2023 17:41:24 +0800 Subject: [PATCH 1/2] Typing for dust transfer (#631) --- index.d.ts | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/index.d.ts b/index.d.ts index 2ba4c8c5..30599ade 100644 --- a/index.d.ts +++ b/index.d.ts @@ -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 @@ -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, From 0410880a2cfc2537318c14459280b48f4dcbd5af Mon Sep 17 00:00:00 2001 From: EnkhAmar Date: Tue, 24 Oct 2023 11:46:11 +0800 Subject: [PATCH 2/2] typing for futures user stream listen key --- index.d.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/index.d.ts b/index.d.ts index 30599ade..b91db759 100644 --- a/index.d.ts +++ b/index.d.ts @@ -741,6 +741,11 @@ declare module 'binance-api-node' { limit?: number recvWindow?: number }): Promise + futuresGetDataStream(): Promise<{ + listenKey: string + }>, + futuresKeepDataStream(): Promise<{}>, + futuresCloseDataStream(): Promise<{}>, marginOrder(options: NewOrderMargin): Promise marginOrderOco(options: NewOcoOrderMargin): Promise marginGetOrder(options: {