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

* flat structure

* md files

* Revert "md files"

This reverts commit bd2170e2ad.

* improve command descriptions

* nice title and description

* human readble data model names on left panel

* implementation details section

* content markdown files

* markdown versioned files

* showcase page

* updates

---------

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

5.1 KiB
Vendored

title, description
title description
Stock Quote OpenBB Platform Data Model

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


Implementation details

Class names

Model name Parameters class Data class
StockQuote StockQuoteQueryParams StockQuoteData

Import Statement

from openbb_provider.standard_models.stock_quote import (
StockQuoteData,
StockQuoteQueryParams,
)

Parameters

Name Type Description Default Optional
symbol Union[str, List[str]] Comma separated list of symbols. None True
provider 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. fmp True
Name Type Description Default Optional
symbol Union[str, List[str]] Comma separated list of symbols. None True
provider 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. fmp True
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. iex True

Data

Name Type Description
day_low float Lowest price of the stock in the current trading day.
day_high float Highest price of the stock in the current trading day.
date datetime Timestamp of the stock quote.
Name Type Description
day_low float Lowest price of the stock in the current trading day.
day_high float Highest price of the stock in the current trading day.
date datetime Timestamp of the stock quote.
symbol str Symbol of the company.
name str Name of the company.
price float Current trading price of the stock.
changes_percentage float Change percentage of the stock price.
change float Change in the stock price.
year_high float Highest price of the stock in the last 52 weeks.
year_low float Lowest price of the stock in the last 52 weeks.
market_cap float Market cap of the company.
price_avg50 float 50 days average price of the stock.
price_avg200 int 200 days average price of the stock.
volume int Volume of the stock in the current trading day.
avg_volume int Average volume of the stock in the last 10 trading days.
exchange str Exchange the stock is traded on.
open float Opening price of the stock in the current trading day.
previous_close float Previous closing price of the stock.
eps float Earnings per share of the stock.
pe float Price earnings ratio of the stock.
earnings_announcement str Earnings announcement date of the stock.
shares_outstanding int Number of shares outstanding of the stock.
Name Type Description
day_low float Lowest price of the stock in the current trading day.
day_high float Highest price of the stock in the current trading day.
date datetime Timestamp of the stock quote.
last_price float Price of the last trade.
last_time datetime Date and Time when the last trade occurred.
last_size int Size of the last trade.
bid_price float Price of the top bid order.
bid_size int Size of the top bid order.
ask_price float Price of the top ask order.
ask_size int Size of the top ask order.
open_price float Open price for the trading day.
close_price float Closing price for the trading day (IEX source only).
high_price float High Price for the trading day.
low_price float Low Price for the trading day.
exchange_volume int Number of shares exchanged during the trading day on the exchange.
market_volume int Number of shares exchanged during the trading day for the whole market.
updated_on datetime Date and Time when the data was last updated.
source str Source of the data.
listing_venue str Listing venue where the trade took place (SIP source only).
sales_conditions str Indicates any sales condition modifiers associated with the trade.
quote_conditions str Indicates any quote condition modifiers associated with the trade.
market_center_code str Market center character code.
is_darkpool bool Whether or not the current trade is from a darkpool.
messages List[str] Messages associated with the endpoint.
security Dict[str, Any] Security details related to the quote.