Market Snapshots
Implementation details
Class names
| Model name | Parameters class | Data class |
|---|---|---|
MarketSnapshots | MarketSnapshotsQueryParams | MarketSnapshotsData |
Import Statement
from openbb_core.provider.standard_models.market_snapshots import (
MarketSnapshotsData,
MarketSnapshotsQueryParams,
)
Parameters
- standard
- fmp
- intrinio
- polygon
market: Literal['amex', 'ams', 'ase', 'asx', 'ath', 'bme', 'bru', 'bud', 'bue', 'cai', 'cnq', 'commodity', 'cph', 'crypto', 'dfm', 'doh', 'dus', 'etf', 'euronext', 'forex', 'hel', 'hkse', 'ice', 'iob', 'index', 'ist', 'jkt', 'jnb', 'jpx', 'kls', 'koe', 'ksc', 'kuw', 'lse', 'mex', 'mil', 'mutual_fund', 'nasdaq', 'neo', 'nse', 'nyse', 'nze', 'osl', 'otc', 'pnk', 'pra', 'ris', 'sao', 'sau', 'ses', 'set', 'sgo', 'shh', 'shz', 'six', 'sto', 'tai', 'tlv', 'tsx', 'two', 'vie', 'wse', 'xetra'] | None
Default: nasdaq
The market to fetch data for.
date: date | datetime | str | None | str
The date of the data. Can be a datetime or an ISO datetime string. Historical data appears to go back to mid-June 2022. Example: '2024-03-08T12:15:00+0400'
Data
- standard
- fmp
- intrinio
- polygon
exchange: str | None
Exchange the security is listed on.
symbol: str
Symbol representing the entity requested in the data.
name: str | None
Name of the company, fund, or security.
open: float | None
The open price.
high: float | None
The high price.
low: float | None
The low price.
close: float | None
The close price.
volume: int | None
The trading volume.
prev_close: float | None
The previous close price.
change: float | None
The change in price from the previous close.
change_percent: float | None
The change in price from the previous close, as a normalized percent.
exchange: str | None
Exchange the security is listed on.
symbol: str
Symbol representing the entity requested in the data.
name: str | None
Name of the company, fund, or security.
open: float | None
The open price.
high: float | None
The high price.
low: float | None
The low price.
close: float | None
The close price.
volume: int | None
The trading volume.
prev_close: float | None
The previous close price.
change: float | None
The change in price from the previous close.
change_percent: float | None
The change in price from the previous close, as a normalized percent.
ma50: float | None
The 50-day moving average.
ma200: float | None
The 200-day moving average.
year_high: float | None
The 52-week high.
year_low: float | None
The 52-week low.
market_cap: int | float | None
Market cap of the stock.
last_price_timestamp: datetime | date | None
The timestamp of the last price.
exchange: str | None
Exchange the security is listed on.
symbol: str
Symbol representing the entity requested in the data.
name: str | None
Name of the company, fund, or security.
open: float | None
The open price.
high: float | None
The high price.
low: float | None
The low price.
close: float | None
The close price.
volume: int | None
The trading volume.
prev_close: float | None
The previous close price.
change: float | None
The change in price from the previous close.
change_percent: float | None
The change in price from the previous close, as a normalized percent.
last_price: float | None
The last trade price.
last_size: int | None
The last trade size.
last_volume: int | None
The last trade volume.
last_trade_timestamp: datetime | None
The timestamp of the last trade.
bid_size: int | None
The size of the last bid price. Bid price and size is not always available.
bid_price: float | None
The last bid price. Bid price and size is not always available.
ask_price: float | None
The last ask price. Ask price and size is not always available.
ask_size: int | None
The size of the last ask price. Ask price and size is not always available.
last_bid_timestamp: datetime | None
The timestamp of the last bid price. Bid price and size is not always available.
last_ask_timestamp: datetime | None
The timestamp of the last ask price. Ask price and size is not always available.
exchange: str | None
Exchange the security is listed on.
symbol: str
Symbol representing the entity requested in the data.
name: str | None
Name of the company, fund, or security.
open: float | None
The open price.
high: float | None
The high price.
low: float | None
The low price.
close: float | None
The close price.
volume: int | None
The trading volume.
prev_close: float | None
The previous close price.
change: float | None
The change in price from the previous close.
change_percent: float | None
The change in price from the previous close, as a normalized percent.
vwap: float | None
The volume weighted average price of the stock on the current trading day.
prev_open: float | None
The previous trading session opening price.
prev_high: float | None
The previous trading session high price.
prev_low: float | None
The previous trading session low price.
prev_volume: float | None
The previous trading session volume.
prev_vwap: float | None
The previous trading session VWAP.
last_updated: datetime | None
The last time the data was updated.
bid: float | None
The current bid price.
bid_size: int | None
The current bid size.
ask_size: int | None
The current ask size.
ask: float | None
The current ask price.
quote_timestamp: datetime | None
The timestamp of the last quote.
last_trade_price: float | None
The last trade price.
last_trade_size: int | None
The last trade size.
last_trade_conditions: list[int] | None
The last trade condition codes.
last_trade_exchange: int | None
The last trade exchange ID code.
last_trade_timestamp: datetime | None
The last trade timestamp.