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

Method decodeTrailParams

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

Source from the content-addressed store, hash-verified

300 }
301
302 decodeTrailParams(fields: Iterator<string>): void {
303 this.order.trailStopPrice = decodeDecimal(fields)
304 if (this.version >= 30) {
305 this.order.trailingPercent = decodeDecimal(fields)
306 }
307 }
308
309 decodeBasisPoints(fields: Iterator<string>): void {
310 this.order.basisPoints = decodeFloat(fields, SHOW_UNSET)

Callers 1

applyOrderHandlersFunction · 0.95

Calls 1

decodeDecimalFunction · 0.85

Tested by

no test coverage detected