A simple wrapper for interacting with Quandl API
[clj-quandl-api "0.2.1"]
;; In your ns statement:
(ns my.ns
(:require [clj-quandl-api.core :refer :all]))
Calls can be made anonymously with strict rate limits, set an API key to avoid them:
(set-api-key! "H2O...")
The wrapper is just one function quandl
, it sticks closely to conventions in API.
; Only Quandl code is needed.
(quandl "WIKI/AAPL")
; All other parameters are key-value pairs.
(quandl "WIKI/AAPL" :rows 10 :collapse "annual")
clj-time
is supported for dates (in addition to strings).
(require '[clj-time.core :as t])
(quandl "WIKI/AAPL" :end_date (t/date-time 1986 10 14))
API key can be also passed as an argument:
(quandl "WIKI/AAPL" :api_key "H2O...")
Copyright © 2016 keorn
Distributed under the Eclipse Public License either version 1.0 or (at your option) any later version.