crypto-client
Version:
An unified client for all cryptocurrency exchanges.
28 lines (27 loc) • 1.31 kB
TypeScript
import { Market } from 'crypto-markets';
import { Currency, WithdrawalFee } from '../pojo';
import { DepositAddress } from '../pojo/deposit_address';
export declare function placeOrder(market: Market, price: number, quantity: number, sell: boolean, clientOrderId?: string): Promise<string | Error>;
export declare function cancelOrder(market: Market, orderId: string, clientOrderId?: string): Promise<boolean>;
export declare function queryOrder(market: Market, orderId: string, clientOrderId?: string): 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 getDepositAddresses(symbols: string[], all?: boolean): Promise<{
[key: string]: {
[key: string]: DepositAddress;
};
}>;
export declare function getWithdrawalFees(): Promise<{
[key: string]: {
[key: string]: WithdrawalFee;
};
}>;
export declare function fetchCurrencies(): Promise<{
[key: string]: Currency;
}>;
export declare function withdraw(symbol: string, address: string, // only supports existing addresses in your withdrawal address list
amount: number, platform: string, memo?: string): Promise<string | Error>;