andrzejs
-Interested User-
Posts: 23
Joined: May 27, 2004
|
Posted: Aug 11, 2005 05:42 AM
Msg. 1 of 5
Hi there,
I have a problem while processing a fundamental quote, F.
For example, for HUI.X I get this:
F, HUI.X, 1B, , , 248.180, 165.710, , , , , , , , , , , , , , , , , , GOLD B U G S INDEX, HUI HUW HZI, , , , , , , , , , , , , 0, 13, 3, , , 6, 27, 11/17/2004, 05/16/2005
There are 2 missing fields at the end, Calendar Year High/Low Dates.
I have no problem with stocks, for example for IBM:
F, IBM, 0D, 17.0, 5595000, 99.10, 71.85, 99.10, 71.85, 1.0, 0.20, 0.80, 09/10/05, 08/08, , , , , , 4.83, 5.01, 2.68, 12, , INTERNAT BUSINESS MACH, IBM IBZ, 57., 1.81, VIB WIB, 46970.0, 39798.0, 06/01/05, 14828.0, 1595791, , 0.50 05/27/99, 0.50 05/28/97, , n, 12, 2, 3571, 16.21, 1, 7, 01/03/2005, 04/20/2005, 01/03/2005, 04/20/2005
|
DTN_Natalie_H
-DTN Evangelist-
Posts: 175
Joined: May 10, 2004
DTN Market Access, LLC.
|
Posted: Aug 11, 2005 10:17 AM
Msg. 2 of 5
Hi,
What IQFeed version you are running? Will you to email your logfile to developer support for me? Thanks!
Natalie
Natalie Hannan DTN Market Access, LLC.
|
andrzejs
-Interested User-
Posts: 23
Joined: May 27, 2004
|
Posted: Aug 11, 2005 08:19 PM
Msg. 3 of 5
I'm using 2.3. What log file? Is there a log file that IQConnect creates? I looked for one but didn't find it.
|
andrzejs
-Interested User-
Posts: 23
Joined: May 27, 2004
|
Posted: Aug 11, 2005 09:12 PM
Msg. 4 of 5
Problem resolved, it's not IQFeed related, thanks for your help.
I found IQLog.txt but it's empty save for 1 line: === IQConnect Log File Created On Thu Aug 11 20:40:10 ===
For COMP.X and HUI.X the last two fields are not filled, they're empty: F,HUI.X,1B,,,248.180,165.710,,,,,,,,,,,,,,,,,,GOLD B U G S INDEX,HUI HUW HZI,,,,,,,,,,,,,0,13,3,,,6,27,11/17/2004,05/16/2005,,,
I'm making the assumption that indexes don't have the Calendar Year High/Low dates set, but they have 52 week High/Low dates set. Is there a reason behind this?
I'm using Java1.5 and I parse the F string by using the split() method. It turns out that any trailing empty fields are omitted from the result, hence I got an array of 47 fields instead of 49. The only work-around I can think of is to append another non-empty field to the end of the string before splitting, so that there are at least 49 fields, say ",*".
|
skunk
-DTN Evangelist-
Posts: 249
Joined: May 7, 2004
|
Posted: Aug 25, 2005 04:25 PM
Msg. 5 of 5
if you want split() to return trailing empty fields, call split(regex, -1) instead
|
|
|
|