Feature/release rc0 (#5821)

* publish core and extensions

* build static

* lock openbb

* force commit package changes

---------

Co-authored-by: Henrique Joaquim <h.joaquim@campus.fct.unl.pt>
Co-authored-by: Pratyush Shukla <ps4534@nyu.edu>
This commit is contained in:
montezdesousa
2023-11-30 09:58:25 +00:00
committed by GitHub
parent a96e52de20
commit 5aaa855f30
91 changed files with 5659 additions and 1817 deletions

View File

@@ -20,29 +20,26 @@ Routers:
/regulators
Extensions:
- crypto@1.0.0b2
- currency@1.0.0b2
- derivatives@1.0.0b2
- economy@1.0.0b2
- equity@1.0.0b2
- etf@1.0.0b2
- fixedincome@1.0.0b2
- index@1.0.0b2
- news@1.0.0b2
- regulators@1.0.0b2
- crypto@1.0.0rc0
- currency@1.0.0rc0
- derivatives@1.0.0rc0
- economy@1.0.0rc0
- equity@1.0.0rc0
- etf@1.0.0rc0
- fixedincome@1.0.0rc0
- index@1.0.0rc0
- news@1.0.0rc0
- regulators@1.0.0rc0
- benzinga@1.0.0b2
- finra@1.0.0b2
- fmp@1.0.0b2
- fred@1.0.0b2
- government_us@1.0.0b2
- intrinio@1.0.0b2
- oecd@1.0.0b2
- polygon@1.0.0b2
- sec@1.0.0b2
- tiingo@1.0.0b2
- tradingeconomics@1.0.0b2
- wsj@1.0.0b2 """
- benzinga@1.0.0rc0
- fmp@1.0.0rc0
- fred@1.0.0rc0
- intrinio@1.0.0rc0
- oecd@1.0.0rc0
- polygon@1.0.0rc0
- sec@1.0.0rc0
- tiingo@1.0.0rc0
- tradingeconomics@1.0.0rc0 """
# fmt: on
def __repr__(self) -> str:
return self.__doc__ or ""

View File

@@ -16,6 +16,8 @@ class ROUTER_economy(Container):
"""/economy
calendar
cpi
fred_search
fred_series
/gdp
risk_premium
"""
@@ -298,6 +300,252 @@ class ROUTER_economy(Container):
**inputs,
)
@validate
def fred_search(
self,
query: Annotated[
Optional[str], OpenBBCustomParameter(description="The search word(s).")
] = None,
provider: Optional[Literal["fred"]] = None,
**kwargs
) -> OBBject[List[Data]]:
"""
Search for FRED series or economic releases by ID or fuzzy query.
This does not return the observation values, only the metadata.
Use this function to find series IDs for `fred_series()`.
Parameters
----------
query : Optional[str]
The search word(s).
provider : Optional[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.
is_release : Optional[bool]
Is release? If True, other search filter variables are ignored. If no query text or release_id is supplied, this defaults to True. (provider: fred)
release_id : Optional[Union[str, int]]
A specific release ID to target. (provider: fred)
limit : Optional[int]
The number of data entries to return. (1-1000) (provider: fred)
offset : Optional[Annotated[int, Ge(ge=0)]]
Offset the results in conjunction with limit. (provider: fred)
filter_variable : Literal[None, 'frequency', 'units', 'seasonal_adjustment']
Filter by an attribute. (provider: fred)
filter_value : Optional[str]
String value to filter the variable by. Used in conjunction with filter_variable. (provider: fred)
tag_names : Optional[str]
A semicolon delimited list of tag names that series match all of. Example: 'japan;imports' (provider: fred)
exclude_tag_names : Optional[str]
A semicolon delimited list of tag names that series match none of. Example: 'imports;services'. Requires that variable tag_names also be set to limit the number of matching series. (provider: fred)
Returns
-------
OBBject
results : List[FredSearch]
Serializable results.
provider : Optional[Literal['fred']]
Provider name.
warnings : Optional[List[Warning_]]
List of warnings.
chart : Optional[Chart]
Chart object.
extra: Dict[str, Any]
Extra info.
FredSearch
----------
release_id : Optional[Union[str, int]]
The release ID for queries.
series_id : Optional[str]
The series ID for the item in the release.
name : Optional[str]
The name of the release.
title : Optional[str]
The title of the series.
observation_start : Optional[date]
The date of the first observation in the series.
observation_end : Optional[date]
The date of the last observation in the series.
frequency : Optional[str]
The frequency of the data.
frequency_short : Optional[str]
Short form of the data frequency.
units : Optional[str]
The units of the data.
units_short : Optional[str]
Short form of the data units.
seasonal_adjustment : Optional[str]
The seasonal adjustment of the data.
seasonal_adjustment_short : Optional[str]
Short form of the data seasonal adjustment.
last_updated : Optional[datetime]
The datetime of the last update to the data.
notes : Optional[str]
Description of the release.
press_release : Optional[bool]
If the release is a press release.
url : Optional[str]
URL to the release.
popularity : Optional[int]
Popularity of the series (provider: fred)
group_popularity : Optional[int]
Group popularity of the release (provider: fred)
Example
-------
>>> from openbb import obb
>>> obb.economy.fred_search()
""" # noqa: E501
inputs = filter_inputs(
provider_choices={
"provider": provider,
},
standard_params={
"query": query,
},
extra_params=kwargs,
)
return self._run(
"/economy/fred_search",
**inputs,
)
@validate
def fred_series(
self,
symbol: Annotated[
Union[str, List[str]],
OpenBBCustomParameter(description="Symbol to get data for."),
],
start_date: Annotated[
Union[datetime.date, None, str],
OpenBBCustomParameter(
description="Start date of the data, in YYYY-MM-DD format."
),
] = None,
end_date: Annotated[
Union[datetime.date, None, str],
OpenBBCustomParameter(
description="End date of the data, in YYYY-MM-DD format."
),
] = None,
limit: Annotated[
Optional[int],
OpenBBCustomParameter(description="The number of data entries to return."),
] = 100000,
provider: Optional[Literal["fred", "intrinio"]] = None,
**kwargs
) -> OBBject[List[Data]]:
"""Get data by series ID from FRED.
Parameters
----------
symbol : str
Symbol to get data for.
start_date : Optional[datetime.date]
Start date of the data, in YYYY-MM-DD format.
end_date : Optional[datetime.date]
End date of the data, in YYYY-MM-DD format.
limit : Optional[int]
The number of data entries to return.
provider : Optional[Literal['fred', 'intrinio']]
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.
frequency : Literal[None, 'a', 'q', 'm', 'w', 'd', 'wef', 'weth', 'wew', 'wetu', 'wem', 'wesu', 'wesa', 'bwew', 'bwem']
Frequency aggregation to convert high frequency data to lower frequency.
None = No change
a = Annual
q = Quarterly
m = Monthly
w = Weekly
d = Daily
wef = Weekly, Ending Friday
weth = Weekly, Ending Thursday
wew = Weekly, Ending Wednesday
wetu = Weekly, Ending Tuesday
wem = Weekly, Ending Monday
wesu = Weekly, Ending Sunday
wesa = Weekly, Ending Saturday
bwew = Biweekly, Ending Wednesday
bwem = Biweekly, Ending Monday
(provider: fred)
aggregation_method : Literal[None, 'avg', 'sum', 'eop']
A key that indicates the aggregation method used for frequency aggregation.
This parameter has no affect if the frequency parameter is not set.
avg = Average
sum = Sum
eop = End of Period
(provider: fred)
transform : Literal[None, 'chg', 'ch1', 'pch', 'pc1', 'pca', 'cch', 'cca', 'log']
Transformation type
None = No transformation
chg = Change
ch1 = Change from Year Ago
pch = Percent Change
pc1 = Percent Change from Year Ago
pca = Compounded Annual Rate of Change
cch = Continuously Compounded Rate of Change
cca = Continuously Compounded Annual Rate of Change
log = Natural Log
(provider: fred)
all_pages : Optional[bool]
Returns all pages of data from the API call at once. (provider: intrinio)
sleep : Optional[float]
Time to sleep between requests to avoid rate limiting. (provider: intrinio)
Returns
-------
OBBject
results : List[FredSeries]
Serializable results.
provider : Optional[Literal['fred', 'intrinio']]
Provider name.
warnings : Optional[List[Warning_]]
List of warnings.
chart : Optional[Chart]
Chart object.
extra: Dict[str, Any]
Extra info.
FredSeries
----------
date : date
The date of the data.
value : Optional[float]
Value of the index. (provider: intrinio)
Example
-------
>>> from openbb import obb
>>> obb.economy.fred_series(symbol="AAPL", limit=100000)
""" # noqa: E501
inputs = filter_inputs(
provider_choices={
"provider": provider,
},
standard_params={
"symbol": ",".join(symbol) if isinstance(symbol, list) else symbol,
"start_date": start_date,
"end_date": end_date,
"limit": limit,
},
extra_params=kwargs,
)
return self._run(
"/economy/fred_series",
**inputs,
)
@property
def gdp(self): # route = "/economy/gdp"
from . import economy_gdp

