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

Method decodeAlgoParams

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

Source from the content-addressed store, hash-verified

425 }
426
427 decodeAlgoParams(fields: Iterator<string>): void {
428 if (this.version >= 21) {
429 this.order.algoStrategy = decodeStr(fields)
430 if (this.order.algoStrategy) {
431 const algoParamsCount = decodeInt(fields)
432 if (algoParamsCount > 0) {
433 this.order.algoParams = []
434 for (let i = 0; i < algoParamsCount; i++) {
435 const tagValue = new TagValue()
436 tagValue.tag = decodeStr(fields)
437 tagValue.value = decodeStr(fields)
438 this.order.algoParams.push(tagValue)
439 }
440 }
441 }
442 }
443 }
444
445 decodeSolicited(fields: Iterator<string>): void {
446 if (this.version >= 33) {

Callers 1

applyOrderHandlersFunction · 0.95

Calls 3

decodeStrFunction · 0.70
decodeIntFunction · 0.70
pushMethod · 0.65

Tested by

no test coverage detected