UNPKG

hft-js

Version:

High-Frequency Trading in Node.js

12 lines (11 loc) 596 B
import { type CallbackOptions } from "napi-ctp"; import type { ErrorType, IErrorReceiver } 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(errorReceiver: IErrorReceiver, options: CallbackOptions, error: ErrorType): boolean; protected _parseTime(time: string): number; }