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

Method decodeAuxPrice

packages/ibkr/src/order-decoder.ts:113–120  ·  view source on GitHub ↗
(fields: Iterator<string>)

Source from the content-addressed store, hash-verified

111 }
112
113 decodeAuxPrice(fields: Iterator<string>): void {
114 if (this.version < 30) {
115 const raw = decodeDecimal(fields)
116 this.order.auxPrice = raw.equals(UNSET_DECIMAL) ? new Decimal(0) : raw
117 } else {
118 this.order.auxPrice = decodeDecimal(fields)
119 }
120 }
121
122 decodeTIF(fields: Iterator<string>): void {
123 this.order.tif = decodeStr(fields)

Callers 1

applyOrderHandlersFunction · 0.95

Calls 1

decodeDecimalFunction · 0.85

Tested by

no test coverage detected