Skip to content

API Reference


API Reference / parseMarketDepthPacket

Function: parseMarketDepthPacket() ​

parseMarketDepthPacket(buf, mode, subscriptions?): MarketDepthEvent[]

Defined in: src/ws/parsers/marketDepth200.ts:187

Dispatcher to parse market depth packets for either 20-level or 200-level streams.

Parameters ​

buf ​

Buffer

mode ​

"twenty" | "twohundred"

subscriptions? ​

object[]

Returns ​

MarketDepthEvent[]

Community project — not affiliated with Dhan. MIT License.