UNPKG

@proton/ccxt

Version:

A JavaScript / TypeScript / Python / C# / PHP cryptocurrency trading library with support for 130+ exchanges

14 lines (13 loc) 564 B
/// <reference types="node" /> /// <reference types="node" /> /// <reference types="node" /> /// <reference types="node" /> import * as http from 'http'; import * as https from 'https'; import type { Readable } from 'stream'; export declare type ThenableRequest = http.ClientRequest & { then: Promise<http.IncomingMessage>['then']; }; export declare function toBuffer(stream: Readable): Promise<Buffer>; export declare function json(stream: Readable): Promise<any>; export declare function req(url: string | URL, opts?: https.RequestOptions): ThenableRequest;