Opt-in resampling, with ownership limited to this wrapper's requests and streams.

interface TimeframeFeed {
    dataVariants(
        query: DataVariantQuery,
    ): DataVariantCapabilities | Promise<DataVariantCapabilities>;
    destroy(): void;
    getBars(req: BarsRequest): Promise<Bar[]>;
    getBarsPage(req: BarsPageRequest): Promise<BarsPage>;
    getCachedBars(req: BarsRequest): Promise<undefined | Bar[]>;
    resolve(request: BarsRequest): TimeframePlan;
    searchSymbols(request: SymbolSearchRequest): Promise<SymbolMatch[]>;
    subscribeBars(
        req: BarsRequest,
        onBar: (bar: Bar, meta?: LiveBarMeta) => void,
        opts?: BarSubscriptionOptions,
    ): UnsubscribeFn;
    subscribeDepth(
        req: BarsRequest,
        onDepth: (depth: MarketDepth) => void,
        opts?: { depthLevel?: number },
    ): UnsubscribeFn;
}

Hierarchy (View Summary)

Methods