mirror of
https://github.com/OpenBB-finance/OpenBB.git
synced 2026-11-28 20:23:36 +00:00
[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>
This commit is contained in:
@@ -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(
|
||||
|
||||
@@ -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.",
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user