diff options
author | Danglewood <85772166+deeleeramone@users.noreply.github.com> | 2024-02-26 09:21:36 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-02-26 17:21:36 +0000 |
commit | 71676ae9c3caedcef7c292317804533bbe34177b (patch) | |
tree | 6f6468a164e57cb0dc52710662aa9346ed9efb47 | |
parent | da79144493e5abe4916b8d82dc43eb0b677c09d3 (diff) |
[Enhancement] Add Previous Close to DATA_DESCRIPTIONS (#6120)
* add data description for previous close
* ..just the one
* update the model tripped by this change
---------
Co-authored-by: montezdesousa <79287829+montezdesousa@users.noreply.github.com>
-rw-r--r-- | openbb_platform/core/openbb_core/provider/standard_models/market_snapshots.py | 3 | ||||
-rw-r--r-- | openbb_platform/core/openbb_core/provider/utils/descriptions.py | 1 |
2 files changed, 3 insertions, 1 deletions
diff --git a/openbb_platform/core/openbb_core/provider/standard_models/market_snapshots.py b/openbb_platform/core/openbb_core/provider/standard_models/market_snapshots.py index 32a9a50ce8d..4a3f622d04d 100644 --- a/openbb_platform/core/openbb_core/provider/standard_models/market_snapshots.py +++ b/openbb_platform/core/openbb_core/provider/standard_models/market_snapshots.py @@ -35,7 +35,8 @@ class MarketSnapshotsData(Data): default=None, ) prev_close: Optional[float] = Field( - description="The previous closing price of the stock.", default=None + description=DATA_DESCRIPTIONS.get("prev_close", ""), + default=None, ) change: Optional[float] = Field(description="The change in price.", default=None) change_percent: Optional[float] = Field( diff --git a/openbb_platform/core/openbb_core/provider/utils/descriptions.py b/openbb_platform/core/openbb_core/provider/utils/descriptions.py index 0a67cb450de..7f860526062 100644 --- a/openbb_platform/core/openbb_core/provider/utils/descriptions.py +++ b/openbb_platform/core/openbb_core/provider/utils/descriptions.py @@ -25,4 +25,5 @@ DATA_DESCRIPTIONS = { "volume": "The trading volume.", "adj_close": "The adjusted close price.", "vwap": "Volume Weighted Average Price over the period.", + "prev_close": "The previous close price.", } |