Skip to content

Commit

Permalink
Add partial balances to typescript declarations
Browse files Browse the repository at this point in the history
  • Loading branch information
s-coimbra21 authored Feb 5, 2018
1 parent d3d2fe0 commit e67b3b9
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions ccxt.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,10 @@ declare module 'ccxt' {
used: number,
total: number
}

export interface PartialBalances {
[currency: string]: number;
}

export interface Balances {
info: any;
Expand Down Expand Up @@ -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<any>;
fetchBalance (params?: any): Promise<Balances>;
fetchTotalBalance (params?: any): Promise<Balances>;
fetchUsedBalance (params?: any): Promise<Balances>;
fetchFreeBalance (params?: any): Promise<Balances>;
fetchOrderBook (symbol: string, limit?: number, params?: any): Promise<OrderBook>;
fetchTicker (symbol: string): Promise<Ticker>;
fetchTickers (symbols?: string[]): Promise<Tickers>;
Expand Down

0 comments on commit e67b3b9

Please sign in to comment.