@proton/ccxt
Version:
A JavaScript / TypeScript / Python / C# / PHP cryptocurrency trading library with support for 130+ exchanges
22 lines (21 loc) • 1.19 kB
TypeScript
declare const now: () => number;
declare const microseconds: () => number;
declare const milliseconds: () => number;
declare const seconds: () => number;
declare const uuidv1: () => string;
declare const setTimeout_safe: (done: any, ms: any, setTimeout?: any, targetTime?: any) => () => void;
declare class TimedOut extends Error {
constructor();
}
declare const iso8601: (timestamp: any) => string;
declare const parse8601: (x: any) => number;
declare const parseDate: (x: any) => number;
declare const rfc2616: (timestamp?: any) => string;
declare const mdy: (timestamp: any, infix?: string) => string;
declare const ymd: (timestamp: any, infix: any, fullYear?: boolean) => string;
declare const yymmdd: (timestamp: any, infix?: string) => string;
declare const yyyymmdd: (timestamp: any, infix?: string) => string;
declare const ymdhms: (timestamp: any, infix?: string) => string;
declare const sleep: (ms: any) => Promise<unknown>;
declare const timeout: (ms: any, promise: any) => Promise<any>;
export { now, microseconds, milliseconds, seconds, iso8601, parse8601, rfc2616, uuidv1, parseDate, mdy, ymd, yymmdd, yyyymmdd, ymdhms, setTimeout_safe, sleep, TimedOut, timeout, };