UNPKG

tardis-dev

Version:

Convenient access to tick-level historical and real-time cryptocurrency market data via Node.js

18 lines 1.07 kB
import { Filter } from '../types.ts'; import { MultiConnectionRealTimeFeedBase, RealTimeFeedBase } from './realtimefeed.ts'; export declare class BullishRealTimeFeed extends MultiConnectionRealTimeFeedBase { protected _getRealTimeFeeds(exchange: string, filters: Filter<string>[], timeoutIntervalMS?: number, onError?: (error: Error) => void): Generator<BullishSingleConnectionRealTimeFeed, void, unknown>; private groupByPath; } export declare class BullishSingleConnectionRealTimeFeed extends RealTimeFeedBase { private readonly path; protected wssURL: string; private nextMessageId; constructor(exchange: string, path: string, filters: Filter<string>[], timeoutIntervalMS: number | undefined, onError?: (error: Error) => void); protected getWebSocketUrl(): Promise<string>; protected mapToSubscribeMessages(filters: Filter<string>[]): any[]; protected messageIsError(message: any): boolean; protected sendCustomPing: () => void; protected messageIsHeartbeat(message: any): boolean; } //# sourceMappingURL=bullish.d.ts.map