[Feature] Add Endpoint For The Latest Financial Reports Filed With The SEC (#6936)

* add endpoint for the latest financial reports filed with the sec

* lint

* more lint
This commit is contained in:
Danglewood
2024-11-09 02:27:44 -08:00
committed by GitHub
parent 85ca5501a5
commit baff57dfc8
11 changed files with 796 additions and 0 deletions

View File

@@ -1966,3 +1966,26 @@ def test_equity_historical_market_cap(params, obb):
assert result
assert isinstance(result, OBBject)
assert len(result.results) > 0
@parametrize(
"params",
[
(
{
"date": None,
"report_type": None,
"provider": "sec",
}
),
],
)
@pytest.mark.integration
def test_equity_discovery_latest_financial_reports(params, obb):
"""Test the equity discovery latest financial reports endpoint."""
params = {p: v for p, v in params.items() if v}
result = obb.equity.discovery.latest_financial_reports(**params)
assert result
assert isinstance(result, OBBject)
assert len(result.results) > 0