SEC-required User-Agent string. Set via set-identity! before making requests.
SEC-required User-Agent string. Set via set-identity! before making requests.
(clear-cache!)Clear the in-memory HTTP response cache.
Clear the in-memory HTTP response cache.
(edgar-get url & {:keys [raw?] :or {raw? false}})Rate-limited GET against any SEC URL. Returns parsed JSON as a Clojure map, or raw body string if :raw? true. JSON responses are cached in memory (5 min for metadata, 1 hr for XBRL facts). Retries on 429/5xx with exponential backoff (up to 3 attempts). Options: :raw? - return body as string instead of parsing JSON; skips cache (default false)
Rate-limited GET against any SEC URL. Returns parsed JSON as a Clojure map, or raw body string if :raw? true. JSON responses are cached in memory (5 min for metadata, 1 hr for XBRL facts). Retries on 429/5xx with exponential backoff (up to 3 attempts). Options: :raw? - return body as string instead of parsing JSON; skips cache (default false)
(edgar-get-bytes url)Rate-limited GET returning raw bytes — for binary/archive downloads. Retries on 429/5xx with exponential backoff.
Rate-limited GET returning raw bytes — for binary/archive downloads. Retries on 429/5xx with exponential backoff.
(set-identity! name-and-email)Set the SEC Edgar identity used in all HTTP requests. Required by SEC fair-use policy. Example: (set-identity! "Your Name your@email.com")
Set the SEC Edgar identity used in all HTTP requests. Required by SEC fair-use policy. Example: (set-identity! "Your Name your@email.com")
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 |