summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIgor Radovanovic <74266147+IgorWounds@users.noreply.github.com>2024-04-25 16:48:18 +0200
committerIgor Radovanovic <74266147+IgorWounds@users.noreply.github.com>2024-04-25 16:48:18 +0200
commita46dae5881d3b5cabd9566a6f53c45f217cdb203 (patch)
treed1b1fd051e8996b2790f24593ff2bbdb7373e8c2
parentbaee6d8c42cfa659b49206be90a553e003c042dc (diff)
Fix lowercase symbols
-rw-r--r--openbb_platform/providers/cboe/openbb_cboe/models/options_chains.py8
1 files changed, 3 insertions, 5 deletions
diff --git a/openbb_platform/providers/cboe/openbb_cboe/models/options_chains.py b/openbb_platform/providers/cboe/openbb_cboe/models/options_chains.py
index 1f83a7cb99a..b798c910117 100644
--- a/openbb_platform/providers/cboe/openbb_cboe/models/options_chains.py
+++ b/openbb_platform/providers/cboe/openbb_cboe/models/options_chains.py
@@ -63,9 +63,8 @@ class CboeOptionsChainsFetcher(
credentials: Optional[Dict[str, str]],
**kwargs: Any,
) -> List[Dict]:
- """Return the raw data from the Cboe endpoint"""
-
- symbol = query.symbol.replace("^", "").split(",")[0]
+ """Return the raw data from the Cboe endpoint."""
+ symbol = query.symbol.replace("^", "").split(",")[0].upper()
INDEXES = await get_index_directory(use_cache=query.use_cache)
SYMBOLS = await get_company_directory(use_cache=query.use_cache)
INDEXES = INDEXES.set_index("index_symbol")
@@ -87,8 +86,7 @@ class CboeOptionsChainsFetcher(
data: List[Dict],
**kwargs: Any,
) -> List[CboeOptionsChainsData]:
- """Transform the data to the standard format"""
-
+ """Transform the data to the standard format."""
if not data:
raise EmptyDataError()