View File

@@ -15,7 +15,6 @@ class ROUTER_equity(Container):
"""/equity
/calendar
/compare
/darkpool
/discovery
/estimates
/fundamental
@@ -45,14 +44,6 @@ class ROUTER_equity(Container):
return equity_compare.ROUTER_equity_compare(command_runner=self._command_runner)
@property
def darkpool(self): # route = "/equity/darkpool"
from . import equity_darkpool
return equity_darkpool.ROUTER_equity_darkpool(
command_runner=self._command_runner
)
@property
def discovery(self): # route = "/equity/discovery"
from . import equity_discovery

View File

@@ -17,7 +17,7 @@ class ROUTER_equity_calendar(Container):
dividend
earnings
ipo
split
splits
"""
def __repr__(self) -> str:
@@ -38,7 +38,7 @@ class ROUTER_equity_calendar(Container):
description="End date of the data, in YYYY-MM-DD format."
),
] = None,
provider: Optional[Literal["fmp", "intrinio"]] = None,
provider: Optional[Literal["fmp"]] = None,
**kwargs
) -> OBBject[List[Data]]:
"""Upcoming and Historical Dividend Calendar.
@@ -49,21 +49,17 @@ class ROUTER_equity_calendar(Container):
Start date of the data, in YYYY-MM-DD format.
end_date : Optional[datetime.date]
End date of the data, in YYYY-MM-DD format.
provider : Optional[Literal['fmp', 'intrinio']]
provider : Optional[Literal['fmp']]
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 to get data for. (provider: intrinio)
limit : Optional[int]
The number of data entries to return. (provider: intrinio)
Returns
-------
OBBject
results : List[CalendarDividend]
Serializable results.
provider : Optional[Literal['fmp', 'intrinio']]
provider : Optional[Literal['fmp']]
Provider name.
warnings : Optional[List[Warning_]]
List of warnings.
@@ -92,12 +88,6 @@ class ROUTER_equity_calendar(Container):
The adjusted-dividend amount. (provider: fmp)
label : Optional[str]
Ex-dividend date formatted for display. (provider: fmp)
factor : Optional[float]
factor by which to multiply stock prices before this date, in order to calculate historically-adjusted stock prices. (provider: intrinio)
dividend_currency : Optional[str]
The currency of the dividend. (provider: intrinio)
split_ratio : Optional[float]
The ratio of the stock split, if a stock split occurred. (provider: intrinio)
Example
-------
@@ -383,7 +373,7 @@ class ROUTER_equity_calendar(Container):
)
@validate
def split(
def splits(
self,
start_date: Annotated[
Union[datetime.date, None, str],
@@ -443,7 +433,7 @@ class ROUTER_equity_calendar(Container):
Example
-------
>>> from openbb import obb
>>> obb.equity.calendar.split()
>>> obb.equity.calendar.splits()
""" # noqa: E501
inputs = filter_inputs(
@@ -458,6 +448,6 @@ class ROUTER_equity_calendar(Container):
)
return self._run(
"/equity/calendar/split",
"/equity/calendar/splits",
**inputs,
)

View File

