-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Feature] Add Central Bank Holdings (Federal Reserve) (#6469)
* add central bank holdings * codespell * actually commit the standard model --------- Co-authored-by: Igor Radovanovic <[email protected]>
- Loading branch information
1 parent
01a71a8
commit 0085221
Showing
16 changed files
with
1,791 additions
and
44 deletions.
There are no files selected for viewing
30 changes: 30 additions & 0 deletions
30
openbb_platform/core/openbb_core/provider/standard_models/central_bank_holdings.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
"""Central Bank Holdings Standard Model.""" | ||
|
||
from datetime import ( | ||
date as dateType, | ||
) | ||
from typing import Optional | ||
|
||
from pydantic import Field | ||
|
||
from openbb_core.provider.abstract.data import Data | ||
from openbb_core.provider.abstract.query_params import QueryParams | ||
from openbb_core.provider.utils.descriptions import ( | ||
DATA_DESCRIPTIONS, | ||
QUERY_DESCRIPTIONS, | ||
) | ||
|
||
|
||
class CentralBankHoldingsQueryParams(QueryParams): | ||
"""Central Bank Holdings Query.""" | ||
|
||
date: Optional[dateType] = Field( | ||
default=None, | ||
description=QUERY_DESCRIPTIONS.get("date", ""), | ||
) | ||
|
||
|
||
class CentralBankHoldingsData(Data): | ||
"""Central Bank Holdings Data.""" | ||
|
||
date: dateType = Field(description=DATA_DESCRIPTIONS.get("date", "")) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.