public final class QuandlSession extends Object
QuandlSession.of(SessionOptions.withAuthToken(AUTH_TOKEN));to use your API authorization token string, or use the API without a token, which may have lower rate/volume limits.
QuandlSession.of();Then call one of the methods to fetch data! You can either invoke withDefaultRetentionPolicy() on the session or withFrequency() on the DataSetRequest to hint the CacheManager whether it should load over the network or retrieve data from the cache
| Modifier and Type | Field and Description |
|---|---|
static String |
AUTH_TOKEN_PARAM_NAME
the parameter name for the authorization token (aka Quandl API key).
|
| Modifier and Type | Method and Description |
|---|---|
static QuandlSession |
create()
Create a Quandl session without an authorization token (authToken).
|
static QuandlSession |
create(SessionOptions sessionOptions)
Create a Quandl session with detailed SessionOptions.
|
static QuandlSession |
create(String authToken)
Create a Quandl session to use a specific authorization token (authToken) with
all requests.
|
protected javax.ws.rs.client.Client |
getClient()
Allow the client to be overridden by a test subclass.
|
TabularResult |
getDataSet(DataSetRequest request)
Get a tabular data set from Quandl.
|
TabularResult |
getDataSets(MultiDataSetRequest request)
Deprecated.
this call is provided for compatibility purposes and is deprecated, please use the single request mechanism
|
MetaDataResult |
getMetaData(MetaDataRequest request)
Get meta data from Quandl about a particular quandlCode.
|
MetaDataResult |
getMetaData(MultiMetaDataRequest request)
Get meta data from Quandl about a range of quandlCodes returned as a single MetaDataResult.
|
Map<String,HeaderDefinition> |
getMultipleHeaderDefinition(MultiMetaDataRequest request)
Deprecated.
this now uses single calls to simulate multisets to support legacy code
|
SearchResult |
search(SearchRequest request)
Get search results from Quandl.
|
public static final String AUTH_TOKEN_PARAM_NAME
public static QuandlSession create(String authToken)
authToken - a Quandl API authorization tokenpublic static QuandlSession create()
public static QuandlSession create(SessionOptions sessionOptions)
sessionOptions - a user created SessionOptions instance, not nullprotected javax.ws.rs.client.Client getClient()
public TabularResult getDataSet(DataSetRequest request)
request - the request object containing details of what is requiredpublic MetaDataResult getMetaData(MetaDataRequest request)
request - the request object containing details of what is requiredpublic TabularResult getDataSets(MultiDataSetRequest request)
request - the multi data set request object containing details of what is requiredpublic MetaDataResult getMetaData(MultiMetaDataRequest request)
request - the request object containing details of what is requiredpublic Map<String,HeaderDefinition> getMultipleHeaderDefinition(MultiMetaDataRequest request)
request - the request object containing details of what is required, not nullpublic SearchResult search(SearchRequest request)
request - the search query parameter, not nullCopyright 2014-Present by Jim Moores
${javadoc.footer.license}