Hmda

v0.2.1
io.github.pipeworx-io/hmda Checked 2 days ago Published 1 month ago

HMDA — every US mortgage application at loan level (CFPB / FFIEC).

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

hmda_lender_activity

What a specific mortgage lender did in a year — applications, originations, denials and dollar volume — from the federal Home Mortgage Disclosure Act register, optionally narrowed to a state or county. Identify the lender by its LEI (the 20-character Legal Entity Identifier HMDA files under); resolve_entity maps a company name to one. Covers every US mortgage application 2018-2025. Reports what lenders DISCLOSED, which is a regulatory filing rather than a market estimate.

ParameterTypeDescription
lei *string20-character Legal Entity Identifier, e.g. "549300FGXN1K3HLB1R50".
countystringOptional 5-digit county FIPS, e.g. "06037" for Los Angeles.
statestringOptional two-letter state, e.g. "CA".
yearnumberFiling year, 2018-2025. Defaults to the most recent published.

hmda_geography_activity

Mortgage lending in a place — how many applications were originated, denied or withdrawn in a county or state in a given year, with dollar volume, from the federal HMDA register. Break the answer down by applicant race, ethnicity, sex, loan purpose or loan type to see how outcomes differ across groups, which is the fair-lending question this data exists to make answerable. Covers 2018-2025.

ParameterTypeDescription
actionstringOptional outcome filter: originated | approved_not_accepted | denied | withdrawn | incomplete | purchased. Omit to see every outcome side by side.
breakdownstringOptional dimension to split by: race | ethnicity | sex | loan_purpose | loan_type.
countystring5-digit county FIPS, e.g. "11001" for the District of Columbia.
statestringTwo-letter state, e.g. "TX". Give a county OR a state.
yearnumberFiling year, 2018-2025. Defaults to the most recent published.

hmda_loan_records

Individual mortgage application records from the HMDA register — the loan-level rows behind the totals, with loan amount, action taken, rate spread, applicant income, lender LEI and census tract. Use when an aggregate is not enough and the individual applications matter. Filtered by geography and outcome; a large county returns tens of thousands of rows, so this caps what it returns and says when it truncated.

ParameterTypeDescription
actionstringOutcome filter: originated | approved_not_accepted | denied | withdrawn | incomplete | purchased.
countystring5-digit county FIPS. Give a county OR a state.
leistringOptional lender LEI to narrow to one institution.
limitnumberMaximum records to return (1-500, default 50).
statestringTwo-letter state.
yearnumberFiling year, 2018-2025.

hmda_lenders_in_county

Which lenders were most active in a county, ranked by loan count, from HMDA loan-level records for that county and year. Returns each lender LEI with its originations, denials and dollar volume, so "who lends here" and "who denies most here" are answerable. Bounded: it reads the county's records directly, so very large counties are sampled rather than fully ranked, and the response says so.

ParameterTypeDescription
county *string5-digit county FIPS, e.g. "11001".
actionstringOutcome to rank on: originated | approved_not_accepted | denied | withdrawn | incomplete | purchased. Default originated.
limitnumberLenders to return (1-100, default 20).
yearnumberFiling year, 2018-2025.