tardis-machine
Version:
Locally runnable server with built-in data caching, providing both tick-level historical and consolidated real-time cryptocurrency market data via HTTP and WebSocket APIs
15 lines • 1.16 kB
TypeScript
import { ComputableFactory, Disconnect, MapperFactory, NormalizedData, ReplayNormalizedOptions, StreamNormalizedOptions } from 'tardis-dev';
export type WithDataType = {
dataTypes: string[];
};
export type ReplayNormalizedOptionsWithDataType = ReplayNormalizedOptions<any, any> & WithDataType;
export type ReplayNormalizedRequestOptions = ReplayNormalizedOptionsWithDataType | ReplayNormalizedOptionsWithDataType[];
export type StreamNormalizedOptionsWithDataType = StreamNormalizedOptions<any, any> & WithDataType & {
withErrorMessages?: boolean;
};
export type StreamNormalizedRequestOptions = StreamNormalizedOptionsWithDataType | StreamNormalizedOptionsWithDataType[];
export declare function getNormalizers(dataTypes: string[]): IterableIterator<MapperFactory<any, any>>;
export declare function constructDataTypeFilter(options: (ReplayNormalizedOptionsWithDataType | StreamNormalizedOptionsWithDataType)[]): (message: NormalizedData | Disconnect) => any;
export declare function getComputables(dataTypes: string[]): ComputableFactory<any>[];
export declare const wait: (delayMS: number) => Promise<unknown>;
//# sourceMappingURL=helpers.d.ts.map