UNPKG

@exchanges/binance

Version:

Exchange provider for Binance API

14 lines (13 loc) 492 B
import { BinanceClient } from '../../../clients'; export interface PartialBookDepthStreamsResponse { lastUpdateId: number; bids: { price: number; quantity: number; }[]; asks: { price: number; quantity: number; }[]; } export declare function partialBookDepthStreams(client: BinanceClient, symbol: string, level: 5 | 10 | 20, updateSpeed: '100ms' | '1000ms', callback: (data: PartialBookDepthStreamsResponse, error?: any) => any): () => any;