MCPcopy Create free account
hub / github.com/TraderAlice/OpenAlice / decodeHistogramDataEntry

Function decodeHistogramDataEntry

packages/ibkr/src/decoder/historical.ts:68–73  ·  view source on GitHub ↗
(proto: HistogramDataEntry)

Source from the content-addressed store, hash-verified

66}
67
68function decodeHistogramDataEntry(proto: HistogramDataEntry): HistogramData {
69 const hd = new HistogramData()
70 if (proto.price !== undefined) hd.price = proto.price
71 if (proto.size !== undefined) hd.size = new Decimal(proto.size)
72 return hd
73}
74
75function decodeHistoricalTickProto(proto: HistoricalTickProto): HistoricalTick {
76 const tick = new HistoricalTick()

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected