All Downloads are FREE. Search and download functionalities are using the official Maven repository.

yahoofinance.histquotes2.IntervalMapper Maven / Gradle / Ivy

Go to download

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.

There is a newer version: 3.17.0
Show newest version
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