diff --git a/src/core/io/decoder.ts b/src/core/io/decoder.ts index 2447d53..eea67cf 100644 --- a/src/core/io/decoder.ts +++ b/src/core/io/decoder.ts @@ -871,7 +871,7 @@ export class Decoder { contract.right = validateOptionType(this.readStr() as OptionType); if (version >= 7) { - contract.multiplier = this.readInt(); + contract.multiplier = this.readDouble(); contract.primaryExch = this.readStr(); } @@ -979,7 +979,7 @@ export class Decoder { ) { this.readInt(); // mdSizeMultiplier - not used anymore } - contract.contract.multiplier = this.readInt(); + contract.contract.multiplier = this.readDouble(); contract.orderTypes = this.readStr(); contract.validExchanges = this.readStr(); @@ -1132,7 +1132,7 @@ export class Decoder { contract.right = validateOptionType(this.readStr() as OptionType); if (version >= 9) { - contract.multiplier = this.readInt(); + contract.multiplier = this.readDouble(); } contract.exchange = this.readStr(); @@ -1894,7 +1894,7 @@ export class Decoder { contract.lastTradeDateOrContractMonth = this.readStr(); contract.strike = this.readDouble(); contract.right = validateOptionType(this.readStr() as OptionType); - contract.multiplier = this.readInt(); + contract.multiplier = this.readDouble(); contract.exchange = this.readStr(); contract.currency = this.readStr(); contract.localSymbol = this.readStr(); @@ -1982,7 +1982,7 @@ export class Decoder { contract.lastTradeDateOrContractMonth = this.readStr(); contract.strike = this.readDouble(); contract.right = validateOptionType(this.readStr() as OptionType); - contract.multiplier = this.readInt(); + contract.multiplier = this.readDouble(); contract.exchange = this.readStr(); contract.currency = this.readStr(); contract.localSymbol = this.readStr(); @@ -2053,7 +2053,7 @@ export class Decoder { const exchange = this.readStr(); const underlyingConId = this.readInt(); const tradingClass = this.readStr(); - const multiplier = this.readStr(); + const multiplier = this.readDouble(); const expCount = this.readInt(); const expirations: unknown[] = [];