@exchanges/binance
Version:
Exchange provider for Binance API
8 lines (7 loc) • 339 B
TypeScript
import { BinanceClient } from '../../../clients';
export interface IndexPriceStreamResponse {
eventTime: Date;
pair: string;
indexPrice: number;
}
export declare function indexPriceStream(client: BinanceClient, pair: string, updateSpeed: '1s' | '3s', callback: (data: IndexPriceStreamResponse, error?: any) => any): () => any;