crypto-client
Version:
An unified client for all cryptocurrency exchanges.
12 lines (11 loc) • 589 B
TypeScript
import { Market } from 'crypto-markets';
export declare const SUPPORTED_PAIRS: string[];
export declare function checkTradable(pair: string): boolean;
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>;