Liking cljdoc? Tell your friends :D

clojure-finance.ecbjure.data


lines-from-streamclj

(lines-from-stream stream)
source

lines-from-zip-bytesclj

(lines-from-zip-bytes bs)
source

load-linesclj

(load-lines source)

Load CSV lines from a source:

  • nil → fetch latest data from ECB URL
  • string starting with http(s):// → fetch from URL (ZIP or CSV)
  • string (file path) → local file (ZIP or CSV)
  • java.io.File / Path → treated as local file Returns a seq of raw CSV lines.
Load CSV lines from a source:
- nil → fetch latest data from ECB URL
- string starting with http(s):// → fetch from URL (ZIP or CSV)
- string (file path) → local file (ZIP or CSV)
- java.io.File / Path → treated as local file
Returns a seq of raw CSV lines.
sourceraw docstring

parse-ecb-csvclj

(parse-ecb-csv lines
               {:keys [na-values cast-fn]
                :or {na-values #{"" "N/A"} cast-fn double}})

Parse ECB CSV lines into a rates map {currency (sorted-map date rate)}. Lines should be a seq of strings (not yet parsed).

Parse ECB CSV lines into a rates map {currency (sorted-map date rate)}.
Lines should be a seq of strings (not yet parsed).
sourceraw docstring

cljdoc builds & hosts documentation for Clojure/Script libraries

Keyboard shortcuts
Ctrl+kJump to recent docs
Move to previous article
Move to next article
Ctrl+/Jump to the search field
× close