Revert "Small cleanup"

This reverts commit 4e935aafac.
This commit is contained in:
hjoaquim
2023-09-14 09:43:55 +01:00
parent 68283ccd7e
commit 92e258357a
17 changed files with 691 additions and 531 deletions

View File

@@ -7,6 +7,7 @@ from openbb_core.app.static.container import Container
class Extensions(Container):
"""
/crypto
/econometrics
/economy
/fixedincome
/forex
@@ -26,6 +27,12 @@ class Extensions(Container):
return crypto.CLASS_crypto(command_runner=self._command_runner)
@property
def econometrics(self): # route = "/econometrics"
from . import econometrics
return econometrics.CLASS_econometrics(command_runner=self._command_runner)
@property
def economy(self): # route = "/economy"
from . import economy

View File

@@ -1,14 +1,14 @@
### THIS FILE IS AUTO-GENERATED. DO NOT EDIT. ###
import datetime
from typing import List, Literal, Optional, Union
from typing import List, Literal, Union
import typing_extensions
from openbb_core.app.model.custom_parameter import OpenBBCustomParameter
from openbb_core.app.model.obbject import OBBject
from openbb_core.app.static.container import Container
from openbb_core.app.static.filters import filter_inputs
from pydantic import validate_arguments
from typing_extensions import Annotated
class CLASS_crypto(Container):
@@ -22,26 +22,26 @@ class CLASS_crypto(Container):
@validate_arguments
def load(
self,
symbol: Annotated[
symbol: typing_extensions.Annotated[
Union[str, List[str]],
OpenBBCustomParameter(description="Symbol to get data for."),
],
start_date: Annotated[
start_date: typing_extensions.Annotated[
Union[datetime.date, None, str],
OpenBBCustomParameter(
description="Start date of the data, in YYYY-MM-DD format."
),
] = None,
end_date: Annotated[
end_date: typing_extensions.Annotated[
Union[datetime.date, None, str],
OpenBBCustomParameter(
description="End date of the data, in YYYY-MM-DD format."
),
] = None,
provider: Optional[Literal["fmp", "polygon", "yfinance"]] = None,
provider: Union[Literal["fmp", "polygon", "yfinance"], None] = None,
**kwargs
) -> OBBject[List]:
r"""Crypto Historical Price.
"""Crypto Historical Price.
Parameters
----------
@@ -51,11 +51,11 @@ class CLASS_crypto(Container):
Start date of the data, in YYYY-MM-DD format.
end_date : Union[datetime.date, NoneType, str]
End date of the data, in YYYY-MM-DD format.
provider : Optional[Literal['fmp', 'polygon', 'yfinance']]
provider : Union[Literal['fmp', 'polygon', 'yfinance'], NoneType]
The provider to use for the query, by default None.
If None, the provider specified in defaults is selected or 'fmp' if there is
no default.
timeseries : Optional[pydantic.types.NonNegativeInt]
timeseries : Union[pydantic.types.NonNegativeInt, NoneType]
Number of days to look back. (provider: fmp)
timespan : Literal['minute', 'hour', 'day', 'week', 'month', 'quarter', 'year']
Timespan of the data. (provider: polygon)
@@ -67,9 +67,9 @@ class CLASS_crypto(Container):
Whether the data is adjusted. (provider: polygon)
multiplier : PositiveInt
Multiplier of the timespan. (provider: polygon)
interval : Optional[Literal['1m', '2m', '5m', '15m', '30m', '60m', '90m', '1h', '1d', '5d', '1wk', '1mo', '3mo']]
interval : Union[Literal['1m', '2m', '5m', '15m', '30m', '60m', '90m', '1h', '1d', '5d', '1wk', '1mo', '3mo'], NoneType]
Data granularity. (provider: yfinance)
period : Optional[Literal['1d', '5d', '1mo', '3mo', '6mo', '1y', '2y', '5y', '10y', 'ytd', 'max']]
period : Union[Literal['1d', '5d', '1mo', '3mo', '6mo', '1y', '2y', '5y', '10y', 'ytd', 'max'], NoneType]
Period of the data to return. (provider: yfinance)
prepost : bool
Include Pre and Post market data. (provider: yfinance)
@@ -83,7 +83,7 @@ class CLASS_crypto(Container):
OBBject
results : List[CryptoHistorical]
Serializable results.
provider : Optional[Literal['fmp', 'polygon', 'yfinance']]
provider : Union[Literal['fmp', 'polygon', 'yfinance'], NoneType]
Provider name.
warnings : Optional[List[Warning_]]
List of warnings.
@@ -115,11 +115,11 @@ class CLASS_crypto(Container):
change : Optional[float]
Change in the price of the symbol from the previous day. (provider: fmp)
change_percent : Optional[float]
Change \% in the price of the symbol. (provider: fmp)
Change \\% in the price of the symbol. (provider: fmp)
label : Optional[str]
Human readable format of the date. (provider: fmp)
change_over_time : Optional[float]
Change \% in the price of the symbol over a period of time. (provider: fmp)
Change \\% in the price of the symbol over a period of time. (provider: fmp)
n : Optional[PositiveInt]
Number of transactions for the symbol in the time period. (provider: polygon)
""" # noqa: E501

View File

