UNPKG

crypto-client

Version:

An unified client for all cryptocurrency exchanges.

27 lines (26 loc) 1.23 kB
import { Market } from 'crypto-markets'; import { DepositAddress, WithdrawalFee } from '../pojo'; export declare function placeOrder(market: Market, price: number, quantity: number, sell: boolean, clientOrderId?: string): Promise<string | Error>; export declare function cancelOrder(orderId: string, clientOrderId?: string): Promise<boolean>; export declare function queryOrder(orderId: string, clientOrderId?: string): Promise<{ [key: string]: any; } | undefined>; export declare function queryAllBalances(all?: boolean): Promise<{ [key: string]: number; } | Error>; export declare function getDepositAddress(symbol: string, generateNew?: boolean): Promise<DepositAddress | Error>; export declare function getDepositAddresses(symbols: string[]): Promise<{ [key: string]: { [key: string]: DepositAddress; }; }>; export declare function fetchWithdrawInfo(symbol: string, key: string, amount: number): Promise<{ method: string; fee: number; } | Error>; export declare function getWithdrawalFees(): Promise<{ [key: string]: { [key: string]: WithdrawalFee; }; }>; export declare function withdraw(symbol: string, platform: string, key: string, amount: number): Promise<string | Error>;