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

Method decodeDeltaNeutral

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

Source from the content-addressed store, hash-verified

413 }
414
415 decodeDeltaNeutral(fields: Iterator<string>): void {
416 if (this.version >= 20) {
417 const deltaNeutralContractPresent = decodeBool(fields)
418 if (deltaNeutralContractPresent) {
419 this.contract.deltaNeutralContract = new DeltaNeutralContract()
420 this.contract.deltaNeutralContract.conId = decodeInt(fields)
421 this.contract.deltaNeutralContract.delta = decodeFloat(fields)
422 this.contract.deltaNeutralContract.price = decodeFloat(fields)
423 }
424 }
425 }
426
427 decodeAlgoParams(fields: Iterator<string>): void {
428 if (this.version >= 21) {

Callers 1

applyOrderHandlersFunction · 0.95

Calls 3

decodeFloatFunction · 0.85
decodeBoolFunction · 0.70
decodeIntFunction · 0.70

Tested by

no test coverage detected