hft-js
Version:
High-Frequency Trading in Node.js
12 lines (11 loc) • 600 B
TypeScript
import { type CallbackOptions } from "napi-ctp";
import type { ErrorType, ILifecycleListener } from "./interfaces.js";
export declare class CTPProvider {
protected readonly flowPath: string;
protected readonly frontAddrs: string | string[];
constructor(flowPath: string, frontAddrs: string | string[]);
private _sleep;
protected _withRetry(request: () => number | undefined, ms?: number): Promise<number | undefined>;
protected _isErrorResp(lifecycle: ILifecycleListener, options: CallbackOptions, error: ErrorType): boolean;
protected _parseTime(time: string): number;
}