Files
OpenBB/website/content/platform/data_models/CPI.md
Henrique Joaquim 2d8c35df7a Data Models disposition on the website (#5538)
* pydantic v4

* flat structure

* md files

* Revert "md files"

This reverts commit bd2170e2ad.

* improve command descriptions

* nice title and description

* human readble data model names on left panel

* implementation details section

* content markdown files

* markdown versioned files

* showcase page

* updates

---------

Co-authored-by: tehcoderer <me@tehcoderer.com>
2023-10-12 18:57:22 +02:00

2.1 KiB
Vendored

title, description
title description
CPI OpenBB Platform Data Model

import Tabs from '@theme/Tabs'; import TabItem from '@theme/TabItem';


Implementation details

Class names

Model name Parameters class Data class
CPI CPIQueryParams CPIData

Import Statement

from openbb_provider.standard_models.cpi import (
CPIData,
CPIQueryParams,
)

Parameters

Name Type Description Default Optional
countries List[Literal['australia', 'austria', 'belgium', 'brazil', 'bulgaria', 'canada', 'chile', 'china', 'croatia', 'cyprus', 'czech_republic', 'denmark', 'estonia', 'euro_area', 'finland', 'france', 'germany', 'greece', 'hungary', 'iceland', 'india', 'indonesia', 'ireland', 'israel', 'italy', 'japan', 'korea', 'latvia', 'lithuania', 'luxembourg', 'malta', 'mexico', 'netherlands', 'new_zealand', 'norway', 'poland', 'portugal', 'romania', 'russian_federation', 'slovak_republic', 'slovakia', 'slovenia', 'south_africa', 'spain', 'sweden', 'switzerland', 'turkey', 'united_kingdom', 'united_states']] The country or countries to get data. False
units Literal['growth_previous', 'growth_same', 'index_2015'] The data units. growth_same True
frequency Literal['monthly', 'quarter', 'annual'] The data time frequency. monthly True
harmonized bool Whether you wish to obtain harmonized data. False True
start_date Union[date, str] Start date of the data, in YYYY-MM-DD format. None True
end_date Union[date, str] End date of the data, in YYYY-MM-DD format. None True
provider Literal['fred'] The provider to use for the query, by default None. If None, the provider specified in defaults is selected or 'fred' if there is no default. fred True

Data

Name Type Description
date date The date of the data.
value float CPI value on the date.