[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:
Danglewood
2024-02-26 09:21:36 -08:00
committed by GitHub
parent da79144493
commit 71676ae9c3
2 changed files with 3 additions and 1 deletions

View File

@@ -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(

View File

@@ -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.",
}