crypto-client
Version:
An unified client for all cryptocurrency exchanges.
22 lines (21 loc) • 888 B
TypeScript
import { Market } from 'crypto-markets';
import { DepositAddress, WithdrawalFee } from '../pojo';
export declare function placeOrder(market: Market, price: number, quantity: number, sell: boolean): Promise<string | Error>;
export declare function queryOrder(orderId: string): Promise<{
[key: string]: any;
} | undefined>;
export declare function cancelOrder(orderId: string): Promise<boolean>;
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(): {
[key: string]: {
[key: string]: WithdrawalFee;
};
};
export declare function withdraw(symbol: string, address: string, amount: number, memo?: string): Promise<string | Error>;