UNPKG

@exchanges/binance

Version:

Exchange provider for Binance API

26 lines (25 loc) 747 B
import { BinanceClient } from '../../../clients'; export interface IndividualSymbolBookTickerStreamsResponse { orderBookUpdateId: number; symbol: string; pair: string; bestBidPrice: number; bestBidQuantity: number; bestAskPrice: number; bestAskQuantity: number; transactionTime: Date; eventTime: Date; } export interface IndividualSymbolBookTickerStreamsResponseRaw { e: string; u: number; s: string; ps: string; b: string; B: string; a: string; A: string; T: number; E: number; } export declare function individualSymbolBookTickerStreams(client: BinanceClient, symbol: string, callback: (data: IndividualSymbolBookTickerStreamsResponse, error?: any) => any): () => any;