You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hey,
During accessing history data of msft-nasdaq, in parsing of TickMessage inside the constructor (see code below),
the following line was received: "2018-04-17 17:51:22.000000,96.0700,1061909,0,0.0000,0.0000,4145784264,O,19,143A"
The parsing code inside constructor:
varvalues= msg.Split(',');returnnew TickMessage(
DateTime.Parse(values[0]),float.Parse(values[1]),int.Parse(values[2]),int.Parse(values[3]),float.Parse(values[4]),float.Parse(values[5]),int.Parse(values[6]),//this line is tickId that attempts to parse 4145784264.char.Parse(values[7]),int.Parse(values[8]),
values[9]);
Fix:
Change TickId to ulong (or long if there is a possibility to receive -1).
The text was updated successfully, but these errors were encountered:
Hey,
During accessing history data of
msft-nasdaq
, in parsing ofTickMessage
inside the constructor (see code below),the following line was received:
"2018-04-17 17:51:22.000000,96.0700,1061909,0,0.0000,0.0000,4145784264,O,19,143A"
The parsing code inside constructor:
Fix:
Change
TickId
toulong
(orlong
if there is a possibility to receive -1).The text was updated successfully, but these errors were encountered: