/// import { EventEmitter } from 'events'; import { WsPrivateChannelArgTickers } from './type/request'; import { InstrumentType } from '.'; export interface WsTicker { instType: InstrumentType; instId: string; last: string; lastSz: string; askPx: string; askSz: string; bidPx: string; bidSz: string; open24h: string; high24h: string; low24h: string; volCcy24h: string; vol24h: string; sodUtc0: string; sodUtc8: string; ts: string; } export interface Market { emit(event: 'push-tickers', data: WsTicker[]): boolean; on(event: 'push-tickers', listener: (data: WsTicker[]) => void): this; off(event: 'push-tickers', listener: (data: WsTicker[]) => void): this; } export declare class Market extends EventEmitter { private _okxWsClient; private _tickers; constructor(); subscribe(args: WsPrivateChannelArgTickers[]): void; get tickers(): Map; }