Package yahoofinance.quotes.csv
Class StockQuotesRequest
- java.lang.Object
-
- yahoofinance.quotes.csv.QuotesRequest<StockQuotesData>
-
- yahoofinance.quotes.csv.StockQuotesRequest
-
public class StockQuotesRequest extends QuotesRequest<StockQuotesData>
- Author:
- Stijn Strickx
-
-
Field Summary
Fields Modifier and Type Field Description static java.util.List<QuotesProperty>DEFAULT_PROPERTIESYahoo Finance is responding with formatted numbers in some cases.-
Fields inherited from class yahoofinance.quotes.csv.QuotesRequest
properties, query
-
-
Constructor Summary
Constructors Constructor Description StockQuotesRequest(java.lang.String query)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected StockQuotesDataparseCSVLine(java.lang.String line)-
Methods inherited from class yahoofinance.quotes.csv.QuotesRequest
getProperties, getQuery, getResult, getSingleResult, setProperties
-
-
-
-
Field Detail
-
DEFAULT_PROPERTIES
public static final java.util.List<QuotesProperty> DEFAULT_PROPERTIES
Yahoo Finance is responding with formatted numbers in some cases. Because of this, those number may contain commas. This will screw up the CSV file. It's not possible to choose a different delimiter for the CSV or to disable the number formatting To work around this, we surround the vulnerable values by the stock symbol. This forces us to do manual parsing of the CSV lines instead of using the easy String.split
-
-
Method Detail
-
parseCSVLine
protected StockQuotesData parseCSVLine(java.lang.String line)
- Specified by:
parseCSVLinein classQuotesRequest<StockQuotesData>
-
-