mirror of
https://github.com/OpenBB-finance/OpenBB.git
synced 2026-11-05 17:01:58 +00:00
undocumented benzinga fields in response (#6304)
This commit is contained in:
@@ -145,6 +145,17 @@ class BenzingaAnalystSearchData(AnalystSearchData):
|
||||
json_schema_extra={"unit_measurement": "percent", "frontend_multiply": 100},
|
||||
alias="1m_stdev",
|
||||
)
|
||||
smart_score_1m: Optional[float] = Field(
|
||||
default=None,
|
||||
description="A weighted average smart score over the last month.",
|
||||
alias="1m_smart_score",
|
||||
)
|
||||
success_rate_1m: Optional[float] = Field(
|
||||
default=None,
|
||||
description="The percentage (normalized) of gain/loss ratings that resulted in a gain over the last month",
|
||||
json_schema_extra={"unit_measurement": "percent", "frontend_multiply": 100},
|
||||
alias="1m_success_rate",
|
||||
)
|
||||
gain_count_3m: Optional[int] = Field(
|
||||
default=None,
|
||||
description="The number of ratings that have gained value over the last 3 months",
|
||||
@@ -169,6 +180,17 @@ class BenzingaAnalystSearchData(AnalystSearchData):
|
||||
json_schema_extra={"unit_measurement": "percent", "frontend_multiply": 100},
|
||||
alias="3m_stdev",
|
||||
)
|
||||
smart_score_3m: Optional[float] = Field(
|
||||
default=None,
|
||||
description="A weighted average smart score over the last 3 months.",
|
||||
alias="3m_smart_score",
|
||||
)
|
||||
success_rate_3m: Optional[float] = Field(
|
||||
default=None,
|
||||
description="The percentage (normalized) of gain/loss ratings that resulted in a gain over the last 3 months",
|
||||
json_schema_extra={"unit_measurement": "percent", "frontend_multiply": 100},
|
||||
alias="3m_success_rate",
|
||||
)
|
||||
gain_count_6m: Optional[int] = Field(
|
||||
default=None,
|
||||
description="The number of ratings that have gained value over the last 6 months",
|
||||
@@ -217,6 +239,17 @@ class BenzingaAnalystSearchData(AnalystSearchData):
|
||||
json_schema_extra={"unit_measurement": "percent", "frontend_multiply": 100},
|
||||
alias="9m_stdev",
|
||||
)
|
||||
smart_score_9m: Optional[float] = Field(
|
||||
default=None,
|
||||
description="A weighted average smart score over the last 9 months.",
|
||||
alias="9m_smart_score",
|
||||
)
|
||||
success_rate_9m: Optional[float] = Field(
|
||||
default=None,
|
||||
description="The percentage (normalized) of gain/loss ratings that resulted in a gain over the last 9 months",
|
||||
json_schema_extra={"unit_measurement": "percent", "frontend_multiply": 100},
|
||||
alias="9m_success_rate",
|
||||
)
|
||||
gain_count_1y: Optional[int] = Field(
|
||||
default=None,
|
||||
description="The number of ratings that have gained value over the last 1 year",
|
||||
@@ -241,6 +274,17 @@ class BenzingaAnalystSearchData(AnalystSearchData):
|
||||
json_schema_extra={"unit_measurement": "percent", "frontend_multiply": 100},
|
||||
alias="1y_stdev",
|
||||
)
|
||||
smart_score_1y: Optional[float] = Field(
|
||||
default=None,
|
||||
description="A weighted average smart score over the last 1 year.",
|
||||
alias="1y_smart_score",
|
||||
)
|
||||
success_rate_1y: Optional[float] = Field(
|
||||
default=None,
|
||||
description="The percentage (normalized) of gain/loss ratings that resulted in a gain over the last 1 year",
|
||||
json_schema_extra={"unit_measurement": "percent", "frontend_multiply": 100},
|
||||
alias="1y_success_rate",
|
||||
)
|
||||
gain_count_2y: Optional[int] = Field(
|
||||
default=None,
|
||||
description="The number of ratings that have gained value over the last 2 years",
|
||||
@@ -265,6 +309,17 @@ class BenzingaAnalystSearchData(AnalystSearchData):
|
||||
json_schema_extra={"unit_measurement": "percent", "frontend_multiply": 100},
|
||||
alias="2y_stdev",
|
||||
)
|
||||
smart_score_2y: Optional[float] = Field(
|
||||
default=None,
|
||||
description="A weighted average smart score over the last 3 years.",
|
||||
alias="2y_smart_score",
|
||||
)
|
||||
success_rate_2y: Optional[float] = Field(
|
||||
default=None,
|
||||
description="The percentage (normalized) of gain/loss ratings that resulted in a gain over the last 2 years",
|
||||
json_schema_extra={"unit_measurement": "percent", "frontend_multiply": 100},
|
||||
alias="2y_success_rate",
|
||||
)
|
||||
gain_count_3y: Optional[int] = Field(
|
||||
default=None,
|
||||
description="The number of ratings that have gained value over the last 3 years",
|
||||
@@ -289,6 +344,17 @@ class BenzingaAnalystSearchData(AnalystSearchData):
|
||||
json_schema_extra={"unit_measurement": "percent", "frontend_multiply": 100},
|
||||
alias="3y_stdev",
|
||||
)
|
||||
smart_score_3y: Optional[float] = Field(
|
||||
default=None,
|
||||
description="A weighted average smart score over the last 3 years.",
|
||||
alias="3y_smart_score",
|
||||
)
|
||||
success_rate_3y: Optional[float] = Field(
|
||||
default=None,
|
||||
description="The percentage (normalized) of gain/loss ratings that resulted in a gain over the last 3 years",
|
||||
json_schema_extra={"unit_measurement": "percent", "frontend_multiply": 100},
|
||||
alias="3y_success_rate",
|
||||
)
|
||||
|
||||
@field_validator("last_updated", mode="before", check_fields=False)
|
||||
@classmethod
|
||||
|
||||
Reference in New Issue
Block a user