ib-flex-reader icon indicating copy to clipboard operation
ib-flex-reader copied to clipboard

Stock shards are not supported

Open Pacman1988 opened this issue 3 years ago • 0 comments

I have in my FlexQuery a stock shard:

error during casting field 'Position' of 'OpenPosition' with message: The input string '103.4339' was not in a correct format. and stacktrace: at System.Number.ThrowOverflowOrFormatException(ParsingStatus status, ReadOnlySpan 1 value, TypeCode type) at System.Int32.Parse(String s) at IbFlexReader.Utils.Extensions.CastValue(Object valueHolder, Object value, PropertyInfo property) at IbFlexReader.Utils.Extensions.PopulateFrom[TIn,TFrom](TIn obj, TFrom from, List1 errorObjects)

Here the line from the FlexQuery: OpenPosition accountId="x" acctAlias="" model="" currency="USD" fxRateToBase="0.93739" assetCategory="STK" symbol="SKT" description="TANGER FACTORY OUTLET CENTER" conid="12187" securityID="US8754651060" securityIDType="ISIN" cusip="875465106" isin="US8754651060" listingExchange="NYSE" underlyingConid="" underlyingSymbol="" underlyingSecurityID="" underlyingListingExchange="" issuer="" multiplier="1" strike="" expiry="" putCall="" principalAdjustFactor="" reportDate="20230102" position="103.4339" markPrice="17.94" positionValue="1855.6" openPrice="9.489062648" costBasisPrice="9.489062648" costBasisMoney="981.490757" percentOfNAV="3.97" fifoPnlUnrealized="874.109243" side="Long" levelOfDetail="SUMMARY" openDateTime="" holdingPeriodDateTime="" vestingDate="" code="" originatingOrderID="" originatingTransactionID="" accruedInt="" serialNumber="" deliveryType="" commodityType="" fineness="0.0" weight="0.0 ()"

For me in the class "OpenPosition" the property "Position" should not be an int?. Rather a double?

Pacman1988 avatar Jan 03 '23 15:01 Pacman1988