Liking cljdoc? Tell your friends :D

edgar.dataset


add-market-cap-rankclj

(add-market-cap-rank ds col)

Add a :rank column (1 = largest) based on a market-cap or size column.

Add a :rank column (1 = largest) based on a market-cap or size column.
sourceraw docstring

cross-sectional-datasetclj

(cross-sectional-dataset taxonomy concept unit frame)

Build a cross-sectional dataset for a concept across all companies. Uses the SEC frames endpoint (much faster than per-company fetches). taxonomy : "us-gaap" | "dei" | "ifrs-full" concept : e.g. "Assets" "Revenues" unit : e.g. "USD" "shares" frame : e.g. "CY2023Q4I" "CY2023" "CY2022Q3" Returns a dataset sorted by :val descending.

Build a cross-sectional dataset for a concept across all companies.
Uses the SEC frames endpoint (much faster than per-company fetches).
taxonomy : "us-gaap" | "dei" | "ifrs-full"
concept  : e.g. "Assets" "Revenues"
unit     : e.g. "USD" "shares"
frame    : e.g. "CY2023Q4I" "CY2023" "CY2022Q3"
Returns a dataset sorted by :val descending.
sourceraw docstring

filings->datasetclj

(filings->dataset filings & {:keys [name] :or {name "filings"}})

Convert a seq of filing metadata maps to a tech.ml.dataset. Useful for filtering/sorting filing lists with dataset operations.

Convert a seq of filing metadata maps to a tech.ml.dataset.
Useful for filtering/sorting filing lists with dataset operations.
sourceraw docstring

filter-formclj

(filter-form ds form)

Filter a facts dataset to a specific form type.

Filter a facts dataset to a specific form type.
sourceraw docstring

get-filings-datasetclj

(get-filings-dataset ticker-or-cik & opts)

Fetch filings for a company and return as a dataset. Options same as edgar.filings/get-filings.

Fetch filings for a company and return as a dataset.
Options same as edgar.filings/get-filings.
sourceraw docstring

multi-company-factsclj

(multi-company-facts tickers & {:keys [concept form as-of] :or {form "10-K"}})

Fetch XBRL facts for multiple tickers/CIKs and combine into a single dataset. Returns a long-format dataset with an additional :ticker column. If a ticker fails (HTTP error, unknown CIK, etc.) it is skipped silently. If all tickers fail or tickers is empty, returns an empty dataset. Options: :concept - string or collection of concept strings to keep (default all) :form - "10-K" | "10-Q" (default "10-K") :as-of - "YYYY-MM-DD" string; exclude filings submitted after this date and keep only the most recently filed observation per [ticker concept end]

Fetch XBRL facts for multiple tickers/CIKs and combine into a single dataset.
Returns a long-format dataset with an additional :ticker column.
If a ticker fails (HTTP error, unknown CIK, etc.) it is skipped silently.
If all tickers fail or tickers is empty, returns an empty dataset.
Options:
  :concept   - string or collection of concept strings to keep (default all)
  :form      - "10-K" | "10-Q" (default "10-K")
  :as-of     - "YYYY-MM-DD" string; exclude filings submitted after this date
               and keep only the most recently filed observation per [ticker concept end]
sourceraw docstring

pivot-wideclj

(pivot-wide ds)

Pivot a long-format facts dataset to wide format. Rows = :end (period), columns = :concept, values = :val. Deduplicates by taking the first observation per [end, concept]. Returns a tech.ml.dataset.

Pivot a long-format facts dataset to wide format.
Rows = :end (period), columns = :concept, values = :val.
Deduplicates by taking the first observation per [end, concept].
Returns a tech.ml.dataset.
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