Skip to content

Releases: clojure-finance/ecbjure

0.1.5

Choose a tag to compare

@buehlmaier buehlmaier released this 08 Jul 12:21

All HTTP fetches (fx/make-converter, sdmx/get-series, sdmx/list-dataflows) now apply connect/read timeouts (10 s / 30 s defaults, rebindable via clojure-finance.ecbjure.http) — a stalled ECB transfer throws java.net.SocketTimeoutException instead of blocking the calling thread forever.

Also fixes parsing of the daily file (fx/ecb-daily-url, eurofxref.zip): space-padded fields and the trailing blank column no longer throw NumberFormatException.

0.1.4

Choose a tag to compare

@clojure-finance clojure-finance released this 09 Mar 07:18

Fix cljdoc API analysis: dataset.clj moved to src-dataset/ and excluded from jar (stale 0.1.3 artifact had been deployed before the fix took effect)

0.1.3

Choose a tag to compare

@clojure-finance clojure-finance released this 09 Mar 07:13

Fixed

  • cljdoc API analysis failure: dataset.clj moved to src-dataset/ and excluded from default jar (activate via :dataset / :test-dataset aliases as before)
  • fx/get-rate on ref-currency ("EUR") now returns 1.0 instead of throwing
  • fx/cross-rate with "EUR" as either argument now works correctly

Added

  • sdmx/list-dataflows ? discover all ~100 available ECB SDMX dataflows
  • sdmx/build-series-key ? generic SDMX series-key compiler (strings, nil wildcards, sets)
  • sdmx/exr-series-key ? EXR convenience builder with named keys and sensible defaults
  • :updated-after option in sdmx/get-series

Changed

  • :fallback-on-wrong-date replaced by :fallback ? accepts false, :nearest, :before, :after (or true as alias for :nearest)

0.1.2

Choose a tag to compare

@clojure-finance clojure-finance released this 09 Mar 02:50

Added

  • clojure-finance.ecbjure.sdmx/get-series ? fetch any ECB SDMX series via the REST API; returns a vector of observation maps with :time-period (LocalDate) and :obs-value (double), plus all CSV dimension columns
  • clojure-finance.ecbjure.sdmx/parse-sdmx-csv ? parse SDMX CSV lines (format=csvdata) into observation maps; handles daily, monthly, and annual TIME_PERIOD formats
  • Predefined series-key constants: exr-daily, exr-monthly, euribor-1w, euribor-1m, euribor-3m, euribor-6m, euribor-1y, euribor-overnight, estr-daily, hicp-euro-area
  • clojure-finance.ecbjure.dataset/rates-wide ? TMD dataset in wide format (rows = dates, columns = currency codes)
  • clojure-finance.ecbjure.dataset/rates-long ? TMD dataset in tidy/long format (columns: :date, :currency, :rate)
  • :dataset and :test-dataset aliases for optional techascent/tech.ml.dataset integration
  • sdmx_test.clj ? 4 tests, 19 assertions; fully offline
  • dataset_test.clj ? 2 tests, 17 assertions

Changed

  • README: added SDMX Client section and dataset output examples
  • Install coordinate bumped to 0.1.2

0.1.1

Choose a tag to compare

@clojure-finance clojure-finance released this 08 Mar 14:56

Fixed

  • POM <name> tag was emitted as <n> due to a tools.build keyword collision with Clojure's name fn; fixed by using the string key "name" in pom-data. This caused the cljdoc build to fail for 0.1.0.

Added

  • CI via GitHub Actions (clojure -M:test on push/PR)
  • cljdoc, CI, and license badges in README
  • Docstrings on ecb-url and ecb-daily-url

0.1.0

Choose a tag to compare

@clojure-finance clojure-finance released this 08 Mar 14:56

Initial release. See CHANGELOG for details.