mirror of
https://github.com/OpenBB-finance/OpenBB.git
synced 2026-11-26 11:12:50 +00:00
feat: otc
This commit is contained in:
@@ -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,
|
||||
)
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user