mirror of
https://github.com/OpenBB-finance/OpenBB.git
synced 2026-11-04 08:22:26 +00:00
Fix FRED
This commit is contained in:
@@ -6,8 +6,16 @@ from typing import List, Literal
|
||||
# IMPORT THIRD-PARTY
|
||||
# IMPORT INTERNAL
|
||||
|
||||
harmonized_cpi_path = pathlib.Path(__file__).parent / "datasets" / "harmonized_cpi.csv"
|
||||
cpi_path = pathlib.Path(__file__).parent / "datasets" / "cpi.csv"
|
||||
|
||||
BASE_DIR = (
|
||||
pathlib.Path(__file__).parent.parent.parent.parent.parent
|
||||
/ "openbb_terminal"
|
||||
/ "economy"
|
||||
/ "datasets"
|
||||
)
|
||||
|
||||
harmonized_cpi_path = BASE_DIR / "harmonized_cpi.csv"
|
||||
cpi_path = BASE_DIR / "cpi.csv"
|
||||
|
||||
|
||||
CPI_COUNTRIES = Literal[
|
||||
|
||||
@@ -1,10 +1,14 @@
|
||||
from datetime import date as dateType
|
||||
from typing import Dict, List, Optional
|
||||
|
||||
from openbb_fred.fred_helpers import CPI_COUNTRIES, CPI_FREQUENCY, CPI_UNITS
|
||||
from pydantic import BaseModel, validator
|
||||
|
||||
from openbb_provider.abstract.data import Data, QueryParams
|
||||
from openbb_sdk.providers.fred.openbb_fred.fred_helpers import (
|
||||
CPI_COUNTRIES,
|
||||
CPI_FREQUENCY,
|
||||
CPI_UNITS,
|
||||
)
|
||||
|
||||
|
||||
class CPIQueryParams(QueryParams):
|
||||
|
||||
@@ -20,8 +20,15 @@ from openbb_terminal.rich_config import console
|
||||
|
||||
logger = logging.getLogger(__name__)
|
||||
|
||||
harmonized_cpi_path = pathlib.Path(__file__).parent / "datasets" / "harmonized_cpi.csv"
|
||||
cpi_path = pathlib.Path(__file__).parent / "datasets" / "cpi.csv"
|
||||
BASE_DIR = (
|
||||
pathlib.Path(__file__).parent.parent.parent.parent.parent
|
||||
/ "openbb_terminal"
|
||||
/ "economy"
|
||||
/ "datasets"
|
||||
)
|
||||
|
||||
harmonized_cpi_path = BASE_DIR / "harmonized_cpi.csv"
|
||||
cpi_path = BASE_DIR / "cpi.csv"
|
||||
|
||||
CPI_COUNTRIES = [
|
||||
"australia",
|
||||
|
||||
Reference in New Issue
Block a user