feat: otc

This commit is contained in:
montezdesousa
2024-02-12 12:13:08 +00:00
parent f2f66e7b12
commit fbfaea7d30
2 changed files with 4 additions and 1 deletions

View File

@@ -1,6 +1,7 @@
"""OTC Aggregate Standard Model."""
from datetime import date as dateType
from typing import Optional
from pydantic import Field
@@ -12,7 +13,7 @@ from openbb_core.provider.utils.descriptions import QUERY_DESCRIPTIONS
class OTCAggregateQueryParams(QueryParams):
"""OTC Aggregate Query."""
symbol: str = Field(
symbol: Optional[str] = Field(
description=QUERY_DESCRIPTIONS.get("symbol", ""),
default=None,
)

View File

@@ -14,6 +14,8 @@ from pydantic import Field
class FinraOTCAggregateQueryParams(OTCAggregateQueryParams):
"""FINRA OTC Aggregate Query."""
__validator_dict__ = {"check_single": ("symbol",)}
tier: Literal["T1", "T2", "OTCE"] = Field(
default="T1",
description=""""T1 - Securities included in the S&P 500, Russell 1000 and selected exchange-traded products;