[BugFix] openbb-sec: Handle XOM's CIK Transition (#7588)

* add handling for XOM's new CIK and populating results including the legacy

* update a couple of lock files for dependabot
This commit is contained in:
Danglewood
2026-07-14 12:49:56 -07:00
committed by GitHub
parent 1c74893140
commit c78488d7d1
6 changed files with 1514 additions and 1237 deletions

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"