crypto-client
Version:
An unified client for all cryptocurrency exchanges.
26 lines (25 loc) • 1.03 kB
TypeScript
import { Market } from 'crypto-markets';
import { DepositAddress, WithdrawalFee } from '../pojo';
export declare function initilize(apiKey: string, userId: string): Promise<void>;
export declare function placeOrder(market: Market, price: number, quantity: number, sell: boolean): Promise<string | Error>;
export declare function cancelOrder(orderId: string): Promise<boolean>;
export declare function queryOrder(orderId: string): Promise<{
[key: string]: any;
} | undefined>;
export declare function queryOpenOrder(sell?: boolean): Promise<{
[key: string]: any;
} | undefined>;
export declare function queryAllBalances(all?: boolean): Promise<{
[key: string]: number;
} | Error>;
export declare function queryBalance(symbol: string): Promise<number>;
export declare function getWithdrawalFees(symbols: string[]): {
[key: string]: {
[key: string]: WithdrawalFee;
};
};
export declare function getDepositAddresses(symbols: string[]): {
[key: string]: {
[key: string]: DepositAddress;
};
};