Realtime Quote Prices by Exchange

Realtime Quote Prices by Exchange Python API Documentation

Returns many popular metrics for securities from a given exchange 'identifier' from multiple products conveniently in one API. Realtime stock price data requires at least one realtime product subscription (IEX, NASDAQ Basic, and/or Delayed SIP). If you are subscribed to multiple realtime stock price products, the api will return the most recent realtime stock price. Previous close price and percent change fields require both an EoD US Stock Price subscription and a realtime stock price subscription. Market_cap, price_to_earnings, and dividendyield data fields require a fundamentals subscription.

API Class:
StockExchangeApi
Instance Method:
get_stock_exchange_quote()

Stock Price Code Example

Use my API Key
from __future__ import print_function
import time
import intrinio_sdk as intrinio
from intrinio_sdk.rest import ApiException
intrinio.ApiClient().set_api_key('YOUR_API_KEY')
intrinio.ApiClient().allow_retries(True)
identifier = 'USCOMP'
tickers = ['AAPL,MSFT,NVDA']
source = 'delayed_sip'
active_only = ''
response = intrinio.StockExchangeApi().get_stock_exchange_quote(identifier, tickers, source=source, active_only=active_only)
print(response)
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Parameters

NameTypeDescriptionNotes
identifierstrA Stock Exchange identifier (MIC or Intrinio ID) 
tickerslist[str]The comma-delimited list of ticker symbols to return quotes for. 
sourcestrReturn the realtime price from the specified source instead of the most recent.[optional]  
active_onlyboolReturns prices only from the most recent trading day.[optional]  


Return Type

object
ApiResponseStockExchangeQuote

Properties

NameTypeDescription
quoteslist[ApiResponseSecurityQuote]The realtime stock prices for all Securities traded on the Stock Exchange  
stock_exchangeStockExchangeThe Stock Exchange resolved from the given identifier  
object
ApiResponseSecurityQuote

Properties

NameTypeDescription
securitySecuritySummaryThe Security of the stock quote  
lastfloatThe price of the latest trade  
last_timedatetimeThe date and time when the last trade occurred.  
sourcestrThe source of the pricing data.  
openfloatThe open price from the latest day of trading.  
highfloatThe highest price from the latest day of trading.  
lowfloatThe lowest price from the latest day of trading.  
exchange_volumefloatThe volume of the security from the source.  
market_volumefloatThe volume of the security for the entire market.  
eod_fifty_two_week_highfloatThe 52 week high price.  
eod_fifty_two_week_lowfloatThe 52 week low price.  
marketcapfloatThe current market cap.  
pricetoearningsfloatThe current price to earnings.  
previous_closefloatThe previous close price.  
previous_close_datedateThe date of the previous close.  
changefloatThe difference in last price from the last close price  
change_percentfloatThe percent difference in last price from the last close price  
adj_close_5_days_agofloatThe adjusted close price 5 days ago.  
adj_close_30_days_agofloatThe adjusted close price 30 days ago.  
adj_close_90_days_agofloatThe adjusted close price 90 days ago.  
adj_close_180_days_agofloatThe adjusted close price 180 days ago.  
adj_close_365_days_agofloatThe adjusted close price 365 days ago.  
adj_close_730_days_agofloatThe adjusted close price 730 days ago.  
adj_close_1825_days_agofloatThe adjusted close price 1825 days ago.  
adj_close_year_to_datefloatThe adjusted close price at the start of the calendar year.  
change_percent_5_daysfloatThe percent change from the adjusted price 5 days ago to now.  
change_percent_30_daysfloatThe percent change from the adjusted price 30 days ago to now.  
change_percent_90_daysfloatThe percent change from the adjusted price 90 days ago to now.  
change_percent_180_daysfloatThe percent change from the adjusted price 180 days ago to now.  
change_percent_365_daysfloatThe percent change from the adjusted price 365 days ago to now.  
change_percent_730_days_agofloatThe percent change from the adjusted price 730 days ago to now.  
change_percent_1825_daysfloatThe percent change from the adjusted price 1825 days ago to now.  
change_percent_year_to_datefloatThe percent change from the adjusted price since the start of the calendar year to now.  
extended_hours_lastfloatThe price of the latest trade in pre and post market trading. Might be null during normal trading  
extended_hours_changefloatThe difference in extended_hours_last price from most recent official close price  
extended_hours_change_percentfloatThe percent difference in extended_hours_last from the most recent official close price  
object
SecuritySummary

Properties

NameTypeDescription
idstrThe Intrinio ID for Security  
company_idstrThe Intrinio ID for the Company for which the Security is issued  
exchangestrThe exchange's MIC  
exchange_micstrThe security's exchange MIC  
stock_exchange_idstrThe exchange's Intrinio ID  
namestrThe name of the Security  
codestrA 2-3 digit code classifying the Security (reference)  
currencystrThe currency in which the Security is traded on the exchange  
tickerstrThe common/local ticker of the Security  
composite_tickerstrThe country-composite ticker of the Security  
figistrThe OpenFIGI identifier  
composite_figistrThe country-composite OpenFIGI identifier  
share_class_figistrThe global-composite OpenFIGI identifier  
primary_listingboolIf True, the Security is the primary issue for the company, otherwise it is a secondary issue on a secondary stock exchange  
object
StockExchange

Properties

NameTypeDescription
idstrThe Intrinio ID for the Stock Exchange  
namestrThe name of the exchange  
micstrThe Market Identifier Code (MIC) of the exchange  
acronymstrThe acronym of the exchange's name  
citystrThe city in which the exchange is located  
countrystrThe country in which the exchange is located  
country_codestrThe 2-digit code of the exchange's country  
websitestrThe website of the exchange  
first_stock_price_datedateThe earliest date for which Intrinio has stock prices for the exchange  
last_stock_price_datedateThe latest date for which Intrinio has stock prices for the exchange