@@ -1,94 +0,0 @@
### THIS FILE IS AUTO-GENERATED. DO NOT EDIT. ###
from typing import List, Literal, Optional, Union
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.decorators import validate
from openbb_core.app.static.filters import filter_inputs
from openbb_core.provider.abstract.data import Data
from typing_extensions import Annotated
class ROUTER_equity_darkpool(Container):
"""/equity/darkpool
otc
"""
def __repr__(self) -> str:
return self.__doc__ or ""
@validate
def otc(
self,
symbol: Annotated[
Union[str, List[str]],
OpenBBCustomParameter(description="Symbol to get data for."),
] = None,
provider: Optional[Literal["finra"]] = None,
**kwargs
) -> OBBject[List[Data]]:
"""Weekly aggregate trade data for Over The Counter deals.
ATS and non-ATS trading data for each ATS/firm
with trade reporting obligations under FINRA rules.
Parameters
----------
symbol : str
Symbol to get data for.
provider : Optional[Literal['finra']]
The provider to use for the query, by default None.
If None, the provider specified in defaults is selected or 'finra' if there is
no default.
tier : Literal['T1', 'T2', 'OTCE']
"T1 - Securities included in the S&P 500, Russell 1000 and selected exchange-traded products;
T2 - All other NMS stocks; OTC - Over-the-Counter equity securities (provider: finra)
is_ats : bool
ATS data if true, NON-ATS otherwise (provider: finra)
Returns
-------
OBBject
results : List[OTCAggregate]
Serializable results.
provider : Optional[Literal['finra']]
Provider name.
warnings : Optional[List[Warning_]]
List of warnings.
chart : Optional[Chart]
Chart object.
extra: Dict[str, Any]
Extra info.
OTCAggregate
------------
update_date : date
Most recent date on which total trades is updated based on data received from each ATS/OTC.
share_quantity : float
Aggregate weekly total number of shares reported by each ATS for the Symbol.
trade_quantity : float
Aggregate weekly total number of trades reported by each ATS for the Symbol
Example
-------
>>> from openbb import obb
>>> obb.equity.darkpool.otc()
""" # noqa: E501
inputs = filter_inputs(
provider_choices={
"provider": provider,
},
standard_params={
"symbol": ",".join(symbol) if isinstance(symbol, list) else symbol,
},
extra_params=kwargs,
)
return self._run(
"/equity/darkpool/otc",
**inputs,
)

View File

@@ -743,7 +743,7 @@ class ROUTER_equity_fundamental(Container):
Union[str, List[str]],
OpenBBCustomParameter(description="Symbol to get data for."),
],
provider: Optional[Literal["fmp"]] = None,
provider: Optional[Literal["fmp", "intrinio"]] = None,
**kwargs
) -> OBBject[List[Data]]:
"""Historical Dividends. Historical dividends data for a given company.
@@ -752,17 +752,19 @@ class ROUTER_equity_fundamental(Container):
----------
symbol : str
Symbol to get data for.
provider : Optional[Literal['fmp']]
provider : Optional[Literal['fmp', 'intrinio']]
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.
limit : Optional[int]
The number of data entries to return. (provider: intrinio)
Returns
-------
OBBject
results : List[HistoricalDividends]
Serializable results.
provider : Optional[Literal['fmp']]
provider : Optional[Literal['fmp', 'intrinio']]
Provider name.
warnings : Optional[List[Warning_]]
List of warnings.
@@ -775,18 +777,24 @@ class ROUTER_equity_fundamental(Container):
-------------------
date : date
The date of the data.
label : str
Label of the historical dividends.
adj_dividend : float
Adjusted dividend of the historical dividends.
dividend : float
Dividend of the historical dividends.
label : Optional[str]
Label of the historical dividends. (provider: fmp)
adj_dividend : Optional[float]
Adjusted dividend of the historical dividends. (provider: fmp)
record_date : Optional[date]
Record date of the historical dividends.
Record date of the historical dividends. (provider: fmp)
payment_date : Optional[date]
Payment date of the historical dividends.
Payment date of the historical dividends. (provider: fmp)
declaration_date : Optional[date]
Declaration date of the historical dividends.
Declaration date of the historical dividends. (provider: fmp)
factor : Optional[float]
factor by which to multiply stock prices before this date, in order to calculate historically-adjusted stock prices. (provider: intrinio)
dividend_currency : Optional[str]
The currency of the dividend. (provider: intrinio)
split_ratio : Optional[float]
The ratio of the stock split, if a stock split occurred. (provider: intrinio)
Example
-------
@@ -2055,10 +2063,6 @@ class ROUTER_equity_fundamental(Container):
Union[str, List[str]],
OpenBBCustomParameter(description="Symbol to get data for."),
],
limit: Annotated[
Optional[int],
OpenBBCustomParameter(description="The number of data entries to return."),
] = 100,
provider: Optional[Literal["fmp"]] = None,
**kwargs
) -> OBBject[List[Data]]:
@@ -2068,8 +2072,6 @@ class ROUTER_equity_fundamental(Container):
----------
symbol : str
Symbol to get data for.
limit : Optional[int]
The number of data entries to return.
provider : Optional[Literal['fmp']]
The provider to use for the query, by default None.
If None, the provider specified in defaults is selected or 'fmp' if there is
@@ -2091,6 +2093,8 @@ class ROUTER_equity_fundamental(Container):
EquityValuationMultiples
------------------------
symbol : str
Symbol representing the entity requested in the data.
revenue_per_share_ttm : Optional[float]
Revenue per share calculated as trailing twelve months.
net_income_per_share_ttm : Optional[float]
@@ -2215,7 +2219,7 @@ class ROUTER_equity_fundamental(Container):
Example
-------
>>> from openbb import obb
>>> obb.equity.fundamental.multiples(symbol="AAPL", limit=100)
>>> obb.equity.fundamental.multiples(symbol="AAPL")
""" # noqa: E501
inputs = filter_inputs(
@@ -2224,7 +2228,6 @@ class ROUTER_equity_fundamental(Container):
},
standard_params={
"symbol": ",".join(symbol) if isinstance(symbol, list) else symbol,
"limit": limit,
},
extra_params=kwargs,
)

View File

