This commit is contained in:
Danglewood
2026-07-14 13:07:40 -07:00
5 changed files with 575 additions and 493 deletions

File diff suppressed because it is too large Load Diff

View File

@@ -275,8 +275,19 @@ class SecCompanyFilingsFetcher(
"""Transform the data."""
# pylint: disable=import-outside-toplevel
from numpy import nan
from openbb_core.provider.utils.helpers import run_async
from pandas import NA, DataFrame, to_datetime
# XOM got a new CIK in July 2026, so all historical filings are under the old CIK.
# This is special handling for the transition.
if query.symbol == "XOM":
query.symbol = None
query.cik = "0000034088"
legacy_filings = run_async(
SecCompanyFilingsFetcher.aextract_data, query, None
)
data.extend(legacy_filings)
if not data:
raise EmptyDataError(
f"No filings found for CIK {query.cik}, or symbol {query.symbol}"

View File

@@ -130,6 +130,7 @@ MULTI_CIK_TICKERS: dict[str, list[str]] = {
"DIS": ["0001744489", "0001001039"],
"BLK": ["0002012383", "0001364742"],
"GOOG": ["0001652044", "0001288776"],
"XOM": ["0000034088", "0002115436"],
}

View File

@@ -1,6 +1,6 @@
[tool.poetry]
name = "openbb-sec"
version = "1.6.6"
version = "1.6.7"
description = "SEC extension for OpenBB"
authors = ["OpenBB Team <hello@openbb.co>"]
license = "AGPL-3.0-only"

View File

@@ -24,7 +24,7 @@ openbb-government-us = "^1.6.1"
openbb-imf = "^2.1.3"
openbb-intrinio = "^1.6.1"
openbb-oecd = "^1.6.1"
openbb-sec = "^1.6.6"
openbb-sec = "^1.6.7"
openbb-tiingo = "^1.6.1"
openbb-tradingeconomics = "^1.6.1"
openbb-us-eia = "^1.3.1"