@@ -1,14 +1,14 @@
### THIS FILE IS AUTO-GENERATED. DO NOT EDIT. ###
import datetime
from typing import List, Literal, Optional, Union
from typing import List, Literal, Union
import typing_extensions
from openbb_core.app.model.custom_parameter import OpenBBCustomParameter
from openbb_core.app.model.obbject import OBBject
from openbb_core.app.static.container import Container
from openbb_core.app.static.filters import filter_inputs
from pydantic import validate_arguments
from typing_extensions import Annotated
class CLASS_economy(Container):
@@ -27,13 +27,13 @@ class CLASS_economy(Container):
@validate_arguments
def available_indices(
self, provider: Optional[Literal["cboe", "fmp", "yfinance"]] = None, **kwargs
self, provider: Union[Literal["cboe", "fmp", "yfinance"], None] = None, **kwargs
) -> OBBject[List]:
"""Lists of available indices from a provider.
Parameters
----------
provider : Optional[Literal['cboe', 'fmp', 'yfinance']]
provider : Union[Literal['cboe', 'fmp', 'yfinance'], NoneType]
The provider to use for the query, by default None.
If None, the provider specified in defaults is selected or 'cboe' if there is
no default.
@@ -45,7 +45,7 @@ class CLASS_economy(Container):
OBBject
results : List[AvailableIndices]
Serializable results.
provider : Optional[Literal['cboe', 'fmp', 'yfinance']]
provider : Union[Literal['cboe', 'fmp', 'yfinance'], NoneType]
Provider name.
warnings : Optional[List[Warning_]]
List of warnings.
@@ -105,13 +105,13 @@ class CLASS_economy(Container):
@validate_arguments
def const(
self,
index: Annotated[
index: typing_extensions.Annotated[
Literal["nasdaq", "sp500", "dowjones"],
OpenBBCustomParameter(
description="Index for which we want to fetch the constituents."
),
] = "dowjones",
provider: Optional[Literal["fmp"]] = None,
provider: Union[Literal["fmp"], None] = None,
**kwargs
) -> OBBject[List]:
"""Get the constituents of an index.
@@ -120,7 +120,7 @@ class CLASS_economy(Container):
----------
index : Literal['nasdaq', 'sp500', 'dowjones']
Index for which we want to fetch the constituents.
provider : Optional[Literal['fmp']]
provider : Union[Literal['fmp'], NoneType]
The provider to use for the query, by default None.
If None, the provider specified in defaults is selected or 'fmp' if there is
no default.
@@ -130,7 +130,7 @@ class CLASS_economy(Container):
OBBject
results : List[MajorIndicesConstituents]
Serializable results.
provider : Optional[Literal['fmp']]
provider : Union[Literal['fmp'], NoneType]
Provider name.
warnings : Optional[List[Warning_]]
List of warnings.
@@ -176,7 +176,7 @@ class CLASS_economy(Container):
@validate_arguments
def cpi(
self,
countries: Annotated[
countries: typing_extensions.Annotated[
List[
Literal[
"australia",
@@ -232,33 +232,33 @@ class CLASS_economy(Container):
],
OpenBBCustomParameter(description="The country or countries to get data."),
],
units: Annotated[
units: typing_extensions.Annotated[
Literal["growth_previous", "growth_same", "index_2015"],
OpenBBCustomParameter(description="The data units."),
] = "growth_same",
frequency: Annotated[
frequency: typing_extensions.Annotated[
Literal["monthly", "quarter", "annual"],
OpenBBCustomParameter(description="The data time frequency."),
] = "monthly",
harmonized: Annotated[
harmonized: typing_extensions.Annotated[
bool,
OpenBBCustomParameter(
description="Whether you wish to obtain harmonized data."
),
] = False,
start_date: Annotated[
start_date: typing_extensions.Annotated[
Union[datetime.date, None, str],
OpenBBCustomParameter(
description="Start date of the data, in YYYY-MM-DD format."
),
] = None,
end_date: Annotated[
end_date: typing_extensions.Annotated[
Union[datetime.date, None, str],
OpenBBCustomParameter(
description="End date of the data, in YYYY-MM-DD format."
),
] = None,
provider: Optional[Literal["fred"]] = None,
provider: Union[Literal["fred"], None] = None,
**kwargs
) -> OBBject[List]:
"""CPI.
@@ -277,7 +277,7 @@ class CLASS_economy(Container):
Start date of the data, in YYYY-MM-DD format.
end_date : Union[datetime.date, NoneType, str]
End date of the data, in YYYY-MM-DD format.
provider : Optional[Literal['fred']]
provider : Union[Literal['fred'], NoneType]
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.
@@ -287,7 +287,7 @@ class CLASS_economy(Container):
OBBject
results : List[CPI]
Serializable results.
provider : Optional[Literal['fred']]
provider : Union[Literal['fred'], NoneType]
Provider name.
warnings : Optional[List[Warning_]]
List of warnings.
@@ -330,23 +330,23 @@ class CLASS_economy(Container):
@validate_arguments
def european_index(
self,
symbol: Annotated[
symbol: typing_extensions.Annotated[
Union[str, List[str]],
OpenBBCustomParameter(description="Symbol to get data for."),
],
start_date: Annotated[
start_date: typing_extensions.Annotated[
Union[datetime.date, None, str],
OpenBBCustomParameter(
description="Start date of the data, in YYYY-MM-DD format."
),
] = None,
end_date: Annotated[
end_date: typing_extensions.Annotated[
Union[datetime.date, None, str],
OpenBBCustomParameter(
description="End date of the data, in YYYY-MM-DD format."
),
] = None,
provider: Optional[Literal["cboe"]] = None,
provider: Union[Literal["cboe"], None] = None,
**kwargs
) -> OBBject[List]:
"""Get historical close values for select European indices.
@@ -359,11 +359,11 @@ class CLASS_economy(Container):
Start date of the data, in YYYY-MM-DD format.
end_date : Union[datetime.date, NoneType, str]
End date of the data, in YYYY-MM-DD format.
provider : Optional[Literal['cboe']]
provider : Union[Literal['cboe'], NoneType]
The provider to use for the query, by default None.
If None, the provider specified in defaults is selected or 'cboe' if there is
no default.
interval : Optional[Literal['1d', '1m']]
interval : Union[Literal['1d', '1m'], NoneType]
Data granularity. (provider: cboe)
Returns
@@ -371,7 +371,7 @@ class CLASS_economy(Container):
OBBject
results : List[EuropeanIndexHistorical]
Serializable results.
provider : Optional[Literal['cboe']]
provider : Union[Literal['cboe'], NoneType]
Provider name.
warnings : Optional[List[Warning_]]
List of warnings.
@@ -415,11 +415,11 @@ class CLASS_economy(Container):
@validate_arguments
def european_index_constituents(
self,
symbol: Annotated[
symbol: typing_extensions.Annotated[
Union[str, List[str]],
OpenBBCustomParameter(description="Symbol to get data for."),
],
provider: Optional[Literal["cboe"]] = None,
provider: Union[Literal["cboe"], None] = None,
**kwargs
) -> OBBject[List]:
"""Get current levels for constituents of select European indices.
@@ -428,7 +428,7 @@ class CLASS_economy(Container):
----------
symbol : Union[str, List[str]]
Symbol to get data for.
provider : Optional[Literal['cboe']]
provider : Union[Literal['cboe'], NoneType]
The provider to use for the query, by default None.
If None, the provider specified in defaults is selected or 'cboe' if there is
no default.
@@ -438,7 +438,7 @@ class CLASS_economy(Container):
OBBject
results : List[EuropeanIndexConstituents]
Serializable results.
provider : Optional[Literal['cboe']]
provider : Union[Literal['cboe'], NoneType]
Provider name.
warnings : Optional[List[Warning_]]
List of warnings.
@@ -498,26 +498,26 @@ class CLASS_economy(Container):
@validate_arguments
def index(
self,
symbol: Annotated[
symbol: typing_extensions.Annotated[
Union[str, List[str]],
OpenBBCustomParameter(description="Symbol to get data for."),
],
start_date: Annotated[
start_date: typing_extensions.Annotated[
Union[datetime.date, None, str],
OpenBBCustomParameter(
description="Start date of the data, in YYYY-MM-DD format."
),
] = None,
end_date: Annotated[
end_date: typing_extensions.Annotated[
Union[datetime.date, None, str],
OpenBBCustomParameter(
description="End date of the data, in YYYY-MM-DD format."
),
] = None,
provider: Optional[Literal["cboe", "fmp", "polygon", "yfinance"]] = None,
provider: Union[Literal["cboe", "fmp", "polygon", "yfinance"], None] = None,
**kwargs
) -> OBBject[List]:
r"""Get historical levels for an index.
"""Get historical levels for an index.
Parameters
----------
@@ -527,13 +527,13 @@ class CLASS_economy(Container):
Start date of the data, in YYYY-MM-DD format.
end_date : Union[datetime.date, NoneType, str]
End date of the data, in YYYY-MM-DD format.
provider : Optional[Literal['cboe', 'fmp', 'polygon', 'yfinance']]
provider : Union[Literal['cboe', 'fmp', 'polygon', 'yfinance'], NoneType]
The provider to use for the query, by default None.
If None, the provider specified in defaults is selected or 'cboe' if there is
no default.
interval : Union[Literal['1d', '1m'], NoneType, Literal['1min', '5min', '15min', '30min', '1hour', '4hour', '1day'], Literal['1m', '2m', '5m', '15m', '30m', '60m', '90m', '1h', '1d', '5d', '1wk', '1mo', '3mo']]
Data granularity. (provider: cboe, fmp, yfinance)
timeseries : Optional[pydantic.types.NonNegativeInt]
timeseries : Union[pydantic.types.NonNegativeInt, NoneType]
Number of days to look back. (provider: fmp)
timespan : Literal['minute', 'hour', 'day', 'week', 'month', 'quarter', 'year']
Timespan of the data. (provider: polygon)
@@ -545,7 +545,7 @@ class CLASS_economy(Container):
Whether the data is adjusted. (provider: polygon)
multiplier : PositiveInt
Multiplier of the timespan. (provider: polygon)
period : Optional[Literal['1d', '5d', '1mo', '3mo', '6mo', '1y', '2y', '5y', '10y', 'ytd', 'max']]
period : Union[Literal['1d', '5d', '1mo', '3mo', '6mo', '1y', '2y', '5y', '10y', 'ytd', 'max'], NoneType]
Period of the data to return. (provider: yfinance)
prepost : bool
Include Pre and Post market data. (provider: yfinance)
@@ -559,7 +559,7 @@ class CLASS_economy(Container):
OBBject
results : List[MajorIndicesHistorical]
Serializable results.
provider : Optional[Literal['cboe', 'fmp', 'polygon', 'yfinance']]
provider : Union[Literal['cboe', 'fmp', 'polygon', 'yfinance'], NoneType]
Provider name.
warnings : Optional[List[Warning_]]
List of warnings.
@@ -595,11 +595,11 @@ class CLASS_economy(Container):
change : Optional[float]
Change in the price of the symbol from the previous day. (provider: fmp)
change_percent : Optional[float]
Change \% in the price of the symbol. (provider: fmp)
Change \\% in the price of the symbol. (provider: fmp)
label : Optional[str]
Human readable format of the date. (provider: fmp)
change_over_time : Optional[float]
Change \% in the price of the symbol over a period of time. (provider: fmp)
Change \\% in the price of the symbol over a period of time. (provider: fmp)
""" # noqa: E501
inputs = filter_inputs(
@@ -621,13 +621,13 @@ class CLASS_economy(Container):
@validate_arguments
def risk(
self, provider: Optional[Literal["fmp"]] = None, **kwargs
self, provider: Union[Literal["fmp"], None] = None, **kwargs
) -> OBBject[List]:
"""Market Risk Premium.
Parameters
----------
provider : Optional[Literal['fmp']]
provider : Union[Literal['fmp'], NoneType]
The provider to use for the query, by default None.
If None, the provider specified in defaults is selected or 'fmp' if there is
no default.
@@ -637,7 +637,7 @@ class CLASS_economy(Container):
OBBject
results : List[RiskPremium]
Serializable results.
provider : Optional[Literal['fmp']]
provider : Union[Literal['fmp'], NoneType]
Provider name.
warnings : Optional[List[Warning_]]
List of warnings.

View File

@@ -1,22 +1,26 @@
{
"openbb_core_extension": [
"crypto@0.1.1",
"economy@0.1.1",
"fixedincome@0.1.1",
"forex@0.1.1",
"futures@0.1.1",
"news@0.1.1",
"openbb_charting@0.1.0",
"qa@0.1.0",
"stocks@0.1.0",
"ta@0.1.0"
"crypto@0.1.0a0",
"econometrics@0.1.0a0",
"economy@0.1.0a0",
"fixedincome@0.1.0a0",
"forex@0.1.0a0",
"futures@0.1.0a0",
"news@0.1.0a0",
"openbb_charting@0.1.0a1",
"qa@0.1.0a0",
"stocks@0.1.0a0",
"ta@0.1.0a0"
],
"openbb_provider_extension": [
"benzinga@0.1.1",
"cboe@0.1.1",
"fmp@0.1.1",
"fred@0.1.1",
"polygon@0.1.1",
"yfinance@0.1.1"
"alpha_vantage@0.1.0a0",
"benzinga@0.1.0a0",
"cboe@0.1.0a0",
"fmp@0.1.0a0",
"fred@0.1.0a0",
"intrinio@0.1.0a0",
"polygon@0.1.0a0",
"quandl@0.1.0a0",
"yfinance@0.1.0a0"
]
}

View File

@@ -1,14 +1,14 @@
### THIS FILE IS AUTO-GENERATED. DO NOT EDIT. ###
import datetime
from typing import List, Literal, Optional, Union
from typing import List, Literal, Union
import typing_extensions
from openbb_core.app.model.custom_parameter import OpenBBCustomParameter
from openbb_core.app.model.obbject import OBBject
from openbb_core.app.static.container import Container
from openbb_core.app.static.filters import filter_inputs
from pydantic import validate_arguments
from typing_extensions import Annotated
class CLASS_fixedincome(Container):
@@ -30,19 +30,19 @@ class CLASS_fixedincome(Container):
@validate_arguments
def ameribor(
self,
start_date: Annotated[
start_date: typing_extensions.Annotated[
Union[datetime.date, None, str],
OpenBBCustomParameter(
description="Start date of the data, in YYYY-MM-DD format."
),
] = None,
end_date: Annotated[
end_date: typing_extensions.Annotated[
Union[datetime.date, None, str],
OpenBBCustomParameter(
description="End date of the data, in YYYY-MM-DD format."
),
] = None,
provider: Optional[Literal["fred"]] = None,
provider: Union[Literal["fred"], None] = None,
**kwargs
) -> OBBject[List]:
"""
@@ -56,7 +56,7 @@ class CLASS_fixedincome(Container):
Start date of the data, in YYYY-MM-DD format.
end_date : Union[datetime.date, NoneType, str]
End date of the data, in YYYY-MM-DD format.
provider : Optional[Literal['fred']]
provider : Union[Literal['fred'], NoneType]
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.
@@ -68,7 +68,7 @@ class CLASS_fixedincome(Container):
OBBject
results : List[AMERIBOR]
Serializable results.
provider : Optional[Literal['fred']]
provider : Union[Literal['fred'], NoneType]
Provider name.
warnings : Optional[List[Warning_]]
List of warnings.
@@ -103,19 +103,19 @@ class CLASS_fixedincome(Container):
@validate_arguments
def estr(
self,
start_date: Annotated[
start_date: typing_extensions.Annotated[
Union[datetime.date, None, str],
OpenBBCustomParameter(
description="Start date of the data, in YYYY-MM-DD format."
),
] = None,
end_date: Annotated[
end_date: typing_extensions.Annotated[
Union[datetime.date, None, str],
OpenBBCustomParameter(
description="End date of the data, in YYYY-MM-DD format."
),
] = None,
provider: Optional[Literal["fred"]] = None,
provider: Union[Literal["fred"], None] = None,
**kwargs
) -> OBBject[List]:
"""
@@ -130,7 +130,7 @@ class CLASS_fixedincome(Container):
Start date of the data, in YYYY-MM-DD format.
end_date : Union[datetime.date, NoneType, str]
End date of the data, in YYYY-MM-DD format.
provider : Optional[Literal['fred']]
provider : Union[Literal['fred'], NoneType]
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.
@@ -142,7 +142,7 @@ class CLASS_fixedincome(Container):
OBBject
results : List[ESTR]
Serializable results.
provider : Optional[Literal['fred']]
provider : Union[Literal['fred'], NoneType]
Provider name.
warnings : Optional[List[Warning_]]
List of warnings.
@@ -177,19 +177,19 @@ class CLASS_fixedincome(Container):
@validate_arguments
def fed(
self,
start_date: Annotated[
start_date: typing_extensions.Annotated[
Union[datetime.date, None, str],
OpenBBCustomParameter(
description="Start date of the data, in YYYY-MM-DD format."
),
] = None,
end_date: Annotated[
end_date: typing_extensions.Annotated[
Union[datetime.date, None, str],
OpenBBCustomParameter(
description="End date of the data, in YYYY-MM-DD format."
),
] = None,
provider: Optional[Literal["fred"]] = None,
provider: Union[Literal["fred"], None] = None,
**kwargs
) -> OBBject[List]:
"""
@@ -204,7 +204,7 @@ class CLASS_fixedincome(Container):
Start date of the data, in YYYY-MM-DD format.
end_date : Union[datetime.date, NoneType, str]
End date of the data, in YYYY-MM-DD format.
provider : Optional[Literal['fred']]
provider : Union[Literal['fred'], NoneType]
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.
@@ -216,7 +216,7 @@ class CLASS_fixedincome(Container):
OBBject
results : List[FEDFUNDS]
Serializable results.
provider : Optional[Literal['fred']]
provider : Union[Literal['fred'], NoneType]
Provider name.
warnings : Optional[List[Warning_]]
List of warnings.
@@ -251,19 +251,19 @@ class CLASS_fixedincome(Container):
@validate_arguments
def iorb(
self,
start_date: Annotated[
start_date: typing_extensions.Annotated[
Union[datetime.date, None, str],
OpenBBCustomParameter(
description="Start date of the data, in YYYY-MM-DD format."
),
] = None,
end_date: Annotated[
end_date: typing_extensions.Annotated[
Union[datetime.date, None, str],
OpenBBCustomParameter(
description="End date of the data, in YYYY-MM-DD format."
),
] = None,
provider: Optional[Literal["fred"]] = None,
provider: Union[Literal["fred"], None] = None,
**kwargs
) -> OBBject[List]:
"""
@@ -278,7 +278,7 @@ class CLASS_fixedincome(Container):
Start date of the data, in YYYY-MM-DD format.
end_date : Union[datetime.date, NoneType, str]
End date of the data, in YYYY-MM-DD format.
provider : Optional[Literal['fred']]
provider : Union[Literal['fred'], NoneType]
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.
@@ -288,7 +288,7 @@ class CLASS_fixedincome(Container):
OBBject
results : List[IORB]
Serializable results.
provider : Optional[Literal['fred']]
provider : Union[Literal['fred'], NoneType]
Provider name.
warnings : Optional[List[Warning_]]
List of warnings.
@@ -322,7 +322,7 @@ class CLASS_fixedincome(Container):
@validate_arguments
def projections(
self, provider: Optional[Literal["fred"]] = None, **kwargs
self, provider: Union[Literal["fred"], None] = None, **kwargs
) -> OBBject[List]:
"""
Get Effective Federal Funds Rate data. A bank rate is the interest rate a nation's central bank charges to its
@@ -332,7 +332,7 @@ class CLASS_fixedincome(Container):
Parameters
----------
provider : Optional[Literal['fred']]
provider : Union[Literal['fred'], NoneType]
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.
@@ -344,7 +344,7 @@ class CLASS_fixedincome(Container):
OBBject
results : List[PROJECTIONS]
Serializable results.
provider : Optional[Literal['fred']]
provider : Union[Literal['fred'], NoneType]
Provider name.
warnings : Optional[List[Warning_]]
List of warnings.
@@ -388,19 +388,19 @@ class CLASS_fixedincome(Container):
@validate_arguments
def sofr(
self,
start_date: Annotated[
start_date: typing_extensions.Annotated[
Union[datetime.date, None, str],
OpenBBCustomParameter(
description="Start date of the data, in YYYY-MM-DD format."
),
] = None,
end_date: Annotated[
end_date: typing_extensions.Annotated[
Union[datetime.date, None, str],
OpenBBCustomParameter(
description="End date of the data, in YYYY-MM-DD format."
),
] = None,
provider: Optional[Literal["fred"]] = None,
provider: Union[Literal["fred"], None] = None,
**kwargs
) -> OBBject[List]:
"""Get United States yield curve.
@@ -411,7 +411,7 @@ class CLASS_fixedincome(Container):
Start date of the data, in YYYY-MM-DD format.
end_date : Union[datetime.date, NoneType, str]
End date of the data, in YYYY-MM-DD format.
provider : Optional[Literal['fred']]
provider : Union[Literal['fred'], NoneType]
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.
@@ -423,7 +423,7 @@ class CLASS_fixedincome(Container):
OBBject
results : List[SOFR]
Serializable results.
provider : Optional[Literal['fred']]
provider : Union[Literal['fred'], NoneType]
Provider name.
warnings : Optional[List[Warning_]]
List of warnings.
@@ -458,19 +458,19 @@ class CLASS_fixedincome(Container):
@validate_arguments
def sonia(
self,
start_date: Annotated[
start_date: typing_extensions.Annotated[
Union[datetime.date, None, str],
OpenBBCustomParameter(
description="Start date of the data, in YYYY-MM-DD format."
),
] = None,
end_date: Annotated[
end_date: typing_extensions.Annotated[
Union[datetime.date, None, str],
OpenBBCustomParameter(
description="End date of the data, in YYYY-MM-DD format."
),
] = None,
provider: Optional[Literal["fred"]] = None,
provider: Union[Literal["fred"], None] = None,
**kwargs
) -> OBBject[List]:
"""
@@ -484,7 +484,7 @@ class CLASS_fixedincome(Container):
Start date of the data, in YYYY-MM-DD format.
end_date : Union[datetime.date, NoneType, str]
End date of the data, in YYYY-MM-DD format.
provider : Optional[Literal['fred']]
provider : Union[Literal['fred'], NoneType]
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.
@@ -496,7 +496,7 @@ class CLASS_fixedincome(Container):
OBBject
results : List[SONIA]
Serializable results.
provider : Optional[Literal['fred']]
provider : Union[Literal['fred'], NoneType]
Provider name.
warnings : Optional[List[Warning_]]
List of warnings.
@@ -531,19 +531,19 @@ class CLASS_fixedincome(Container):
@validate_arguments
def treasury(
self,
start_date: Annotated[
start_date: typing_extensions.Annotated[
Union[datetime.date, None, str],
OpenBBCustomParameter(
description="Start date of the data, in YYYY-MM-DD format."
),
] = None,
end_date: Annotated[
end_date: typing_extensions.Annotated[
Union[datetime.date, None, str],
OpenBBCustomParameter(
description="End date of the data, in YYYY-MM-DD format."
),
] = None,
provider: Optional[Literal["fmp"]] = None,
provider: Union[Literal["fmp"], None] = None,
**kwargs
) -> OBBject[List]:
"""Get treasury rates.
@@ -554,7 +554,7 @@ class CLASS_fixedincome(Container):
Start date of the data, in YYYY-MM-DD format.
end_date : Union[datetime.date, NoneType, str]
End date of the data, in YYYY-MM-DD format.
provider : Optional[Literal['fmp']]
provider : Union[Literal['fmp'], NoneType]
The provider to use for the query, by default None.
If None, the provider specified in defaults is selected or 'fmp' if there is
no default.
@@ -564,7 +564,7 @@ class CLASS_fixedincome(Container):
OBBject
results : List[TreasuryRates]
Serializable results.
provider : Optional[Literal['fmp']]
provider : Union[Literal['fmp'], NoneType]
Provider name.
warnings : Optional[List[Warning_]]
List of warnings.
@@ -621,28 +621,28 @@ class CLASS_fixedincome(Container):
@validate_arguments
def ycrv(
self,
date: Annotated[
Optional[datetime.date],
date: typing_extensions.Annotated[
Union[datetime.date, None],
OpenBBCustomParameter(
description="Date to get Yield Curve data. Defaults to the most recent FRED entry."
),
] = None,
inflation_adjusted: Annotated[
Optional[bool],
inflation_adjusted: typing_extensions.Annotated[
Union[bool, None],
OpenBBCustomParameter(description="Get inflation adjusted rates."),
] = False,
provider: Optional[Literal["fred"]] = None,
provider: Union[Literal["fred"], None] = None,
**kwargs
) -> OBBject[List]:
"""Get United States yield curve.
Parameters
----------
date : Optional[datetime.date]
date : Union[datetime.date, NoneType]
Date to get Yield Curve data. Defaults to the most recent FRED entry.
inflation_adjusted : Optional[bool]
inflation_adjusted : Union[bool, NoneType]
Get inflation adjusted rates.
provider : Optional[Literal['fred']]
provider : Union[Literal['fred'], NoneType]
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.
@@ -652,7 +652,7 @@ class CLASS_fixedincome(Container):
OBBject
results : List[USYieldCurve]
Serializable results.
provider : Optional[Literal['fred']]
provider : Union[Literal['fred'], NoneType]
Provider name.
warnings : Optional[List[Warning_]]
List of warnings.

View File

@@ -1,14 +1,14 @@
### THIS FILE IS AUTO-GENERATED. DO NOT EDIT. ###
import datetime
from typing import List, Literal, Optional, Union
from typing import List, Literal, Union
import typing_extensions
from openbb_core.app.model.custom_parameter import OpenBBCustomParameter
from openbb_core.app.model.obbject import OBBject
from openbb_core.app.static.container import Container
from openbb_core.app.static.filters import filter_inputs
from pydantic import validate_arguments
from typing_extensions import Annotated
class CLASS_forex(Container):
@@ -23,26 +23,26 @@ class CLASS_forex(Container):
@validate_arguments
def load(
self,
symbol: Annotated[
symbol: typing_extensions.Annotated[
Union[str, List[str]],
OpenBBCustomParameter(description="Symbol to get data for."),
],
start_date: Annotated[
start_date: typing_extensions.Annotated[
Union[datetime.date, None, str],
OpenBBCustomParameter(
description="Start date of the data, in YYYY-MM-DD format."
),
] = None,
end_date: Annotated[
end_date: typing_extensions.Annotated[
Union[datetime.date, None, str],
OpenBBCustomParameter(
description="End date of the data, in YYYY-MM-DD format."
),
] = None,
provider: Optional[Literal["fmp", "polygon", "yfinance"]] = None,
provider: Union[Literal["fmp", "polygon", "yfinance"], None] = None,
**kwargs
) -> OBBject[List]:
r"""Forex Intraday Price.
"""Forex Intraday Price.
Parameters
----------
@@ -52,7 +52,7 @@ class CLASS_forex(Container):
Start date of the data, in YYYY-MM-DD format.
end_date : Union[datetime.date, NoneType, str]
End date of the data, in YYYY-MM-DD format.
provider : Optional[Literal['fmp', 'polygon', 'yfinance']]
provider : Union[Literal['fmp', 'polygon', 'yfinance'], NoneType]
The provider to use for the query, by default None.
If None, the provider specified in defaults is selected or 'fmp' if there is
no default.
@@ -66,9 +66,9 @@ class CLASS_forex(Container):
Whether the data is adjusted. (provider: polygon)
multiplier : PositiveInt
Multiplier of the timespan. (provider: polygon)
interval : Optional[Literal['1m', '2m', '5m', '15m', '30m', '60m', '90m', '1h', '1d', '5d', '1wk', '1mo', '3mo']]
interval : Union[Literal['1m', '2m', '5m', '15m', '30m', '60m', '90m', '1h', '1d', '5d', '1wk', '1mo', '3mo'], NoneType]
Data granularity. (provider: yfinance)
period : Optional[Literal['1d', '5d', '1mo', '3mo', '6mo', '1y', '2y', '5y', '10y', 'ytd', 'max']]
period : Union[Literal['1d', '5d', '1mo', '3mo', '6mo', '1y', '2y', '5y', '10y', 'ytd', 'max'], NoneType]
Period of the data to return. (provider: yfinance)
prepost : bool
Include Pre and Post market data. (provider: yfinance)
@@ -82,7 +82,7 @@ class CLASS_forex(Container):
OBBject
results : List[ForexHistorical]
Serializable results.
provider : Optional[Literal['fmp', 'polygon', 'yfinance']]
provider : Union[Literal['fmp', 'polygon', 'yfinance'], NoneType]
Provider name.
warnings : Optional[List[Warning_]]
List of warnings.
@@ -114,11 +114,11 @@ class CLASS_forex(Container):
change : Optional[float]
Change in the price of the symbol from the previous day. (provider: fmp)
change_percent : Optional[float]
Change \% in the price of the symbol. (provider: fmp)
Change \\% in the price of the symbol. (provider: fmp)
label : Optional[str]
Human readable format of the date. (provider: fmp)
change_over_time : Optional[float]
Change \% in the price of the symbol over a period of time. (provider: fmp)
Change \\% in the price of the symbol over a period of time. (provider: fmp)
n : Optional[PositiveInt]
Number of transactions for the symbol in the time period. (provider: polygon)
""" # noqa: E501
@@ -142,29 +142,31 @@ class CLASS_forex(Container):
@validate_arguments
def pairs(
self, provider: Optional[Literal["fmp", "polygon"]] = None, **kwargs
self,
provider: Union[Literal["fmp", "intrinio", "polygon"], None] = None,
**kwargs
) -> OBBject[List]:
"""Forex Available Pairs.
Parameters
----------
provider : Optional[Literal['fmp', 'polygon']]
provider : Union[Literal['fmp', 'intrinio', 'polygon'], NoneType]
The provider to use for the query, by default None.
If None, the provider specified in defaults is selected or 'fmp' if there is
no default.
symbol : Optional[str]
symbol : Union[str, NoneType]
Symbol of the pair to search. (provider: polygon)
date : Optional[datetime.date]
date : Union[datetime.date, NoneType]
A specific date to get data for. (provider: polygon)
search : Optional[str]
search : Union[str, NoneType]
Search for terms within the ticker and/or company name. (provider: polygon)
active : Optional[Literal[True, False]]
active : Union[Literal[True, False], NoneType]
Specify if the tickers returned should be actively traded on the queried date. (provider: polygon)
order : Optional[Literal['asc', 'desc']]
order : Union[Literal['asc', 'desc'], NoneType]
Order data by ascending or descending. (provider: polygon)
sort : Optional[Literal['ticker', 'name', 'market', 'locale', 'currency_symbol', 'currency_name', 'base_currency_symbol', 'base_currency_name', 'last_updated_utc', 'delisted_utc']]
sort : Union[Literal['ticker', 'name', 'market', 'locale', 'currency_symbol', 'currency_name', 'base_currency_symbol', 'base_currency_name', 'last_updated_utc', 'delisted_utc'], NoneType]
Sort field used for ordering. (provider: polygon)
limit : Optional[pydantic.types.PositiveInt]
limit : Union[pydantic.types.PositiveInt, NoneType]
The number of data entries to return. (provider: polygon)
Returns
@@ -172,7 +174,7 @@ class CLASS_forex(Container):
OBBject
results : List[ForexPairs]
Serializable results.
provider : Optional[Literal['fmp', 'polygon']]
provider : Union[Literal['fmp', 'intrinio', 'polygon'], NoneType]
Provider name.
warnings : Optional[List[Warning_]]
List of warnings.
@@ -193,6 +195,12 @@ class CLASS_forex(Container):
Stock exchange of the currency pair. (provider: fmp)
exchange_short_name : Optional[str]
Short name of the stock exchange of the currency pair. (provider: fmp)
code : Optional[str]
Code of the currency pair. (provider: intrinio)
base_currency : Optional[str]
ISO 4217 currency code of the base currency. (provider: intrinio)
quote_currency : Optional[str]
ISO 4217 currency code of the quote currency. (provider: intrinio)
market : Optional[str]
The name of the trading market. Always 'fx'. (provider: polygon)
locale : Optional[str]

View File

@@ -1,14 +1,14 @@
### THIS FILE IS AUTO-GENERATED. DO NOT EDIT. ###
import datetime
from typing import List, Literal, Optional, Union
from typing import List, Literal, Union
import typing_extensions
from openbb_core.app.model.custom_parameter import OpenBBCustomParameter
from openbb_core.app.model.obbject import OBBject
from openbb_core.app.static.container import Container
from openbb_core.app.static.filters import filter_inputs
from pydantic import validate_arguments
from typing_extensions import Annotated
class CLASS_futures(Container):
@@ -23,15 +23,15 @@ class CLASS_futures(Container):
@validate_arguments
def curve(
self,
symbol: Annotated[
symbol: typing_extensions.Annotated[
Union[str, List[str]],
OpenBBCustomParameter(description="Symbol to get data for."),
],
date: Annotated[
Optional[datetime.date],
date: typing_extensions.Annotated[
Union[datetime.date, None],
OpenBBCustomParameter(description="Historical date to search curve for."),
] = None,
provider: Optional[Literal["cboe", "yfinance"]] = None,
provider: Union[Literal["cboe", "yfinance"], None] = None,
**kwargs
) -> OBBject[List]:
"""Futures Historical Price.
@@ -40,9 +40,9 @@ class CLASS_futures(Container):
----------
symbol : Union[str, List[str]]
Symbol to get data for.
date : Optional[datetime.date]
date : Union[datetime.date, NoneType]
Historical date to search curve for.
provider : Optional[Literal['cboe', 'yfinance']]
provider : Union[Literal['cboe', 'yfinance'], NoneType]
The provider to use for the query, by default None.
If None, the provider specified in defaults is selected or 'cboe' if there is
no default.
@@ -52,7 +52,7 @@ class CLASS_futures(Container):
OBBject
results : List[FuturesCurve]
Serializable results.
provider : Optional[Literal['cboe', 'yfinance']]
provider : Union[Literal['cboe', 'yfinance'], NoneType]
Provider name.
warnings : Optional[List[Warning_]]
List of warnings.
@@ -89,27 +89,27 @@ class CLASS_futures(Container):
@validate_arguments
def load(
self,
symbol: Annotated[
symbol: typing_extensions.Annotated[
Union[str, List[str]],
OpenBBCustomParameter(description="Symbol to get data for."),
],
start_date: Annotated[
start_date: typing_extensions.Annotated[
Union[datetime.date, None, str],
OpenBBCustomParameter(
description="Start date of the data, in YYYY-MM-DD format."
),
] = None,
end_date: Annotated[
end_date: typing_extensions.Annotated[
Union[datetime.date, None, str],
OpenBBCustomParameter(
description="End date of the data, in YYYY-MM-DD format."
),
] = None,
expiration: Annotated[
Optional[str],
expiration: typing_extensions.Annotated[
Union[str, None],
OpenBBCustomParameter(description="Future expiry date with format YYYY-MM"),
] = None,
provider: Optional[Literal["yfinance"]] = None,
provider: Union[Literal["yfinance"], None] = None,
**kwargs
) -> OBBject[List]:
"""Futures Historical Price.
@@ -122,15 +122,15 @@ class CLASS_futures(Container):
Start date of the data, in YYYY-MM-DD format.
end_date : Union[datetime.date, NoneType, str]
End date of the data, in YYYY-MM-DD format.
expiration : Optional[str]
expiration : Union[str, NoneType]
Future expiry date with format YYYY-MM
provider : Optional[Literal['yfinance']]
provider : Union[Literal['yfinance'], NoneType]
The provider to use for the query, by default None.
If None, the provider specified in defaults is selected or 'yfinance' if there is
no default.
interval : Optional[Literal['1m', '2m', '5m', '15m', '30m', '60m', '90m', '1h', '1d', '5d', '1wk', '1mo', '3mo']]
interval : Union[Literal['1m', '2m', '5m', '15m', '30m', '60m', '90m', '1h', '1d', '5d', '1wk', '1mo', '3mo'], NoneType]
Data granularity. (provider: yfinance)
period : Optional[Literal['1d', '5d', '1mo', '3mo', '6mo', '1y', '2y', '5y', '10y', 'ytd', 'max']]
period : Union[Literal['1d', '5d', '1mo', '3mo', '6mo', '1y', '2y', '5y', '10y', 'ytd', 'max'], NoneType]
Period of the data to return. (provider: yfinance)
prepost : bool
Include Pre and Post market data. (provider: yfinance)
@@ -144,7 +144,7 @@ class CLASS_futures(Container):
OBBject
results : List[FuturesHistorical]
Serializable results.
provider : Optional[Literal['yfinance']]
provider : Union[Literal['yfinance'], NoneType]
Provider name.
warnings : Optional[List[Warning_]]
List of warnings.

View File

@@ -2,6 +2,21 @@
"__extensions__": "",
"crypto": "/crypto",
"crypto_load": "/crypto/load",
"econometrics": "/econometrics",
"econometrics_bgot": "/econometrics/bgot",
"econometrics_coint": "/econometrics/coint",
"econometrics_corr": "/econometrics/corr",
"econometrics_dwat": "/econometrics/dwat",
"econometrics_granger": "/econometrics/granger",
"econometrics_ols": "/econometrics/ols",
"econometrics_ols_summary": "/econometrics/ols_summary",
"econometrics_panelbols": "/econometrics/panelbols",
"econometrics_panelfd": "/econometrics/panelfd",
"econometrics_panelfmac": "/econometrics/panelfmac",
"econometrics_panelols": "/econometrics/panelols",
"econometrics_panelpols": "/econometrics/panelpols",
"econometrics_panelre": "/econometrics/panelre",
"econometrics_unitroot": "/econometrics/unitroot",
"economy": "/economy",
"economy_available_indices": "/economy/available_indices",
"economy_const": "/economy/const",

View File

@@ -1,14 +1,14 @@
### THIS FILE IS AUTO-GENERATED. DO NOT EDIT. ###
from typing import List, Literal, Optional
from typing import List, Literal, Union
import pydantic
import typing_extensions
from openbb_core.app.model.custom_parameter import OpenBBCustomParameter
from openbb_core.app.model.obbject import OBBject
from openbb_core.app.static.container import Container
from openbb_core.app.static.filters import filter_inputs
from pydantic import validate_arguments
from typing_extensions import Annotated
class CLASS_news(Container):
@@ -22,11 +22,11 @@ class CLASS_news(Container):
@validate_arguments
def globalnews(
self,
page: Annotated[
page: typing_extensions.Annotated[
pydantic.types.NonNegativeInt,
OpenBBCustomParameter(description="Page of the global news."),
] = 0,
provider: Optional[Literal["benzinga", "fmp"]] = None,
provider: Union[Literal["benzinga", "fmp", "intrinio"], None] = None,
**kwargs
) -> OBBject[List]:
"""Global News.
@@ -35,7 +35,7 @@ class CLASS_news(Container):
----------
page : NonNegativeInt
Page of the global news.
provider : Optional[Literal['benzinga', 'fmp']]
provider : Union[Literal['benzinga', 'fmp', 'intrinio'], NoneType]
The provider to use for the query, by default None.
If None, the provider specified in defaults is selected or 'benzinga' if there is
no default.
@@ -43,39 +43,45 @@ class CLASS_news(Container):
Number of results to return per page. (provider: benzinga)
display_output : Literal['headline', 'summary', 'full', 'all']
Type of data to return. (provider: benzinga)
date : Optional[datetime.datetime]
date : Union[datetime.datetime, NoneType]
Date of the news to retrieve. (provider: benzinga)
date_from : Optional[datetime.datetime]
date_from : Union[datetime.datetime, NoneType]
Start date of the news to retrieve. (provider: benzinga)
date_to : Optional[datetime.datetime]
date_to : Union[datetime.datetime, NoneType]
End date of the news to retrieve. (provider: benzinga)
updated_since : Optional[int]
updated_since : Union[int, NoneType]
Number of seconds since the news was updated. (provider: benzinga)
published_since : Optional[int]
published_since : Union[int, NoneType]
Number of seconds since the news was published. (provider: benzinga)
sort : Optional[Literal['published_at', 'updated_at', 'title', 'author', 'channel', 'ticker', 'topic', 'content_type']]
sort : Union[Literal['published_at', 'updated_at', 'title', 'author', 'channel', 'ticker', 'topic', 'content_type'], NoneType]
Order in which to sort the news. (provider: benzinga)
isin : Optional[str]
isin : Union[str, NoneType]
The ISIN of the news to retrieve. (provider: benzinga)
cusip : Optional[str]
cusip : Union[str, NoneType]
The CUSIP of the news to retrieve. (provider: benzinga)
tickers : Optional[str]
tickers : Union[str, NoneType]
Tickers of the news to retrieve. (provider: benzinga)
channels : Optional[str]
channels : Union[str, NoneType]
Channels of the news to retrieve. (provider: benzinga)
topics : Optional[str]
topics : Union[str, NoneType]
Topics of the news to retrieve. (provider: benzinga)
authors : Optional[str]
authors : Union[str, NoneType]
Authors of the news to retrieve. (provider: benzinga)
content_types : Optional[str]
content_types : Union[str, NoneType]
Content types of the news to retrieve. (provider: benzinga)
next_page : str
Token to get the next page of data from a previous API call. (provider: intrinio)
limit : Union[int, NoneType]
The number of data entries to return. (provider: intrinio)
all_pages : Union[bool, NoneType]
Returns all pages of data from the API call at once. (provider: intrinio)
Returns
-------
OBBject
results : List[GlobalNews]
Serializable results.
provider : Optional[Literal['benzinga', 'fmp']]
provider : Union[Literal['benzinga', 'fmp', 'intrinio'], NoneType]
Provider name.
warnings : Optional[List[Warning_]]
List of warnings.
@@ -105,7 +111,11 @@ class CLASS_news(Container):
teaser : Optional[str]
Teaser of the news. (provider: benzinga)
site : Optional[str]
Site of the news. (provider: fmp)""" # noqa: E501
Site of the news. (provider: fmp)
id : Optional[str]
Article ID. (provider: intrinio)
company : Optional[Mapping[str, Any]]
Company details related to the news article. (provider: intrinio)""" # noqa: E501
inputs = filter_inputs(
provider_choices={

View File

@@ -337,7 +337,7 @@ class CLASS_qa(Container):
self,
data: Union[List[openbb_provider.abstract.data.Data], pandas.DataFrame],
target: str,
fuller_reg: Literal["c", "ct", "ctt", "nc"] = "c",
fuller_reg: Literal["c", "ct", "ctt", "nc", "c"] = "c",
kpss_reg: Literal["c", "ct"] = "c",
) -> OBBject[openbb_qa.qa_models.UnitRootModel]:
"""Unit Root Test.

View File

@@ -1,15 +1,16 @@
### THIS FILE IS AUTO-GENERATED. DO NOT EDIT. ###
import datetime
from typing import List, Literal, Optional, Union
from typing import List, Literal, Union
import pydantic
import pydantic.main
import typing_extensions
from openbb_core.app.model.custom_parameter import OpenBBCustomParameter
from openbb_core.app.model.obbject import OBBject
from openbb_core.app.static.container import Container
from openbb_core.app.static.filters import filter_inputs
from pydantic import validate_arguments
from typing_extensions import Annotated
from pydantic import BaseModel, validate_arguments
class CLASS_stocks(Container):
@@ -50,11 +51,11 @@ class CLASS_stocks(Container):
@validate_arguments
def info(
self,
symbol: Annotated[
symbol: typing_extensions.Annotated[
Union[str, List[str]],
OpenBBCustomParameter(description="Symbol to get data for."),
],
provider: Optional[Literal["cboe"]] = None,
provider: Union[Literal["cboe"], None] = None,
**kwargs
) -> OBBject[List]:
"""Get general price and performance metrics of a stock.
@@ -63,7 +64,7 @@ class CLASS_stocks(Container):
----------
symbol : Union[str, List[str]]
Symbol to get data for.
provider : Optional[Literal['cboe']]
provider : Union[Literal['cboe'], NoneType]
The provider to use for the query, by default None.
If None, the provider specified in defaults is selected or 'cboe' if there is
no default.
@@ -73,7 +74,7 @@ class CLASS_stocks(Container):
OBBject
results : List[StockInfo]
Serializable results.
provider : Optional[Literal['cboe']]
provider : Union[Literal['cboe'], NoneType]
Provider name.
warnings : Optional[List[Warning_]]
List of warnings.
@@ -165,27 +166,30 @@ class CLASS_stocks(Container):
@validate_arguments
def load(
self,
symbol: Annotated[
symbol: typing_extensions.Annotated[
Union[str, List[str]],
OpenBBCustomParameter(description="Symbol to get data for."),
],
start_date: Annotated[
start_date: typing_extensions.Annotated[
Union[datetime.date, None, str],
OpenBBCustomParameter(
description="Start date of the data, in YYYY-MM-DD format."
),
] = None,
end_date: Annotated[
end_date: typing_extensions.Annotated[
Union[datetime.date, None, str],
OpenBBCustomParameter(
description="End date of the data, in YYYY-MM-DD format."
),
] = None,
chart: bool = False,
provider: Optional[Literal["cboe", "fmp", "polygon", "yfinance"]] = None,
provider: Union[
Literal["alpha_vantage", "cboe", "fmp", "intrinio", "polygon", "yfinance"],
None,
] = None,
**kwargs
) -> OBBject[List]:
r"""Load stock data for a specific ticker.
"""Load stock data for a specific ticker.
Parameters
----------
@@ -197,26 +201,46 @@ class CLASS_stocks(Container):
End date of the data, in YYYY-MM-DD format.
chart : bool
Whether to create a chart or not, by default False.
provider : Optional[Literal['cboe', 'fmp', 'polygon', 'yfinance']]
provider : Union[Literal['alpha_vantage', 'cboe', 'fmp', 'intrinio', 'polygon', 'yfinance'], NoneType]
The provider to use for the query, by default None.
If None, the provider specified in defaults is selected or 'cboe' if there is
If None, the provider specified in defaults is selected or 'alpha_vantage' if there is
no default.
interval : Union[Literal['1d', '1m'], NoneType, Literal['1min', '5min', '15min', '30min', '1hour', '4hour', '1day'], Literal['1m', '2m', '5m', '15m', '30m', '60m', '90m', '1h', '1d', '5d', '1wk', '1mo', '3mo']]
Data granularity. (provider: cboe, fmp, yfinance)
timeseries : Optional[pydantic.types.NonNegativeInt]
period : Union[Literal['intraday', 'daily', 'weekly', 'monthly'], Literal['1d', '5d', '1mo', '3mo', '6mo', '1y', '2y', '5y', '10y', 'ytd', 'max'], NoneType]
Period of the data to return. (provider: alpha_vantage, yfinance)
interval : Union[Literal['1min', '5min', '15min', '30min', '60min'], NoneType, Literal['1d', '1m'], Literal['1min', '5min', '15min', '30min', '1hour', '4hour', '1day'], Literal['1m', '2m', '5m', '15m', '30m', '60m', '90m', '1h', '1d', '5d', '1wk', '1mo', '3mo']]
Data granularity. (provider: alpha_vantage, cboe, fmp, yfinance)
adjusted : Union[bool, NoneType]
Output time series is adjusted by historical split and dividend events. (provider: alpha_vantage, polygon)
extended_hours : Union[bool, NoneType]
Extended trading hours during pre-market and after-hours. (provider: alpha_vantage)
month : Union[str, NoneType]
Query a specific month in history (in YYYY-MM format). (provider: alpha_vantage)
outputsize : Union[Literal['compact', 'full'], NoneType]
Compact returns only the latest 100 data points in the intraday time series; full returns trailing 30 days of the most recent intraday data if the month parameter (see above) is not specified, or the full intraday data for a specific month in history if the month parameter is specified. (provider: alpha_vantage)
timeseries : Union[pydantic.types.NonNegativeInt, NoneType]
Number of days to look back. (provider: fmp)
timezone : Union[Literal['Africa/Algiers', 'Africa/Cairo', 'Africa/Casablanca', 'Africa/Harare', 'Africa/Johannesburg', 'Africa/Monrovia', 'Africa/Nairobi', 'America/Argentina/Buenos_Aires', 'America/Bogota', 'America/Caracas', 'America/Chicago', 'America/Chihuahua', 'America/Denver', 'America/Godthab', 'America/Guatemala', 'America/Guyana', 'America/Halifax', 'America/Indiana/Indianapolis', 'America/Juneau', 'America/La_Paz', 'America/Lima', 'America/Lima', 'America/Los_Angeles', 'America/Mazatlan', 'America/Mexico_City', 'America/Mexico_City', 'America/Monterrey', 'America/Montevideo', 'America/New_York', 'America/Phoenix', 'America/Regina', 'America/Santiago', 'America/Sao_Paulo', 'America/St_Johns', 'America/Tijuana', 'Asia/Almaty', 'Asia/Baghdad', 'Asia/Baku', 'Asia/Bangkok', 'Asia/Bangkok', 'Asia/Chongqing', 'Asia/Colombo', 'Asia/Dhaka', 'Asia/Dhaka', 'Asia/Hong_Kong', 'Asia/Irkutsk', 'Asia/Jakarta', 'Asia/Jerusalem', 'Asia/Kabul', 'Asia/Kamchatka', 'Asia/Karachi', 'Asia/Karachi', 'Asia/Kathmandu', 'Asia/Kolkata', 'Asia/Kolkata', 'Asia/Kolkata', 'Asia/Kolkata', 'Asia/Krasnoyarsk', 'Asia/Kuala_Lumpur', 'Asia/Kuwait', 'Asia/Magadan', 'Asia/Muscat', 'Asia/Muscat', 'Asia/Novosibirsk', 'Asia/Rangoon', 'Asia/Riyadh', 'Asia/Seoul', 'Asia/Shanghai', 'Asia/Singapore', 'Asia/Srednekolymsk', 'Asia/Taipei', 'Asia/Tashkent', 'Asia/Tbilisi', 'Asia/Tehran', 'Asia/Tokyo', 'Asia/Tokyo', 'Asia/Tokyo', 'Asia/Ulaanbaatar', 'Asia/Urumqi', 'Asia/Vladivostok', 'Asia/Yakutsk', 'Asia/Yekaterinburg', 'Asia/Yerevan', 'Atlantic/Azores', 'Atlantic/Cape_Verde', 'Atlantic/South_Georgia', 'Australia/Adelaide', 'Australia/Brisbane', 'Australia/Darwin', 'Australia/Hobart', 'Australia/Melbourne', 'Australia/Melbourne', 'Australia/Perth', 'Australia/Sydney', 'Etc/UTC', 'UTC', 'Europe/Amsterdam', 'Europe/Athens', 'Europe/Belgrade', 'Europe/Berlin', 'Europe/Berlin', 'Europe/Bratislava', 'Europe/Brussels', 'Europe/Bucharest', 'Europe/Budapest', 'Europe/Copenhagen', 'Europe/Dublin', 'Europe/Helsinki', 'Europe/Istanbul', 'Europe/Kaliningrad', 'Europe/Kiev', 'Europe/Lisbon', 'Europe/Ljubljana', 'Europe/London', 'Europe/London', 'Europe/Madrid', 'Europe/Minsk', 'Europe/Moscow', 'Europe/Moscow', 'Europe/Paris', 'Europe/Prague', 'Europe/Riga', 'Europe/Rome', 'Europe/Samara', 'Europe/Sarajevo', 'Europe/Skopje', 'Europe/Sofia', 'Europe/Stockholm', 'Europe/Tallinn', 'Europe/Vienna', 'Europe/Vilnius', 'Europe/Volgograd', 'Europe/Warsaw', 'Europe/Zagreb', 'Pacific/Apia', 'Pacific/Auckland', 'Pacific/Auckland', 'Pacific/Chatham', 'Pacific/Fakaofo', 'Pacific/Fiji', 'Pacific/Guadalcanal', 'Pacific/Guam', 'Pacific/Honolulu', 'Pacific/Majuro', 'Pacific/Midway', 'Pacific/Midway', 'Pacific/Noumea', 'Pacific/Pago_Pago', 'Pacific/Port_Moresby', 'Pacific/Tongatapu'], NoneType]
Returns trading times in this timezone. (provider: intrinio)
source : Union[Literal['realtime', 'delayed', 'nasdaq_basic'], NoneType]
The source of the data. (provider: intrinio)
start_time : Union[datetime.time, NoneType]
Return intervals starting at the specified time on the `start_date` formatted as 'hh:mm:ss'. (provider: intrinio)
end_time : Union[datetime.time, NoneType]
Return intervals stopping at the specified time on the `end_date` formatted as 'hh:mm:ss'. (provider: intrinio)
interval_size : Union[Literal['1m', '5m', '10m', '15m', '30m', '60m', '1h'], NoneType]
The data time frequency. (provider: intrinio)
limit : Union[pydantic.types.NonNegativeInt, NoneType, pydantic.types.PositiveInt]
The number of data entries to return. (provider: intrinio, polygon)
next_page : Union[str, NoneType]
Token to get the next page of data from a previous API call. (provider: intrinio)
all_pages : Union[bool, NoneType]
Returns all pages of data from the API call at once. (provider: intrinio)
timespan : Literal['minute', 'hour', 'day', 'week', 'month', 'quarter', 'year']
Timespan of the data. (provider: polygon)
sort : Literal['asc', 'desc']
Sort order of the data. (provider: polygon)
limit : PositiveInt
The number of data entries to return. (provider: polygon)
adjusted : bool
Output time series is adjusted by historical split and dividend events. (provider: polygon)
multiplier : PositiveInt
Multiplier of the timespan. (provider: polygon)
period : Optional[Literal['1d', '5d', '1mo', '3mo', '6mo', '1y', '2y', '5y', '10y', 'ytd', 'max']]
Period of the data to return. (provider: yfinance)
prepost : bool
Include Pre and Post market data. (provider: yfinance)
adjust : bool
@@ -229,7 +253,7 @@ class CLASS_stocks(Container):
OBBject
results : List[StockHistorical]
Serializable results.
provider : Optional[Literal['cboe', 'fmp', 'polygon', 'yfinance']]
provider : Union[Literal['alpha_vantage', 'cboe', 'fmp', 'intrinio', 'polygon', 'yfinance'], NoneType]
Provider name.
warnings : Optional[List[Warning_]]
List of warnings.
@@ -254,6 +278,12 @@ class CLASS_stocks(Container):
The volume of the symbol.
vwap : Optional[PositiveFloat]
Volume Weighted Average Price of the symbol.
adjusted_close : Optional[PositiveFloat]
The adjusted close price of the symbol. (provider: alpha_vantage)
dividend_amount : Optional[NonNegativeFloat]
Dividend amount paid for the corresponding date. (provider: alpha_vantage)
split_coefficient : Optional[NonNegativeFloat]
Split coefficient for the corresponding date. (provider: alpha_vantage)
calls_volume : Optional[float]
Number of calls traded during the most recent trading period. Only valid if interval is 1m. (provider: cboe)
puts_volume : Optional[float]
@@ -265,13 +295,19 @@ class CLASS_stocks(Container):
unadjusted_volume : Optional[float]
Unadjusted volume of the symbol. (provider: fmp)
change : Optional[float]
Change in the price of the symbol from the previous day. (provider: fmp)
Change in the price of the symbol from the previous day. (provider: fmp, intrinio)
change_percent : Optional[float]
Change \% in the price of the symbol. (provider: fmp)
Change \\% in the price of the symbol. (provider: fmp)
label : Optional[str]
Human readable format of the date. (provider: fmp)
change_over_time : Optional[float]
Change \% in the price of the symbol over a period of time. (provider: fmp)
Change \\% in the price of the symbol over a period of time. (provider: fmp)
close_time : Optional[datetime]
The timestamp that represents the end of the interval span. (provider: intrinio)
interval : Optional[str]
The data time frequency. (provider: intrinio)
average : Optional[float]
Average trade price of an individual stock during the interval. (provider: intrinio)
transactions : Optional[PositiveInt]
Number of transactions for the symbol in the time period. (provider: polygon)
""" # noqa: E501
@@ -297,16 +333,16 @@ class CLASS_stocks(Container):
@validate_arguments
def multiples(
self,
symbol: Annotated[
symbol: typing_extensions.Annotated[
Union[str, List[str]],
OpenBBCustomParameter(description="Symbol to get data for."),
],
limit: Annotated[
Optional[int],
limit: typing_extensions.Annotated[
Union[int, None],
OpenBBCustomParameter(description="The number of data entries to return."),
] = 100,
chart: bool = False,
provider: Optional[Literal["fmp"]] = None,
provider: Union[Literal["fmp"], None] = None,
**kwargs
) -> OBBject[List]:
"""Get valuation multiples for a stock ticker.
@@ -315,11 +351,11 @@ class CLASS_stocks(Container):
----------
symbol : Union[str, List[str]]
Symbol to get data for.
limit : Optional[int]
limit : Union[int, NoneType]
The number of data entries to return.
chart : bool
Whether to create a chart or not, by default False.
provider : Optional[Literal['fmp']]
provider : Union[Literal['fmp'], NoneType]
The provider to use for the query, by default None.
If None, the provider specified in defaults is selected or 'fmp' if there is
no default.
@@ -329,7 +365,7 @@ class CLASS_stocks(Container):
OBBject
results : List[StockMultiples]
Serializable results.
provider : Optional[Literal['fmp']]
provider : Union[Literal['fmp'], NoneType]
Provider name.
warnings : Optional[List[Warning_]]
List of warnings.
@@ -481,21 +517,23 @@ class CLASS_stocks(Container):
@validate_arguments
def news(
self,
symbols: Annotated[
symbols: typing_extensions.Annotated[
str, OpenBBCustomParameter(description="Symbol to get data for.")
],
page: Annotated[
page: typing_extensions.Annotated[
int,
OpenBBCustomParameter(
description="Page of the stock news to be retrieved."
),
] = 0,
limit: Annotated[
Optional[pydantic.types.NonNegativeInt],
limit: typing_extensions.Annotated[
Union[pydantic.types.NonNegativeInt, None],
OpenBBCustomParameter(description="Number of results to return per page."),
] = 15,
chart: bool = False,
provider: Optional[Literal["benzinga", "fmp", "polygon", "yfinance"]] = None,
provider: Union[
Literal["benzinga", "fmp", "intrinio", "polygon", "yfinance"], None
] = None,
**kwargs
) -> OBBject[List]:
"""Get news for one or more stock tickers.
@@ -506,59 +544,63 @@ class CLASS_stocks(Container):
Symbol to get data for.
page : int
Page of the stock news to be retrieved.
limit : Optional[pydantic.types.NonNegativeInt]
limit : Union[pydantic.types.NonNegativeInt, NoneType]
Number of results to return per page.
chart : bool
Whether to create a chart or not, by default False.
provider : Optional[Literal['benzinga', 'fmp', 'polygon', 'yfinance']]
provider : Union[Literal['benzinga', 'fmp', 'intrinio', 'polygon', 'yfinance'], NoneType]
The provider to use for the query, by default None.
If None, the provider specified in defaults is selected or 'benzinga' if there is
no default.
display_output : Literal['headline', 'summary', 'full', 'all']
Type of data to return. (provider: benzinga)
date : Optional[datetime.datetime]
date : Union[datetime.datetime, NoneType]
Date of the news to retrieve. (provider: benzinga)
date_from : Optional[datetime.datetime]
date_from : Union[datetime.datetime, NoneType]
Start date of the news to retrieve. (provider: benzinga)
date_to : Optional[datetime.datetime]
date_to : Union[datetime.datetime, NoneType]
End date of the news to retrieve. (provider: benzinga)
updated_since : Optional[int]
updated_since : Union[int, NoneType]
Number of seconds since the news was updated. (provider: benzinga)
published_since : Optional[int]
published_since : Union[int, NoneType]
Number of seconds since the news was published. (provider: benzinga)
sort : Union[Literal['published_at', 'updated_at', 'title', 'author', 'channel', 'ticker', 'topic', 'content_type'], NoneType, str]
Order in which to sort the news. (provider: benzinga, polygon)
isin : Optional[str]
isin : Union[str, NoneType]
The ISIN of the news to retrieve. (provider: benzinga)
cusip : Optional[str]
cusip : Union[str, NoneType]
The CUSIP of the news to retrieve. (provider: benzinga)
channels : Optional[str]
channels : Union[str, NoneType]
Channels of the news to retrieve. (provider: benzinga)
topics : Optional[str]
topics : Union[str, NoneType]
Topics of the news to retrieve. (provider: benzinga)
authors : Optional[str]
authors : Union[str, NoneType]
Authors of the news to retrieve. (provider: benzinga)
content_types : Optional[str]
content_types : Union[str, NoneType]
Content types of the news to retrieve. (provider: benzinga)
ticker_lt : Optional[str]
next_page : Union[str, NoneType]
Token to get the next page of data from a previous API call. (provider: intrinio)
all_pages : Union[bool, NoneType]
Returns all pages of data from the API call at once. (provider: intrinio)
ticker_lt : Union[str, NoneType]
Less than. (provider: polygon)
ticker_lte : Optional[str]
ticker_lte : Union[str, NoneType]
Less than or equal. (provider: polygon)
ticker_gt : Optional[str]
ticker_gt : Union[str, NoneType]
Greater than. (provider: polygon)
ticker_gte : Optional[str]
ticker_gte : Union[str, NoneType]
Greater than or equal. (provider: polygon)
published_utc : Optional[str]
published_utc : Union[str, NoneType]
Published date of the query. (provider: polygon)
published_utc_lt : Optional[str]
published_utc_lt : Union[str, NoneType]
Less than. (provider: polygon)
published_utc_lte : Optional[str]
published_utc_lte : Union[str, NoneType]
Less than or equal. (provider: polygon)
published_utc_gt : Optional[str]
published_utc_gt : Union[str, NoneType]
Greater than. (provider: polygon)
published_utc_gte : Optional[str]
published_utc_gte : Union[str, NoneType]
Greater than or equal. (provider: polygon)
order : Optional[Literal['asc', 'desc']]
order : Union[Literal['asc', 'desc'], NoneType]
Sort order of the query. (provider: polygon)
Returns
@@ -566,7 +608,7 @@ class CLASS_stocks(Container):
OBBject
results : List[StockNews]
Serializable results.
provider : Optional[Literal['benzinga', 'fmp', 'polygon', 'yfinance']]
provider : Union[Literal['benzinga', 'fmp', 'intrinio', 'polygon', 'yfinance'], NoneType]
Provider name.
warnings : Optional[List[Warning_]]
List of warnings.
@@ -601,12 +643,12 @@ class CLASS_stocks(Container):
URL to the image of the news source. (provider: fmp)
site : Optional[str]
Name of the news source. (provider: fmp)
id : Optional[str]
Article ID. (provider: intrinio, polygon)
amp_url : Optional[str]
AMP URL. (provider: polygon)
author : Optional[str]
Author of the article. (provider: polygon)
id : Optional[str]
Article ID. (provider: polygon)
image_url : Optional[str]
Image URL. (provider: polygon)
keywords : Optional[List[str]]
@@ -651,30 +693,32 @@ class CLASS_stocks(Container):
@validate_arguments
def quote(
self,
symbol: Annotated[
symbol: typing_extensions.Annotated[
Union[str, List[str]],
OpenBBCustomParameter(description="Symbol to get data for."),
],
provider: Optional[Literal["fmp"]] = None,
provider: Union[Literal["fmp", "intrinio"], None] = None,
**kwargs
) -> OBBject[List]:
) -> OBBject[BaseModel]:
"""Load stock data for a specific ticker.
Parameters
----------
symbol : Union[str, List[str]]
Symbol to get data for.
provider : Optional[Literal['fmp']]
provider : Union[Literal['fmp', 'intrinio'], NoneType]
The provider to use for the query, by default None.
If None, the provider specified in defaults is selected or 'fmp' if there is
no default.
source : Literal['iex', 'bats', 'bats_delayed', 'utp_delayed', 'cta_a_delayed', 'cta_b_delayed', 'intrinio_mx', 'intrinio_mx_plus', 'delayed_sip']
Source of the data. (provider: intrinio)
Returns
-------
OBBject
results : List[StockQuote]
Serializable results.
provider : Optional[Literal['fmp']]
provider : Union[Literal['fmp', 'intrinio'], NoneType]
Provider name.
warnings : Optional[List[Warning_]]
List of warnings.
@@ -728,7 +772,47 @@ class CLASS_stocks(Container):
earnings_announcement : Optional[str]
Earnings announcement date of the stock. (provider: fmp)
shares_outstanding : Optional[int]
Number of shares outstanding of the stock. (provider: fmp)""" # noqa: E501
Number of shares outstanding of the stock. (provider: fmp)
last_price : Optional[float]
Price of the last trade. (provider: intrinio)
last_time : Optional[datetime]
Date and Time when the last trade occurred. (provider: intrinio)
last_size : Optional[int]
Size of the last trade. (provider: intrinio)
bid_price : Optional[float]
Price of the top bid order. (provider: intrinio)
bid_size : Optional[int]
Size of the top bid order. (provider: intrinio)
ask_price : Optional[float]
Price of the top ask order. (provider: intrinio)
ask_size : Optional[int]
Size of the top ask order. (provider: intrinio)
open_price : Optional[float]
Open price for the trading day. (provider: intrinio)
close_price : Optional[float]
Closing price for the trading day (IEX source only). (provider: intrinio)
high_price : Optional[float]
High Price for the trading day. (provider: intrinio)
low_price : Optional[float]
Low Price for the trading day. (provider: intrinio)
exchange_volume : Optional[int]
Number of shares exchanged during the trading day on the exchange. (provider: intrinio)
market_volume : Optional[int]
Number of shares exchanged during the trading day for the whole market. (provider: intrinio)
updated_on : Optional[datetime]
Date and Time when the data was last updated. (provider: intrinio)
source : Optional[str]
Source of the data. (provider: intrinio)
listing_venue : Optional[str]
Listing venue where the trade took place (SIP source only). (provider: intrinio)
sales_conditions : Optional[str]
Indicates any sales condition modifiers associated with the trade. (provider: intrinio)
quote_conditions : Optional[str]
Indicates any quote condition modifiers associated with the trade. (provider: intrinio)
market_center_code : Optional[str]
Market center character code. (provider: intrinio)
is_darkpool : Optional[bool]
Whether or not the current trade is from a darkpool. (provider: intrinio)""" # noqa: E501
inputs = filter_inputs(
provider_choices={
@@ -748,12 +832,14 @@ class CLASS_stocks(Container):
@validate_arguments
def search(
self,
query: Annotated[str, OpenBBCustomParameter(description="Search query.")] = "",
ticker: Annotated[
query: typing_extensions.Annotated[
str, OpenBBCustomParameter(description="Search query.")
] = "",
ticker: typing_extensions.Annotated[
bool,
OpenBBCustomParameter(description="Whether to search by ticker symbol."),
] = False,
provider: Optional[Literal["cboe"]] = None,
provider: Union[Literal["cboe"], None] = None,
**kwargs
) -> OBBject[List]:
"""Search for a company or stock ticker.
@@ -764,7 +850,7 @@ class CLASS_stocks(Container):
Search query.
ticker : bool
Whether to search by ticker symbol.
provider : Optional[Literal['cboe']]
provider : Union[Literal['cboe'], NoneType]
The provider to use for the query, by default None.
If None, the provider specified in defaults is selected or 'cboe' if there is
no default.
@@ -774,7 +860,7 @@ class CLASS_stocks(Container):
OBBject
results : List[StockSearch]
Serializable results.
provider : Optional[Literal['cboe']]
provider : Union[Literal['cboe'], NoneType]
Provider name.
warnings : Optional[List[Warning_]]
List of warnings.

View File

@@ -1,13 +1,13 @@
### THIS FILE IS AUTO-GENERATED. DO NOT EDIT. ###
from typing import List, Literal, Optional, Union
from typing import List, Literal, Union
import typing_extensions
from openbb_core.app.model.custom_parameter import OpenBBCustomParameter
from openbb_core.app.model.obbject import OBBject
from openbb_core.app.static.container import Container
from openbb_core.app.static.filters import filter_inputs
from pydantic import BaseModel, validate_arguments
from typing_extensions import Annotated
class CLASS_stocks_ca(Container):
@@ -21,11 +21,11 @@ class CLASS_stocks_ca(Container):
@validate_arguments
def peers(
self,
symbol: Annotated[
symbol: typing_extensions.Annotated[
Union[str, List[str]],
OpenBBCustomParameter(description="Symbol to get data for."),
],
provider: Optional[Literal["fmp"]] = None,
provider: Union[Literal["fmp"], None] = None,
**kwargs
) -> OBBject[BaseModel]:
"""Company peers.
@@ -34,7 +34,7 @@ class CLASS_stocks_ca(Container):
----------
symbol : Union[str, List[str]]
Symbol to get data for.
provider : Optional[Literal['fmp']]
provider : Union[Literal['fmp'], NoneType]
The provider to use for the query, by default None.
If None, the provider specified in defaults is selected or 'fmp' if there is
no default.
@@ -44,7 +44,7 @@ class CLASS_stocks_ca(Container):
OBBject
results : List[StockPeers]
Serializable results.
provider : Optional[Literal['fmp']]
provider : Union[Literal['fmp'], NoneType]
Provider name.
warnings : Optional[List[Warning_]]
List of warnings.

View File

@@ -1,13 +1,13 @@
### THIS FILE IS AUTO-GENERATED. DO NOT EDIT. ###
from typing import List, Literal, Optional, Union
from typing import List, Literal, Union
import typing_extensions
from openbb_core.app.model.custom_parameter import OpenBBCustomParameter
from openbb_core.app.model.obbject import OBBject
from openbb_core.app.static.container import Container
from openbb_core.app.static.filters import filter_inputs
from pydantic import validate_arguments
from typing_extensions import Annotated
class CLASS_stocks_dd(Container):
@@ -21,11 +21,11 @@ class CLASS_stocks_dd(Container):
@validate_arguments
def sec(
self,
symbol: Annotated[
symbol: typing_extensions.Annotated[
Union[str, List[str]],
OpenBBCustomParameter(description="Symbol to get data for."),
],
type: Annotated[
type: typing_extensions.Annotated[
Literal[
"1",
"1-A",
@@ -130,15 +130,15 @@ class CLASS_stocks_dd(Container):
],
OpenBBCustomParameter(description="Type of the SEC filing form."),
] = "10-K",
page: Annotated[
Optional[int],
page: typing_extensions.Annotated[
Union[int, None],
OpenBBCustomParameter(description="Page number of the results."),
] = 0,
limit: Annotated[
Optional[int],
limit: typing_extensions.Annotated[
Union[int, None],
OpenBBCustomParameter(description="The number of data entries to return."),
] = 100,
provider: Optional[Literal["fmp"]] = None,
provider: Union[Literal["fmp"], None] = None,
**kwargs
) -> OBBject[List]:
"""SEC Filings.
@@ -149,11 +149,11 @@ class CLASS_stocks_dd(Container):
Symbol to get data for.
type : Literal['1', '1-A', '1-E', '1-K', '1-N', '1-SA', '1-U', '1-Z', '10', '10-D', '10-K', '10-M', '10-Q', '11-K', '12b-25', '13F', '13H', '144', '15', '15F', '17-H', '18', '18-K', '19b-4', '19b-4(e)', '19b-7', '2-E', '20-F', '24F-2', '25', '3', '4', '40-F', '5', '6-K', '7-M', '8-A', '8-K', '8-M', '9-M', 'ABS-15G', 'ABS-EE', 'ABS DD-15E', 'ADV', 'ADV-E', 'ADV-H', 'ADV-NR', 'ADV-W', 'ATS', 'ATS-N', 'ATS-R', 'BD', 'BD-N', 'BDW', 'C', 'CA-1', 'CB', 'CFPORTAL', 'CRS', 'CUSTODY', 'D', 'F-1', 'F-10', 'F-3', 'F-4', 'F-6', 'F-7', 'F-8', 'F-80', 'F-N', 'F-X', 'ID', 'MA', 'MA-I', 'MA-NR', 'MA-W', 'MSD', 'MSDW', 'N-14', 'N-17D-1', 'N-17f-1', 'N-17f-2', 'N-18f-1', 'N-1A', 'N-2', 'N-23c-3', 'N-27D-1', 'N-3', 'N-4', 'N-5', 'N-54A', 'N-54C', 'N-6', 'N-6EI-1', 'N-6F', 'N-8A', 'N-8B-2', 'N-8B-4', 'N-8F', 'N-CEN']
Type of the SEC filing form.
page : Optional[int]
page : Union[int, NoneType]
Page number of the results.
limit : Optional[int]
limit : Union[int, NoneType]
The number of data entries to return.
provider : Optional[Literal['fmp']]
provider : Union[Literal['fmp'], NoneType]
The provider to use for the query, by default None.
If None, the provider specified in defaults is selected or 'fmp' if there is
no default.
@@ -163,7 +163,7 @@ class CLASS_stocks_dd(Container):
OBBject
results : List[SECFilings]
Serializable results.
provider : Optional[Literal['fmp']]
provider : Union[Literal['fmp'], NoneType]
Provider name.
warnings : Optional[List[Warning_]]
List of warnings.

File diff suppressed because it is too large Load Diff

View File

@@ -1,13 +1,13 @@
### THIS FILE IS AUTO-GENERATED. DO NOT EDIT. ###
from typing import List, Literal, Optional, Union
from typing import List, Literal, Union
import typing_extensions
from openbb_core.app.model.custom_parameter import OpenBBCustomParameter
from openbb_core.app.model.obbject import OBBject
from openbb_core.app.static.container import Container
from openbb_core.app.static.filters import filter_inputs
from pydantic import validate_arguments
from typing_extensions import Annotated
class CLASS_stocks_options(Container):
@@ -21,11 +21,11 @@ class CLASS_stocks_options(Container):
@validate_arguments
def chains(
self,
symbol: Annotated[
symbol: typing_extensions.Annotated[
Union[str, List[str]],
OpenBBCustomParameter(description="Symbol to get data for."),
],
provider: Optional[Literal["cboe"]] = None,
provider: Union[Literal["cboe", "intrinio"], None] = None,
**kwargs
) -> OBBject[List]:
"""Get the complete options chain for a ticker.
@@ -34,17 +34,19 @@ class CLASS_stocks_options(Container):
----------
symbol : Union[str, List[str]]
Symbol to get data for.
provider : Optional[Literal['cboe']]
provider : Union[Literal['cboe', 'intrinio'], NoneType]
The provider to use for the query, by default None.
If None, the provider specified in defaults is selected or 'cboe' if there is
no default.
date : Union[datetime.date, str, NoneType]
Date for which the options chains are returned. (provider: intrinio)
Returns
-------
OBBject
results : List[OptionsChains]
Serializable results.
provider : Optional[Literal['cboe']]
provider : Union[Literal['cboe', 'intrinio'], NoneType]
Provider name.
warnings : Optional[List[Warning_]]
List of warnings.
@@ -78,11 +80,11 @@ class CLASS_stocks_options(Container):
theoretical : Optional[float]
Theoretical value of the option. (provider: cboe)
open : Optional[float]
Opening price of the option. (provider: cboe)
Opening price of the option. (provider: cboe, intrinio)
high : Optional[float]
High price of the option. (provider: cboe)
High price of the option. (provider: cboe, intrinio)
low : Optional[float]
Low price of the option. (provider: cboe)
Low price of the option. (provider: cboe, intrinio)
last_trade_price : Optional[float]
Last trade price of the option. (provider: cboe)
tick : Optional[str]
@@ -94,21 +96,40 @@ class CLASS_stocks_options(Container):
change_percent : Optional[float]
Change, in percent, of the option. (provider: cboe)
implied_volatility : Optional[float]
Implied volatility of the option. (provider: cboe)
Implied volatility of the option. (provider: cboe, intrinio)
delta : Optional[float]
Delta of the option. (provider: cboe)
Delta of the option. (provider: cboe, intrinio)
gamma : Optional[float]
Gamma of the option. (provider: cboe)
Gamma of the option. (provider: cboe, intrinio)
vega : Optional[float]
Vega of the option. (provider: cboe)
Vega of the option. (provider: cboe, intrinio)
theta : Optional[float]
Theta of the option. (provider: cboe)
Theta of the option. (provider: cboe, intrinio)
rho : Optional[float]
Rho of the option. (provider: cboe)
last_trade_timestamp : Optional[datetime]
Last trade timestamp of the option. (provider: cboe)
dte : Optional[int]
Days to expiration for the option. (provider: cboe)""" # noqa: E501
Days to expiration for the option. (provider: cboe, intrinio)
mark : Optional[float]
The mid-price between the latest bid-ask spread. (provider: intrinio)
open_bid : Optional[float]
The lowest bid price for the option that day. (provider: intrinio)
open_ask : Optional[float]
The lowest ask price for the option that day. (provider: intrinio)
bid_low : Optional[float]
The lowest bid price for the option that day. (provider: intrinio)
ask_low : Optional[float]
The lowest ask price for the option that day. (provider: intrinio)
bid_high : Optional[float]
The highest bid price for the option that day. (provider: intrinio)
ask_high : Optional[float]
The highest ask price for the option that day. (provider: intrinio)
close : Optional[float]
Close price for the option that day. (provider: intrinio)
eod_date : Optional[date]
Historical date for which the options chains data is from. (provider: intrinio)
""" # noqa: E501
inputs = filter_inputs(
provider_choices={

View File

@@ -1,6 +1,6 @@
### THIS FILE IS AUTO-GENERATED. DO NOT EDIT. ###
from typing import List, Literal, Optional, Union
from typing import List, Literal, Union
import openbb_provider
import pandas
@@ -783,8 +783,8 @@ class CLASS_ta(Container):
index: str = "date",
close_column: Literal["close", "adj_close"] = "close",
period: pydantic.types.PositiveInt = 120,
start_date: Optional[str] = None,
end_date: Optional[str] = None,
start_date: Union[str, None] = None,
end_date: Union[str, None] = None,
) -> OBBject[List]:
"""Create Fibonacci Retracement Levels.

View File

@@ -1,4 +1,3 @@
"""Test for duplicate fields in the provider models."""
import fnmatch
import glob
import importlib
@@ -56,9 +55,8 @@ def get_subclasses_w_keys(module: object, cls: Type) -> Dict[Type, List[str]]:
def get_subclasses(
python_files: List[str], package_name: str, cls: Type
) -> Dict[Type, List[str]]:
"""Get subclasses of a class defined in a list of python files.
) -> Dict[str, Type]:
"""
Given a list of python files, and a class, return a dictionary of
subclasses of that class that are defined in those files.
@@ -115,14 +113,12 @@ def child_parent_map(map_: Dict, parents: Dict, module: object) -> None:
class ProviderFieldDupesTest(unittest.TestCase):
"""Test for duplicate fields in the provider models."""
def test_provider_field_dupes(self):
"""Check for duplicate fields in the provider models.
"""
This function checks for duplicate fields in the provider models
and identifies the fields that should be standardized.
"""
standard_models_directory = os.path.dirname(standard_models.__file__)
standard_models_files = glob.glob(
os.path.join(standard_models_directory, "*.py")