Skip to content

Commit

Permalink
static files
Browse files Browse the repository at this point in the history
  • Loading branch information
the-praxs committed Aug 28, 2023
1 parent 748b640 commit 172a923
Show file tree
Hide file tree
Showing 2 changed files with 74 additions and 30 deletions.
6 changes: 4 additions & 2 deletions openbb_sdk/openbb/package/news.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ def __repr__(self) -> str:
def globalnews(
self,
page: Annotated[
Optional[pydantic.types.NonNegativeInt],
pydantic.types.NonNegativeInt,
OpenBBCustomParameter(description="Page of the global news."),
] = 0,
chart: bool = False,
Expand All @@ -37,7 +37,7 @@ def globalnews(
Parameters
----------
page : Optional[pydantic.types.NonNegativeInt]
page : NonNegativeInt
Page of the global news.
chart : bool
Whether to create a chart or not, by default False.
Expand Down Expand Up @@ -75,6 +75,8 @@ def globalnews(
Authors of the news to retrieve. (provider: benzinga)
content_types : Optional[str]
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 : Optional[int]
The number of data entries to return. (provider: intrinio)
all_pages : Optional[bool]
Expand Down
98 changes: 70 additions & 28 deletions openbb_sdk/openbb/package/stocks.py
Original file line number Diff line number Diff line change
Expand Up @@ -712,7 +712,7 @@ def quote(
OpenBBCustomParameter(description="Symbol to get data for."),
],
chart: bool = False,
provider: Optional[Literal["fmp"]] = None,
provider: Optional[Literal["fmp", "intrinio"]] = None,
**kwargs
) -> OBBject[List]:
"""Load stock data for a specific ticker.
Expand All @@ -723,17 +723,19 @@ def quote(
Symbol to get data for.
chart : bool
Whether to create a chart or not, by default False.
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.
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 : Optional[Literal['fmp', 'intrinio']]
Provider name.
warnings : Optional[List[Warning_]]
List of warnings.
Expand All @@ -744,50 +746,90 @@ def quote(
StockQuote
----------
day_low : Optional[float]
Lowest price of the stock in the current trading day.
day_high : Optional[float]
Highest price of the stock in the current trading day.
date : Optional[datetime]
Timestamp of the stock quote.
symbol : Optional[str]
Symbol to get data for.
Symbol of the company. (provider: fmp)
name : Optional[str]
Name of the company.
Name of the company. (provider: fmp)
price : Optional[float]
Current trading price of the stock.
Current trading price of the stock. (provider: fmp)
changes_percentage : Optional[float]
Change percentage of the stock price.
Change percentage of the stock price. (provider: fmp)
change : Optional[float]
Change in the stock price.
day_low : Optional[float]
Lowest price of the stock in the current trading day.
day_high : Optional[float]
Highest price of the stock in the current trading day.
Change in the stock price. (provider: fmp)
year_high : Optional[float]
Highest price of the stock in the last 52 weeks.
Highest price of the stock in the last 52 weeks. (provider: fmp)
year_low : Optional[float]
Lowest price of the stock in the last 52 weeks.
Lowest price of the stock in the last 52 weeks. (provider: fmp)
market_cap : Optional[float]
Market cap of the company.
Market cap of the company. (provider: fmp)
price_avg50 : Optional[float]
50 days average price of the stock.
50 days average price of the stock. (provider: fmp)
price_avg200 : Optional[float]
200 days average price of the stock.
200 days average price of the stock. (provider: fmp)
volume : Optional[int]
Volume of the stock in the current trading day.
Volume of the stock in the current trading day. (provider: fmp)
avg_volume : Optional[int]
Average volume of the stock in the last 10 trading days.
Average volume of the stock in the last 10 trading days. (provider: fmp)
exchange : Optional[str]
Exchange the stock is traded on.
Exchange the stock is traded on. (provider: fmp)
open : Optional[float]
Opening price of the stock in the current trading day.
Opening price of the stock in the current trading day. (provider: fmp)
previous_close : Optional[float]
Previous closing price of the stock.
Previous closing price of the stock. (provider: fmp)
eps : Optional[float]
Earnings per share of the stock.
Earnings per share of the stock. (provider: fmp)
pe : Optional[float]
Price earnings ratio of the stock.
Price earnings ratio of the stock. (provider: fmp)
earnings_announcement : Optional[str]
Earnings announcement date of the stock.
Earnings announcement date of the stock. (provider: fmp)
shares_outstanding : Optional[int]
Number of shares outstanding of the stock.
date : Optional[datetime]
Timestamp of the stock quote.""" # 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={
Expand Down

0 comments on commit 172a923

Please sign in to comment.