From e67b3b9b30914f5cb5a747ad58ae4f7dd21a95cc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9rgio=20Coimbra?= Date: Mon, 5 Feb 2018 21:06:13 +0000 Subject: [PATCH] Add partial balances to typescript declarations --- ccxt.d.ts | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/ccxt.d.ts b/ccxt.d.ts index 661a0f518986..610483276c67 100644 --- a/ccxt.d.ts +++ b/ccxt.d.ts @@ -153,6 +153,10 @@ declare module 'ccxt' { used: number, total: number } + + export interface PartialBalances { + [currency: string]: number; + } export interface Balances { info: any; @@ -278,6 +282,9 @@ declare module 'ccxt' { extractParams (str: string): string[]; createOrder (market: string, type: string, side: string, amount: string, price?: string, params?: string): Promise; fetchBalance (params?: any): Promise; + fetchTotalBalance (params?: any): Promise; + fetchUsedBalance (params?: any): Promise; + fetchFreeBalance (params?: any): Promise; fetchOrderBook (symbol: string, limit?: number, params?: any): Promise; fetchTicker (symbol: string): Promise; fetchTickers (symbols?: string[]): Promise;