UNPKG

crypto-client

Version:

An unified client for all cryptocurrency exchanges.

26 lines (25 loc) 1.08 kB
import { Market } from 'crypto-markets'; import { Currency, WithdrawalFee } from '../pojo'; import { DepositAddress } from '../pojo/deposit_address'; export declare function placeOrder(market: Market, price: number, quantity: number, sell: boolean): Promise<string | Error>; export declare function cancelOrder(market: Market, orderId: string): Promise<boolean>; export declare function queryOrder(market: Market, orderId: string): Promise<{ [key: string]: any; } | undefined>; export declare function queryAllBalances(all?: boolean): Promise<{ [key: string]: number; } | Error>; export declare function getDepositAddresses(symbols: string[]): Promise<{ [key: string]: { [key: string]: DepositAddress; }; }>; export declare function getWithdrawalFees(): Promise<{ [key: string]: { [key: string]: WithdrawalFee; }; }>; export declare function fetchCurrencies(): Promise<{ [key: string]: Currency; }>; export declare function withdraw(symbol: string, address: string, amount: number, platform: string, memo?: string): Promise<string | Error>;