Skip to main content

quote

Get the latest quote for a given stock. Quote includes price, volume, and other data.

Examples

from openbb import obb
obb.equity.price.quote(symbol='AAPL', provider='fmp')

Parameters

NameTypeDescriptionDefaultOptional
symbolUnion[str, List[str]]Symbol to get data for. Multiple items allowed for provider(s): cboe, fmp, intrinio, tmx, tradier, yfinance.False

Returns

OBBject
results : List[EquityQuote]
Serializable results.

provider : Optional[Literal['cboe', 'fmp', 'intrinio', 'tmx', 'tradier', 'yfinance']]
Provider name.

warnings : Optional[List[Warning_]]
List of warnings.

chart : Optional[Chart]
Chart object.

extra : Dict[str, Any]
Extra info.

Data

NameTypeDescription
symbolstrSymbol representing the entity requested in the data.
asset_typestrType of asset - i.e, stock, ETF, etc.
namestrName of the company or asset.
exchangestrThe name or symbol of the venue where the data is from.
bidfloatPrice of the top bid order.
bid_sizeintThis represents the number of round lot orders at the given price. The normal round lot size is 100 shares. A size of 2 means there are 200 shares available at the given price.
bid_exchangestrThe specific trading venue where the purchase order was placed.
askfloatPrice of the top ask order.
ask_sizeintThis represents the number of round lot orders at the given price. The normal round lot size is 100 shares. A size of 2 means there are 200 shares available at the given price.
ask_exchangestrThe specific trading venue where the sale order was placed.
quote_conditionsUnion[str, int, List[str], List[int]]Conditions or condition codes applicable to the quote.
quote_indicatorsUnion[str, int, List[str], List[int]]Indicators or indicator codes applicable to the participant quote related to the price bands for the issue, or the affect the quote has on the NBBO.
sales_conditionsUnion[str, int, List[str], List[int]]Conditions or condition codes applicable to the sale.
sequence_numberintThe sequence number represents the sequence in which message events happened. These are increasing and unique per ticker symbol, but will not always be sequential (e.g., 1, 2, 6, 9, 10, 11).
market_centerstrThe ID of the UTP participant that originated the message.
participant_timestampdatetimeTimestamp for when the quote was generated by the exchange.
trf_timestampdatetimeTimestamp for when the TRF (Trade Reporting Facility) received the message.
sip_timestampdatetimeTimestamp for when the SIP (Security Information Processor) received the message from the exchange.
last_pricefloatPrice of the last trade.
last_tickstrWhether the last sale was an up or down tick.
last_sizeintSize of the last trade.
last_timestampdatetimeDate and Time when the last price was recorded.
openfloatThe open price.
highfloatThe high price.
lowfloatThe low price.
closefloatThe close price.
volumeUnion[float, int]The trading volume.
exchange_volumeUnion[float, int]Volume of shares exchanged during the trading day on the specific exchange.
prev_closefloatThe previous close price.
changefloatChange in price from previous close.
change_percentfloatChange in price as a normalized percentage.
year_highfloatThe one year high (52W High).
year_lowfloatThe one year low (52W Low).