Jeff-Lewis / yahoo-finance-managed

Automatically exported from code.google.com/p/yahoo-finance-managed
0 stars 0 forks source link

Currency field includes random characters (including new lines) on non-existent symbols #34

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Query for the currency (c4) of a non-existent symbol
2. Repeat
3.

What is the expected output? What do you see instead?
Expect empty field, get random characters, including newlines which can break 
parsing

Original issue reported on code.google.com by ad...@risc.perix.co.uk on 23 Feb 2012 at 8:13

GoogleCodeExporter commented 9 years ago
Do you have any code for testing?

greetz

Maas

Original comment by Maas...@gmail.com on 14 Mar 2012 at 12:43

GoogleCodeExporter commented 9 years ago

Original comment by Maas...@gmail.com on 22 Mar 2012 at 3:26

GoogleCodeExporter commented 9 years ago
Sorry I didn't get back to you, missed the e-mail.
This can be encountered with seemingly any querying involving the currency 
field (c4) and an unknown symbol.  I usually test with 9. Example:
http://finance.yahoo.com/d/quotes.csv?s=9+9+9+9+9+9+9+9+9+9+9+9+9+9+9+9+9+9+9+9+
9+9+9+9+9+9+9+9+9&f=snl1c4c1

Here's an example of what it can return:

"9","9",0.00,"",N/A
"9","9",0.00,"",N/A
"9","9",0.00,"xš",N/A
"9","9",0.00,"Xü™",N/A
"9","9",0.00,"˜H˜",N/A
"9","9",0.00,"ؐ",N/A
"9","9",0.00,"012",N/A
"9","9",0.00,"|¶
",N/A
"9","9",0.00,"",N/A

Original comment by ad...@risc.perix.co.uk on 23 Mar 2012 at 7:26