API Reference

Order book depth by granularity

Method: "depth"

Params

{  
  symbol:      string,
  granularity: uint8,
  limit:       uint8, // can be 5, 10 or 20
}

Result

{
  bids: [][]string // {price, size, cumulativeSizeUpToPrice}
  asks: [][]string // {price, size, cumulativeSizeUpToPrice},
  timestamp: 1715594307, // in ms
}