mirror of
https://github.com/OpenBB-finance/OpenBB.git
synced 2026-10-27 12:40:35 +00:00
[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:
@@ -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}"
|
||||
|
||||
@@ -130,6 +130,7 @@ MULTI_CIK_TICKERS: dict[str, list[str]] = {
|
||||
"DIS": ["0001744489", "0001001039"],
|
||||
"BLK": ["0002012383", "0001364742"],
|
||||
"GOOG": ["0001652044", "0001288776"],
|
||||
"XOM": ["0000034088", "0002115436"],
|
||||
}
|
||||
|
||||
|
||||
|
||||
2
openbb_platform/providers/sec/pyproject.toml
vendored
2
openbb_platform/providers/sec/pyproject.toml
vendored
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user