Quandl

Travis Build Status Coverage Status MIT licensed Apache licensed crates.io

Documentation

Overview

Uses the Quandl v3 API to retrieve financial and economic datasets.

Usage

```rust extern crate quandl; extern crate chrono;

use quandl::QuandlRequest; use chrono::NaiveDate;

fn main() { // basic request let _ = QuandlRequest::new("WIKI", "AAPL") .rows(5) .run();

// specify some dates // Note: setting the start and end dates could fail (parsing error or inconsistency) // so when set, a Result is returned let _ = QuandlRequest::new("WIKI", "AAPL") .startdate("2015-11-10") .unwrap() .enddate("2015-11-12") .unwrap() .run();

// pass a NaiveDate instead of a &str let d = NaiveDate::fromymd(2015, 11, 20); let _ = QuandlRequest::new("WIKI", "AAPL") .startdate(&d) .unwrap() .run(); } ```

Testing

Some notes about the different testing options:

clippy is also run as part of the nightly build on travis.

License

This library is distributed under similar terms to Rust: dual licensed under the MIT license and the Apache license (version 2.0).

See LICENSE-APACHE, LICENSE-MIT, and COPYRIGHT for details.