Shared HTTP+JSON helpers for the live data sources (FRED CPI, CurrencyFreaks). http-kit for the
request, clojure.data.json for the body. Failures throw an ex-info tagged :remote-error so
callers can decide whether to fall back.
Shared HTTP+JSON helpers for the live data sources (FRED CPI, CurrencyFreaks). http-kit for the request, `clojure.data.json` for the body. Failures throw an ex-info tagged `:remote-error` so callers can decide whether to fall back.
(decimal->ratio s)A decimal (or integer) value string -> an exact rational, or nil for anything that isn't a number (e.g. FRED's missing-value "."). Whole numbers may arrive without a decimal point ("14").
A decimal (or integer) value string -> an exact rational, or nil for anything that isn't a number
(e.g. FRED's missing-value "."). Whole numbers may arrive without a decimal point ("14").(get-json url query-params)GET url with query-params (a string->string map) and parse the JSON body into a Clojure map
(keyword keys). Throws an ex-info tagged :remote-error on a transport error or non-200 status.
GET `url` with `query-params` (a string->string map) and parse the JSON body into a Clojure map (keyword keys). Throws an ex-info tagged `:remote-error` on a transport error or non-200 status.
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |