Config

public class Config

Holds the library configuration parameters: the api key every request is signed with, and the http client and timeout used to make those requests.

Author

Sylvester Sefa-Yeboah

Since

1.0.0

Types

Link copied to clipboard
public class Builder
Assembles a Config a piece at a time.

Properties

Link copied to clipboard
public final static String BASE_URL
The Alpha Vantage query endpoint.
Link copied to clipboard
public final String key
Link copied to clipboard
public final int timeOut

Functions

Link copied to clipboard
public static Config.Builder builder()
Gets a builder instance.
Link copied to clipboard
public static void checkNotNullOrKeyEmpty(Config config)
Checks that a config instance is neither null nor missing its api key, and throws if it is.
Link copied to clipboard
public String getKey()
Gets the api key every request made with this config is signed with.
Link copied to clipboard
public OkHttpClient getOkHttpClient()
Gets the http client used to make requests.
Link copied to clipboard
public int getTimeOut()
Gets the connect timeout, in seconds, applied to the default http client.