An easy to use Clojure library for querying with the Yahoo Finance API
;; In project.clj:
[yahoo-finance-api "0.1.5"]
;; clojure-yahoo-finance v0.1.5 uses clojure-csv 2.0.2
;; In ns statement:
(ns my.ns
(:require [yahoo-finance-api.core :refer :all])
;; Getting last price from the api:
(get-stock "googl")
;; returns {:last-price 730.22M}
;; Getting other fields from the api:
(get-stock "googl" :name :last-price :open :change)
;; returns {:name "Alphabet Inc", :last-price 730.22M, :open 734.32M, :change "1.37"}
This library is very usable but still could use a little TLC. I'm hoping to have the following added shortly.
Distributed under the Eclipse Public License 1.0.
Can you improve this documentation?Edit on GitHub
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close