(d: Decoder, fields: Iterator<string>)
| 214 | } |
| 215 | |
| 216 | function processHistogramData(d: Decoder, fields: Iterator<string>): void { |
| 217 | decodeInt(fields) // msgId |
| 218 | const reqId = decodeInt(fields) |
| 219 | const numPoints = decodeInt(fields) |
| 220 | |
| 221 | const histogram: HistogramData[] = [] |
| 222 | for (let i = 0; i < numPoints; i++) { |
| 223 | const dataPoint = new HistogramData() |
| 224 | dataPoint.price = decodeFloat(fields) |
| 225 | dataPoint.size = decodeDecimal(fields) |
| 226 | histogram.push(dataPoint) |
| 227 | } |
| 228 | |
| 229 | d.wrapper.histogramData(reqId, histogram) |
| 230 | } |
| 231 | |
| 232 | function processHistoricalTicks(d: Decoder, fields: Iterator<string>): void { |
| 233 | decodeInt(fields) // msgId |
nothing calls this directly
no test coverage detected