Skip navigation links

Package com.jimmoores.quandl

The core Quandl wrapper classes

See: Description

Package com.jimmoores.quandl Description

The core Quandl wrapper classes

The core class is QuandlSession. This can be initialized with or without SessionOptions that specify things like the Quandl API Token (optional, but strongly recommended - they are free). The general pattern is that there is a Request and Response class. The Request class often uses the Builder pattern to allow requests to be built in a fluent style.

   QuandlSession session = QuandlSession.create();
   TabularResult tabularResult = session.getDataSet(DataSetRequest.Builder.of("WIKI/AAPL"));
   System.out.println(tabularResult.toPrettyPrintedString());
 

The types of request are:

The core methods on the session are:

The data types returned by these methods are:

With the MetaDataResult and SearchResult the underlying raw JSON message is also available for query. Note that the multiple data set/meta data set calls return data in the same format as single requests, just with more columns and/or meta data. The only current exception is getMultipleHeaderDefinition which separates out the header information for each requested Quandl code. Future versions are intended to provide methods to split out multiple requests automatically for tabular data and search results (although for the meantime, the SearchResult class contains functionality to separate out the search documents.

Unlike the underlying Quandl REST API, you can lookup columns in a Row object using the column name as well as the index of the column. In some corner cases, duplicate column names can be returned from Quandl. In these cases, the later duplicates are renamed to 'ColumnName.1', 'ColumnName.2', and so on. This allows the consistent use of column names for lookup.

Gotchas and points of note

Skip navigation links

Copyright 2014-Present by Jim Moores
${javadoc.footer.license}