diff --git a/index.d.ts b/index.d.ts index 7e9e5bb3..3ebf1428 100644 --- a/index.d.ts +++ b/index.d.ts @@ -30,6 +30,10 @@ declare module 'binance-api-node' { prices(): Promise<{ [index: string]: string }>; time(): Promise; ws: WebSocket; + myTrades(options: { symbol: string, limit?: number, fromId?: number }): Promise; + getOrder(options: { symbol: string; orderId: number }): Promise; + cancelOrder(options: { symbol: string; orderId: number }): Promise; + openOrders(options: { symbol: string }): Promise; } export interface WebSocket { @@ -339,4 +343,41 @@ declare module 'binance-api-node' { isOrderWorking: boolean; isBuyerMaker: boolean; } + + interface MyTrade { + id: number; + orderId: number; + price: string; + qty: string; + commission: string; + commissionAsset: string; + time: number; + isBuyer: boolean; + isMaker: boolean; + isBestMatch: boolean; + } + + interface QueryOrderResult { + symbol: string; + orderId: number; + clientOrderId: string; + price: string; + origQty: string; + executedQty: string; + status: OrderStatus; + timeInForce: string; + type: string; + side: string; + stopPrice: string; + icebergQty: string; + time: number; + isWorking: boolean; + } + + interface CancelOrderResult { + symbol: string; + origClientOrderId: string; + orderId: number; + clientOrderId: string; + } }