yahoofinance.histquotes2.IntervalMapper Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of YahooFinanceAPI Show documentation
Show all versions of YahooFinanceAPI Show documentation
This library provides some methods that should make it easy
to communicate with the Yahoo Finance API.
It allows you to request detailed information, some statistics
and historical quotes on stocks.
Separate functionality is available to request a simple FX quote.
Please check the javadoc to get a complete overview of the available methods
and to get an idea of which data is available from Yahoo Finance.
package yahoofinance.histquotes2;
import yahoofinance.histquotes.Interval;
/**
*
* @author Stijn Strickx
*/
public class IntervalMapper {
public static QueryInterval get(Interval interval) {
switch(interval) {
case DAILY: return QueryInterval.DAILY;
case WEEKLY: return QueryInterval.WEEKLY;
case MONTHLY: return QueryInterval.MONTHLY;
}
return QueryInterval.MONTHLY;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy