Skip to content

Read bank revenue tag in SEC EDGAR income statement - #1688

Open
barlowa124 wants to merge 1 commit into
TauricResearch:mainfrom
barlowa124:fix/sec-edgar-bank-revenue
Open

barlowa124 wants to merge 1 commit into
TauricResearch:mainfrom
barlowa124:fix/sec-edgar-bank-revenue

Conversation

@barlowa124

Copy link
Copy Markdown

Fixes #1662.

Financial filers tag total revenue as RevenuesNetOfInterestExpense. The income statement's Revenue row skipped that tag, so banks showed missing, stale, or fee-only revenue.

This puts the bank tag first in the Revenue tag order. _as_of keeps the first tag that reports a period, so a filer using both tags keeps the bank total and other filers are unchanged.

Tests cover a bank-only tag and a period the contract tag also reports.

uv run --no-project --with '.[dev]' python -m pytest tests/test_sec_edgar.py -q passes.

Generated with [Devin](https://devin.ai)

Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

SEC EDGAR Revenue row is missing, years old or only fee income for banks (RevenuesNetOfInterestExpense is never read)

1 participant