@@ -33,7 +33,7 @@ class ROUTER_equity_ownership(Container):
limit: Annotated[
int,
OpenBBCustomParameter(description="The number of data entries to return."),
] = 100,
] = 500,
provider: Optional[Literal["fmp", "intrinio"]] = None,
**kwargs
) -> OBBject[List[Data]]:
@@ -49,7 +49,7 @@ class ROUTER_equity_ownership(Container):
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.
transaction_type : Optional[Union[List[Literal['A-Award', 'C-Conversion', 'D-Return', 'E-ExpireShort', 'F-InKind', 'G-Gift', 'H-ExpireLong', 'I-Discretionary', 'J-Other', 'L-Small', 'M-Exempt', 'O-OutOfTheMoney', 'P-Purchase', 'S-Sale', 'U-Tender', 'W-Will', 'X-InTheMoney', 'Z-Trust']], str]]
transaction_type : Literal[None, 'award', 'conversion', 'return', 'expire_short', 'in_kind', 'gift', 'expire_long', 'discretionary', 'other', 'small', 'exempt', 'otm', 'purchase', 'sale', 'tender', 'will', 'itm', 'trust']
Type of the transaction. (provider: fmp)
start_date : Optional[datetime.date]
Start date of the data, in YYYY-MM-DD format. (provider: intrinio)
@@ -138,7 +138,7 @@ class ROUTER_equity_ownership(Container):
Example
-------
>>> from openbb import obb
>>> obb.equity.ownership.insider_trading(symbol="AAPL", limit=100)
>>> obb.equity.ownership.insider_trading(symbol="AAPL", limit=500)
""" # noqa: E501
inputs = filter_inputs(

View File

@@ -14,7 +14,6 @@ from typing_extensions import Annotated
class ROUTER_equity_shorts(Container):
"""/equity/shorts
fails_to_deliver
short_interest
"""
def __repr__(self) -> str:
@@ -99,82 +98,3 @@ class ROUTER_equity_shorts(Container):
"/equity/shorts/fails_to_deliver",
**inputs,
)
@validate
def short_interest(
self,
symbol: Annotated[
Union[str, List[str]],
OpenBBCustomParameter(description="Symbol to get data for."),
] = None,
provider: Optional[Literal["finra"]] = None,
**kwargs
) -> OBBject[List[Data]]:
"""Get reported Short Volume and Days to Cover data.
Parameters
----------
symbol : str
Symbol to get data for.
provider : Optional[Literal['finra']]
The provider to use for the query, by default None.
If None, the provider specified in defaults is selected or 'finra' if there is
no default.
Returns
-------
OBBject
results : List[EquityShortInterest]
Serializable results.
provider : Optional[Literal['finra']]
Provider name.
warnings : Optional[List[Warning_]]
List of warnings.
chart : Optional[Chart]
Chart object.
extra: Dict[str, Any]
Extra info.
EquityShortInterest
-------------------
settlement_date : date
The mid-month short interest report is based on short positions held by members on the settlement date of the 15th of each month. If the 15th falls on a weekend or another non-settlement date, the designated settlement date will be the previous business day on which transactions settled. The end-of-month short interest report is based on short positions held on the last business day of the month on which transactions settle. Once the short position reports are received, the short interest data is compiled for each equity security and provided for publication on the 7th business day after the reporting settlement date.
symbol : str
Symbol representing the entity requested in the data.
issue_name : str
Unique identifier of the issue.
market_class : str
Primary listing market.
current_short_position : float
The total number of shares in the issue that are reflected on the books and records of the reporting firms as short as defined by Rule 200 of Regulation SHO as of the current cycle’s designated settlement date.
previous_short_position : float
The total number of shares in the issue that are reflected on the books and records of the reporting firms as short as defined by Rule 200 of Regulation SHO as of the previous cycle’s designated settlement date.
avg_daily_volume : float
Total Volume or Adjusted Volume in case of splits / Total trade days between (previous settlement date + 1) to (current settlement date). The NULL values are translated as zero.
days_to_cover : float
The number of days of average share volume it would require to buy all of the shares that were sold short during the reporting cycle. Formula: Short Interest / Average Daily Share Volume, Rounded to Hundredths. 1.00 will be displayed for any values equal or less than 1 (i.e., Average Daily Share is equal to or greater than Short Interest). N/A will be displayed If the days to cover is Zero (i.e., Average Daily Share Volume is Zero).
change : float
Change in Shares Short from Previous Cycle: Difference in short interest between the current cycle and the previous cycle.
change_pct : float
Change in Shares Short from Previous Cycle as a percent.
Example
-------
>>> from openbb import obb
>>> obb.equity.shorts.short_interest()
""" # noqa: E501
inputs = filter_inputs(
provider_choices={
"provider": provider,
},
standard_params={
"symbol": ",".join(symbol) if isinstance(symbol, list) else symbol,
},
extra_params=kwargs,
)
return self._run(
"/equity/shorts/short_interest",
**inputs,
)

View File

@@ -14,7 +14,6 @@ from typing_extensions import Annotated
class ROUTER_etf(Container):
"""/etf
countries
/discovery
holdings
holdings_date
holdings_performance
@@ -88,12 +87,6 @@ class ROUTER_etf(Container):
**inputs,
)
@property
def discovery(self): # route = "/etf/discovery"
from . import etf_discovery
return etf_discovery.ROUTER_etf_discovery(command_runner=self._command_runner)
@validate
def holdings(
self,

View File

@@ -1,320 +0,0 @@
### THIS FILE IS AUTO-GENERATED. DO NOT EDIT. ###
from typing import List, Literal, Optional
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.decorators import validate
from openbb_core.app.static.filters import filter_inputs
from openbb_core.provider.abstract.data import Data
from typing_extensions import Annotated
class ROUTER_etf_discovery(Container):
"""/etf/discovery
active
gainers
losers
"""
def __repr__(self) -> str:
return self.__doc__ or ""
@validate
def active(
self,
sort: Annotated[
str,
OpenBBCustomParameter(
description="Sort order. Possible values: 'asc', 'desc'. Default: 'desc'."
),
] = "desc",
limit: Annotated[
int,
OpenBBCustomParameter(description="The number of data entries to return."),
] = 10,
provider: Optional[Literal["wsj"]] = None,
**kwargs
) -> OBBject[List[Data]]:
"""Get the most active ETFs.
Parameters
----------
sort : str
Sort order. Possible values: 'asc', 'desc'. Default: 'desc'.
limit : int
The number of data entries to return.
provider : Optional[Literal['wsj']]
The provider to use for the query, by default None.
If None, the provider specified in defaults is selected or 'wsj' if there is
no default.
Returns
-------
OBBject
results : List[ETFActive]
Serializable results.
provider : Optional[Literal['wsj']]
Provider name.
warnings : Optional[List[Warning_]]
List of warnings.
chart : Optional[Chart]
Chart object.
extra: Dict[str, Any]
Extra info.
ETFActive
---------
symbol : str
Symbol representing the entity requested in the data.
name : str
Name of the entity.
last_price : float
Last price.
percent_change : float
Percent change.
net_change : float
Net change.
volume : float
The trading volume.
date : date
The date of the data.
country : Optional[str]
Country of the entity. (provider: wsj)
mantissa : Optional[int]
Mantissa. (provider: wsj)
type : Optional[str]
Type of the entity. (provider: wsj)
formatted_price : Optional[str]
Formatted price. (provider: wsj)
formatted_volume : Optional[str]
Formatted volume. (provider: wsj)
formatted_price_change : Optional[str]
Formatted price change. (provider: wsj)
formatted_percent_change : Optional[str]
Formatted percent change. (provider: wsj)
url : Optional[str]
The source url. (provider: wsj)
Example
-------
>>> from openbb import obb
>>> obb.etf.discovery.active(sort="desc", limit=10)
""" # noqa: E501
inputs = filter_inputs(
provider_choices={
"provider": provider,
},
standard_params={
"sort": sort,
"limit": limit,
},
extra_params=kwargs,
)
return self._run(
"/etf/discovery/active",
**inputs,
)
@validate
def gainers(
self,
sort: Annotated[
str,
OpenBBCustomParameter(
description="Sort order. Possible values: 'asc', 'desc'. Default: 'desc'."
),
] = "desc",
limit: Annotated[
int,
OpenBBCustomParameter(description="The number of data entries to return."),
] = 10,
provider: Optional[Literal["wsj"]] = None,
**kwargs
) -> OBBject[List[Data]]:
"""Get the top ETF gainers.
Parameters
----------
sort : str
Sort order. Possible values: 'asc', 'desc'. Default: 'desc'.
limit : int
The number of data entries to return.
provider : Optional[Literal['wsj']]
The provider to use for the query, by default None.
If None, the provider specified in defaults is selected or 'wsj' if there is
no default.
Returns
-------
OBBject
results : List[ETFGainers]
Serializable results.
provider : Optional[Literal['wsj']]
Provider name.
warnings : Optional[List[Warning_]]
List of warnings.
chart : Optional[Chart]
Chart object.
extra: Dict[str, Any]
Extra info.
ETFGainers
----------
symbol : str
Symbol representing the entity requested in the data.
name : str
Name of the entity.
last_price : float
Last price.
percent_change : float
Percent change.
net_change : float
Net change.
volume : float
The trading volume.
date : date
The date of the data.
bluegrass_channel : Optional[str]
Bluegrass channel. (provider: wsj)
country : Optional[str]
Country of the entity. (provider: wsj)
mantissa : Optional[int]
Mantissa. (provider: wsj)
type : Optional[str]
Type of the entity. (provider: wsj)
formatted_price : Optional[str]
Formatted price. (provider: wsj)
formatted_volume : Optional[str]
Formatted volume. (provider: wsj)
formatted_price_change : Optional[str]
Formatted price change. (provider: wsj)
formatted_percent_change : Optional[str]
Formatted percent change. (provider: wsj)
url : Optional[str]
The source url. (provider: wsj)
Example
-------
>>> from openbb import obb
>>> obb.etf.discovery.gainers(sort="desc", limit=10)
""" # noqa: E501
inputs = filter_inputs(
provider_choices={
"provider": provider,
},
standard_params={
"sort": sort,
"limit": limit,
},
extra_params=kwargs,
)
return self._run(
"/etf/discovery/gainers",
**inputs,
)
@validate
def losers(
self,
sort: Annotated[
str,
OpenBBCustomParameter(
description="Sort order. Possible values: 'asc', 'desc'. Default: 'desc'."
),
] = "desc",
limit: Annotated[
int,
OpenBBCustomParameter(description="The number of data entries to return."),
] = 10,
provider: Optional[Literal["wsj"]] = None,
**kwargs
) -> OBBject[List[Data]]:
"""Get the top ETF losers.
Parameters
----------
sort : str
Sort order. Possible values: 'asc', 'desc'. Default: 'desc'.
limit : int
The number of data entries to return.
provider : Optional[Literal['wsj']]
The provider to use for the query, by default None.
If None, the provider specified in defaults is selected or 'wsj' if there is
no default.
Returns
-------
OBBject
results : List[ETFLosers]
Serializable results.
provider : Optional[Literal['wsj']]
Provider name.
warnings : Optional[List[Warning_]]
List of warnings.
chart : Optional[Chart]
Chart object.
extra: Dict[str, Any]
Extra info.
ETFLosers
---------
symbol : str
Symbol representing the entity requested in the data.
name : str
Name of the entity.
last_price : float
Last price.
percent_change : float
Percent change.
net_change : float
Net change.
volume : float
The trading volume.
date : date
The date of the data.
bluegrass_channel : Optional[str]
Bluegrass channel. (provider: wsj)
country : Optional[str]
Country of the entity. (provider: wsj)
mantissa : Optional[int]
Mantissa. (provider: wsj)
type : Optional[str]
Type of the entity. (provider: wsj)
formatted_price : Optional[str]
Formatted price. (provider: wsj)
formatted_volume : Optional[str]
Formatted volume. (provider: wsj)
formatted_price_change : Optional[str]
Formatted price change. (provider: wsj)
formatted_percent_change : Optional[str]
Formatted percent change. (provider: wsj)
url : Optional[str]
The source url. (provider: wsj)
Example
-------
>>> from openbb import obb
>>> obb.etf.discovery.losers(sort="desc", limit=10)
""" # noqa: E501
inputs = filter_inputs(
provider_choices={
"provider": provider,
},
standard_params={
"sort": sort,
"limit": limit,
},
extra_params=kwargs,
)
return self._run(
"/etf/discovery/losers",
**inputs,
)

View File

@@ -1,28 +1,25 @@
{
"openbb_core_extension": [
"crypto@1.0.0b2",
"currency@1.0.0b2",
"derivatives@1.0.0b2",
"economy@1.0.0b2",
"equity@1.0.0b2",
"etf@1.0.0b2",
"fixedincome@1.0.0b2",
"index@1.0.0b2",
"news@1.0.0b2",
"regulators@1.0.0b2"
"crypto@1.0.0rc0",
"currency@1.0.0rc0",
"derivatives@1.0.0rc0",
"economy@1.0.0rc0",
"equity@1.0.0rc0",
"etf@1.0.0rc0",
"fixedincome@1.0.0rc0",
"index@1.0.0rc0",
"news@1.0.0rc0",
"regulators@1.0.0rc0"
],
"openbb_provider_extension": [
"benzinga@1.0.0b2",
"finra@1.0.0b2",
"fmp@1.0.0b2",
"fred@1.0.0b2",
"government_us@1.0.0b2",
"intrinio@1.0.0b2",
"oecd@1.0.0b2",
"polygon@1.0.0b2",
"sec@1.0.0b2",
"tiingo@1.0.0b2",
"tradingeconomics@1.0.0b2",
"wsj@1.0.0b2"
"benzinga@1.0.0rc0",
"fmp@1.0.0rc0",
"fred@1.0.0rc0",
"intrinio@1.0.0rc0",
"oecd@1.0.0rc0",
"polygon@1.0.0rc0",
"sec@1.0.0rc0",
"tiingo@1.0.0rc0",
"tradingeconomics@1.0.0rc0"
]
}

View File

@@ -14,7 +14,6 @@ from typing_extensions import Annotated
class ROUTER_fixedincome_government(Container):
"""/fixedincome/government
treasury_auctions
treasury_rates
us_yield_curve
"""
@@ -22,350 +21,6 @@ class ROUTER_fixedincome_government(Container):
def __repr__(self) -> str:
return self.__doc__ or ""
@validate
def treasury_auctions(
self,
security_type: Annotated[
Literal["Bill", "Note", "Bond", "CMB", "TIPS", "FRN", None],
OpenBBCustomParameter(
description="Used to only return securities of a particular type."
),
] = None,
cusip: Annotated[
Optional[str],
OpenBBCustomParameter(description="Filter securities by CUSIP."),
] = None,
page_size: Annotated[
Optional[int],
OpenBBCustomParameter(
description="Maximum number of results to return; you must also include pagenum when using pagesize."
),
] = None,
page_num: Annotated[
Optional[int],
OpenBBCustomParameter(
description="The first page number to display results for; used in combination with page size."
),
] = None,
start_date: Annotated[
Union[datetime.date, None, str],
OpenBBCustomParameter(
description="Start date of the data, in YYYY-MM-DD format. The default is 90 days ago."
),
] = None,
end_date: Annotated[
Union[datetime.date, None, str],
OpenBBCustomParameter(
description="End date of the data, in YYYY-MM-DD format. The default is today."
),
] = None,
provider: Optional[Literal["government_us"]] = None,
**kwargs
) -> OBBject[List[Data]]:
"""Government Treasury Auctions.
Parameters
----------
security_type : Literal['Bill', 'Note', 'Bond', 'CMB', 'TIPS', 'FRN', None]
Used to only return securities of a particular type.
cusip : Optional[str]
Filter securities by CUSIP.
page_size : Optional[int]
Maximum number of results to return; you must also include pagenum when using pagesize.
page_num : Optional[int]
The first page number to display results for; used in combination with page size.
start_date : Optional[datetime.date]
Start date of the data, in YYYY-MM-DD format. The default is 90 days ago.
end_date : Optional[datetime.date]
End date of the data, in YYYY-MM-DD format. The default is today.
provider : Optional[Literal['government_us']]
The provider to use for the query, by default None.
If None, the provider specified in defaults is selected or 'government_us' if there is
no default.
Returns
-------
OBBject
results : List[TreasuryAuctions]
Serializable results.
provider : Optional[Literal['government_us']]
Provider name.
warnings : Optional[List[Warning_]]
List of warnings.
chart : Optional[Chart]
Chart object.
extra: Dict[str, Any]
Extra info.
TreasuryAuctions
----------------
cusip : str
CUSIP of the Security.
issue_date : date
The issue date of the security.
security_type : Literal['Bill', 'Note', 'Bond', 'CMB', 'TIPS', 'FRN']
The type of security.
security_term : str
The term of the security.
maturity_date : date
The maturity date of the security.
interest_rate : Optional[float]
The interest rate of the security.
cpi_on_issue_date : Optional[float]
Reference CPI rate on the issue date of the security.
cpi_on_dated_date : Optional[float]
Reference CPI rate on the dated date of the security.
announcement_date : Optional[date]
The announcement date of the security.
auction_date : Optional[date]
The auction date of the security.
auction_date_year : Optional[int]
The auction date year of the security.
dated_date : Optional[date]
The dated date of the security.
first_payment_date : Optional[date]
The first payment date of the security.
accrued_interest_per_100 : Optional[float]
Accrued interest per $100.
accrued_interest_per_1000 : Optional[float]
Accrued interest per $1000.
adjusted_accrued_interest_per_100 : Optional[float]
Adjusted accrued interest per $100.
adjusted_accrued_interest_per_1000 : Optional[float]
Adjusted accrued interest per $1000.
adjusted_price : Optional[float]
Adjusted price.
allocation_percentage : Optional[float]
Allocation percentage, as normalized percentage points.
allocation_percentage_decimals : Optional[float]
The number of decimals in the Allocation percentage.
announced_cusip : Optional[str]
The announced CUSIP of the security.
auction_format : Optional[str]
The auction format of the security.
avg_median_discount_rate : Optional[float]
The average median discount rate of the security.
avg_median_investment_rate : Optional[float]
The average median investment rate of the security.
avg_median_price : Optional[float]
The average median price paid for the security.
avg_median_discount_margin : Optional[float]
The average median discount margin of the security.
avg_median_yield : Optional[float]
The average median yield of the security.
back_dated : Optional[Literal['Yes', 'No']]
Whether the security is back dated.
back_dated_date : Optional[date]
The back dated date of the security.
bid_to_cover_ratio : Optional[float]
The bid to cover ratio of the security.
call_date : Optional[date]
The call date of the security.
callable : Optional[Literal['Yes', 'No']]
Whether the security is callable.
called_date : Optional[date]
The called date of the security.
cash_management_bill : Optional[Literal['Yes', 'No']]
Whether the security is a cash management bill.
closing_time_competitive : Optional[str]
The closing time for competitive bids on the security.
closing_time_non_competitive : Optional[str]
The closing time for non-competitive bids on the security.
competitive_accepted : Optional[int]
The accepted value for competitive bids on the security.
competitive_accepted_decimals : Optional[int]
The number of decimals in the Competitive Accepted.
competitive_tendered : Optional[int]
The tendered value for competitive bids on the security.
competitive_tenders_accepted : Optional[Literal['Yes', 'No']]
Whether competitive tenders are accepted on the security.
corp_us_cusip : Optional[str]
The CUSIP of the security.
cpi_base_reference_period : Optional[str]
The CPI base reference period of the security.
currently_outstanding : Optional[int]
The currently outstanding value on the security.
direct_bidder_accepted : Optional[int]
The accepted value from direct bidders on the security.
direct_bidder_tendered : Optional[int]
The tendered value from direct bidders on the security.
est_amount_of_publicly_held_maturing_security : Optional[int]
The estimated amount of publicly held maturing securities on the security.
fima_included : Optional[Literal['Yes', 'No']]
Whether the security is included in the FIMA (Foreign and International Money Authorities).
fima_non_competitive_accepted : Optional[int]
The non-competitive accepted value on the security from FIMAs.
fima_non_competitive_tendered : Optional[int]
The non-competitive tendered value on the security from FIMAs.
first_interest_period : Optional[str]
The first interest period of the security.
first_interest_payment_date : Optional[date]
The first interest payment date of the security.
floating_rate : Optional[Literal['Yes', 'No']]
Whether the security is a floating rate.
frn_index_determination_date : Optional[date]
The FRN index determination date of the security.
frn_index_determination_rate : Optional[float]
The FRN index determination rate of the security.
high_discount_rate : Optional[float]
The high discount rate of the security.
high_investment_rate : Optional[float]
The high investment rate of the security.
high_price : Optional[float]
The high price of the security at auction.
high_discount_margin : Optional[float]
The high discount margin of the security.
high_yield : Optional[float]
The high yield of the security at auction.
index_ratio_on_issue_date : Optional[float]
The index ratio on the issue date of the security.
indirect_bidder_accepted : Optional[int]
The accepted value from indirect bidders on the security.
indirect_bidder_tendered : Optional[int]
The tendered value from indirect bidders on the security.
interest_payment_frequency : Optional[str]
The interest payment frequency of the security.
low_discount_rate : Optional[float]
The low discount rate of the security.
low_investment_rate : Optional[float]
The low investment rate of the security.
low_price : Optional[float]
The low price of the security at auction.
low_discount_margin : Optional[float]
The low discount margin of the security.
low_yield : Optional[float]
The low yield of the security at auction.
maturing_date : Optional[date]
The maturing date of the security.
max_competitive_award : Optional[int]
The maximum competitive award at auction.
max_non_competitive_award : Optional[int]
The maximum non-competitive award at auction.
max_single_bid : Optional[int]
The maximum single bid at auction.
min_bid_amount : Optional[int]
The minimum bid amount at auction.
min_strip_amount : Optional[int]
The minimum strip amount at auction.
min_to_issue : Optional[int]
The minimum to issue at auction.
multiples_to_bid : Optional[int]
The multiples to bid at auction.
multiples_to_issue : Optional[int]
The multiples to issue at auction.
nlp_exclusion_amount : Optional[int]
The NLP exclusion amount at auction.
nlp_reporting_threshold : Optional[int]
The NLP reporting threshold at auction.
non_competitive_accepted : Optional[int]
The accepted value from non-competitive bidders on the security.
non_competitive_tenders_accepted : Optional[Literal['Yes', 'No']]
Whether or not the auction accepted non-competitive tenders.
offering_amount : Optional[int]
The offering amount at auction.
original_cusip : Optional[str]
The original CUSIP of the security.
original_dated_date : Optional[date]
The original dated date of the security.
original_issue_date : Optional[date]
The original issue date of the security.
original_security_term : Optional[str]
The original term of the security.
pdf_announcement : Optional[str]
The PDF filename for the announcement of the security.
pdf_competitive_results : Optional[str]
The PDF filename for the competitive results of the security.
pdf_non_competitive_results : Optional[str]
The PDF filename for the non-competitive results of the security.
pdf_special_announcement : Optional[str]
The PDF filename for the special announcements.
price_per_100 : Optional[float]
The price per 100 of the security.
primary_dealer_accepted : Optional[int]
The primary dealer accepted value on the security.
primary_dealer_tendered : Optional[int]
The primary dealer tendered value on the security.
reopening : Optional[Literal['Yes', 'No']]
Whether or not the auction was reopened.
security_term_day_month : Optional[str]
The security term in days or months.
security_term_week_year : Optional[str]
The security term in weeks or years.
series : Optional[str]
The series name of the security.
soma_accepted : Optional[int]
The SOMA accepted value on the security.
soma_holdings : Optional[int]
The SOMA holdings on the security.
soma_included : Optional[Literal['Yes', 'No']]
Whether or not the SOMA (System Open Market Account) was included on the security.
soma_tendered : Optional[int]
The SOMA tendered value on the security.
spread : Optional[float]
The spread on the security.
standard_payment_per_1000 : Optional[float]
The standard payment per 1000 of the security.
strippable : Optional[Literal['Yes', 'No']]
Whether or not the security is strippable.
term : Optional[str]
The term of the security.
tiin_conversion_factor_per_1000 : Optional[float]
The TIIN conversion factor per 1000 of the security.
tips : Optional[Literal['Yes', 'No']]
Whether or not the security is TIPS.
total_accepted : Optional[int]
The total accepted value at auction.
total_tendered : Optional[int]
The total tendered value at auction.
treasury_retail_accepted : Optional[int]
The accepted value on the security from retail.
treasury_retail_tenders_accepted : Optional[Literal['Yes', 'No']]
Whether or not the tender offers from retail are accepted
type : Optional[str]
The type of issuance. This might be different than the security type.
unadjusted_accrued_interest_per_1000 : Optional[float]
The unadjusted accrued interest per 1000 of the security.
unadjusted_price : Optional[float]
The unadjusted price of the security.
updated_timestamp : Optional[datetime]
The updated timestamp of the security.
xml_announcement : Optional[str]
The XML filename for the announcement of the security.
xml_competitive_results : Optional[str]
The XML filename for the competitive results of the security.
xml_special_announcement : Optional[str]
The XML filename for special announcements.
tint_cusip1 : Optional[str]
Tint CUSIP 1.
tint_cusip2 : Optional[str]
Tint CUSIP 2.
Example
-------
>>> from openbb import obb
>>> obb.fixedincome.government.treasury_auctions()
""" # noqa: E501
inputs = filter_inputs(
provider_choices={
"provider": provider,
},
standard_params={
"security_type": security_type,
"cusip": cusip,
"page_size": page_size,
"page_num": page_num,
"start_date": start_date,
"end_date": end_date,
},
extra_params=kwargs,
)
return self._run(
"/fixedincome/government/treasury_auctions",
**inputs,
)
@validate
def treasury_rates(
self,

View File

@@ -16,7 +16,6 @@ class ROUTER_index(Container):
"""/index
available
constituents
fred
market
"""
@@ -157,100 +156,6 @@ class ROUTER_index(Container):
**inputs,
)
@validate
def fred(
self,
symbol: Annotated[
Union[str, List[str]],
OpenBBCustomParameter(description="Symbol to get data for."),
],
start_date: Annotated[
Union[datetime.date, None, str],
OpenBBCustomParameter(
description="Start date of the data, in YYYY-MM-DD format."
),
] = None,
end_date: Annotated[
Union[datetime.date, None, str],
OpenBBCustomParameter(
description="End date of the data, in YYYY-MM-DD format."
),
] = None,
limit: Annotated[
Optional[int],
OpenBBCustomParameter(description="The number of data entries to return."),
] = 100,
provider: Optional[Literal["intrinio"]] = None,
**kwargs
) -> OBBject[List[Data]]:
"""Historical Fred Indices. Close values for selected Fred indices.
Parameters
----------
symbol : str
Symbol to get data for.
start_date : Optional[datetime.date]
Start date of the data, in YYYY-MM-DD format.
end_date : Optional[datetime.date]
End date of the data, in YYYY-MM-DD format.
limit : Optional[int]
The number of data entries to return.
provider : Optional[Literal['intrinio']]
The provider to use for the query, by default None.
If None, the provider specified in defaults is selected or 'intrinio' if there is
no default.
next_page : Optional[str]
Token to get the next page of data from a previous API call. (provider: intrinio)
all_pages : Optional[bool]
Returns all pages of data from the API call at once. (provider: intrinio)
sleep : Optional[float]
Time to sleep between requests to avoid rate limiting. (provider: intrinio)
Returns
-------
OBBject
results : List[FredIndices]
Serializable results.
provider : Optional[Literal['intrinio']]
Provider name.
warnings : Optional[List[Warning_]]
List of warnings.
chart : Optional[Chart]
Chart object.
extra: Dict[str, Any]
Extra info.
FredIndices
-----------
date : date
The date of the data.
value : Optional[float]
Value of the index.
Example
-------
>>> from openbb import obb
>>> obb.index.fred(symbol="SPX", limit=100)
""" # noqa: E501
inputs = filter_inputs(
provider_choices={
"provider": provider,
},
standard_params={
"symbol": ",".join(symbol) if isinstance(symbol, list) else symbol,
"start_date": start_date,
"end_date": end_date,
"limit": limit,
},
extra_params=kwargs,
)
return self._run(
"/index/fred",
**inputs,
)
@validate
def market(
self,

View File

@@ -15,6 +15,8 @@
"economy": "/economy",
"economy_calendar": "/economy/calendar",
"economy_cpi": "/economy/cpi",
"economy_fred_search": "/economy/fred_search",
"economy_fred_series": "/economy/fred_series",
"economy_gdp": "/economy/gdp",
"economy_gdp_forecast": "/economy/gdp/forecast",
"economy_gdp_nominal": "/economy/gdp/nominal",
@@ -25,11 +27,9 @@
"equity_calendar_dividend": "/equity/calendar/dividend",
"equity_calendar_earnings": "/equity/calendar/earnings",
"equity_calendar_ipo": "/equity/calendar/ipo",
"equity_calendar_split": "/equity/calendar/split",
"equity_calendar_splits": "/equity/calendar/splits",
"equity_compare": "/equity/compare",
"equity_compare_peers": "/equity/compare/peers",
"equity_darkpool": "/equity/darkpool",
"equity_darkpool_otc": "/equity/darkpool/otc",
"equity_discovery": "/equity/discovery",
"equity_discovery_filings": "/equity/discovery/filings",
"equity_estimates": "/equity/estimates",
@@ -77,13 +77,8 @@
"equity_search": "/equity/search",
"equity_shorts": "/equity/shorts",
"equity_shorts_fails_to_deliver": "/equity/shorts/fails_to_deliver",
"equity_shorts_short_interest": "/equity/shorts/short_interest",
"etf": "/etf",
"etf_countries": "/etf/countries",
"etf_discovery": "/etf/discovery",
"etf_discovery_active": "/etf/discovery/active",
"etf_discovery_gainers": "/etf/discovery/gainers",
"etf_discovery_losers": "/etf/discovery/losers",
"etf_holdings": "/etf/holdings",
"etf_holdings_date": "/etf/holdings_date",
"etf_holdings_performance": "/etf/holdings_performance",
@@ -99,7 +94,6 @@
"fixedincome_corporate_moody": "/fixedincome/corporate/moody",
"fixedincome_corporate_spot_rates": "/fixedincome/corporate/spot_rates",
"fixedincome_government": "/fixedincome/government",
"fixedincome_government_treasury_auctions": "/fixedincome/government/treasury_auctions",
"fixedincome_government_treasury_rates": "/fixedincome/government/treasury_rates",
"fixedincome_government_us_yield_curve": "/fixedincome/government/us_yield_curve",
"fixedincome_rate": "/fixedincome/rate",
@@ -119,7 +113,6 @@
"index": "/index",
"index_available": "/index/available",
"index_constituents": "/index/constituents",
"index_fred": "/index/fred",
"index_market": "/index/market",
"news": "/news",
"news_company": "/news/company",

View File

@@ -103,6 +103,8 @@ class ROUTER_news(Container):
CompanyNews
-----------
symbols : str
Here it is a separated list of symbols.
date : datetime
The date of the data. Here it is the date of the news.
title : str
@@ -133,8 +135,6 @@ class ROUTER_news(Container):
Tags associated with the news. (provider: benzinga, tiingo)
updated : Optional[datetime]
Updated date of the news. (provider: benzinga)
symbol : Optional[str]
Ticker of the fetched news. (provider: fmp)
site : Optional[str]
Name of the news source. (provider: fmp, tiingo)
amp_url : Optional[str]
@@ -145,10 +145,6 @@ class ROUTER_news(Container):
Keywords in the article (provider: polygon)
publisher : Optional[openbb_polygon.models.company_news.PolygonPublisher]
Publisher of the article. (provider: polygon)
tickers : Optional[List[str]]
Tickers covered in the article. (provider: polygon)
symbols : Optional[str]
Ticker tagged in the fetched news. (provider: tiingo)
article_id : Optional[int]
Unique ID of the news article. (provider: tiingo)
crawl_date : Optional[datetime]