crypto-client
Version:
An unified client for all cryptocurrency exchanges.
31 lines (30 loc) • 1.24 kB
TypeScript
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): Promise<boolean>;
export declare function queryOrder(orderId: string): Promise<{
[key: string]: any;
} | undefined>;
export declare function queryAllBalancesV2(all?: boolean): Promise<{
[key: string]: number;
} | Error>;
export declare function queryAllBalances(all?: boolean): Promise<{
[key: string]: number;
} | Error>;
export declare function fetchDepositAddress(symbolOrLabel: string): Promise<{
address: string;
memo?: string;
} | 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 withdraw(symbol: string, address: string, amount: number, platform: string, memo?: string, params?: {
[key: string]: string | number | boolean;
}): Promise<string | Error>;