import { FuturesAggTradeStreamTicker, CandlestickChartInterval, FuturesChartCandle, FuturesMiniTicker, FuturesTicker, FuturesMarkPriceTicker } from './types'; /** * The Aggregate Trade Streams push market trade information that is aggregated for a single taker order every 100 milliseconds. * @param symbols - A symbol or an array of symbols * @param callback - Stream callback * @returns */ export declare function futuresAggTradeStream(givenSymbols: string | string[], callback: (ticker: FuturesAggTradeStreamTicker) => any): () => void; declare type MiniTickerCallback = (ticker: T) => any; /** * 24hr rolling window mini-ticker statistics for a single symbol or for all symbols. * @param callback - Stream callback */ export declare function futuresMiniTickerStream(callback: MiniTickerCallback): () => void; export declare function futuresMiniTickerStream(symbol: string, callback: MiniTickerCallback): () => void; declare type TickerCallback = (ticker: T) => any; /** * 24hr rollwing window ticker statistics for a single symbol or all symbols. * @param callback - Stream callback */ export declare function futuresTickerStream(callback: TickerCallback): () => void; export declare function futuresTickerStream(symbol: string, callback: TickerCallback): () => void; declare type MarkPriceCallback = (ticker: T) => any; /** * Mark price and funding rate for a single symbol or all symbols pushed every every second. * @param callback - Stream callback */ export declare function futuresMarkPriceStream(callback: MarkPriceCallback): () => void; export declare function futuresMarkPriceStream(symbol: string, callback: MarkPriceCallback): () => void; /** * The Kline/Candlestick Stream push updates to the current klines/candlestick every 250 milliseconds (if existing). * @param symbolIntervalPairs - An array of [symbol, interval] tuples * @param callback - Stream callback */ export declare function futuresCandlesSubscribe(symbolIntervalPairs: [string, CandlestickChartInterval][], callback: (candle: FuturesChartCandle) => any): () => void; interface FuturesChartSubscribeOptions { symbol: string; interval: CandlestickChartInterval; callback: (candles: FuturesChartCandle[]) => any; limit: number; firstTickFromCache?: boolean; } /** * Loads candles and subscribes to candle updates for a given symbol and an interval. Received results are cached. * @param options - Subscription options * @param options.symbol - Symbol * @param options.interval - Interval * @param options.callback - Ticker callback * @param options.limit - Number of requested candles * @param options.firstTickFromCache - Does the last candle need to be loaded from cache */ export declare function futuresChartSubscribe({ symbol, interval, callback, limit, firstTickFromCache, }: FuturesChartSubscribeOptions): () => void; export {}; //# sourceMappingURL=futuresStreams.d.ts.map