UNPKG

@nodeswork/applet

Version:
23 lines (22 loc) 848 B
import { RequestService } from '../../services'; import { BaseDigitalCurrencyAccount, DigitalCurrencyAccount, dc } from './def'; export declare class KrakenAccount extends BaseDigitalCurrencyAccount implements DigitalCurrencyAccount { protected $request: RequestService; constructor($request: RequestService); static $acceptCurrencies(): dc.CURRENCY_NAME[]; static $acceptTradings(): dc.TRADE_PAIR[]; $getBalance(): Promise<dc.Balance>; static $getDepths(pairs: dc.TRADE_PAIR[]): Promise<dc.Depths>; static getDepths(pairs: string[]): Promise<{ [pair: string]: kraken.Depth; }>; } export declare namespace kraken { interface AccountBalance { [name: string]: string; } interface Depth { asks: Array<[string, string, number]>; bids: Array<[string, string, number]>; } }