@machinemode/cryptopia
Version:
Node wrapper for Cryptopia's CLient API
16 lines (15 loc) • 517 B
TypeScript
import ApiResponse from './ApiResponse';
declare class HttpsClient {
private hostname;
private key;
private secret;
private amx;
private ca;
constructor(hostname: string, key?: string | undefined, secret?: string | undefined);
readonly host: string;
get(path: string): Promise<ApiResponse>;
post(path: string, body?: any): Promise<ApiResponse>;
private request(options, requestBody, resolve, reject);
private onResponse(res, resolve, reject);
}
export default HttpsClient;