Quote for a Security

Quote for a Security Python API Documentation

Returns many popular metrics for a security 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:
SecurityApi
Instance Method:
get_security_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 = 'AAPL'
active_only = False
source = 'delayed_sip'
next_page = ''
response = intrinio.SecurityApi().get_security_quote(identifier, active_only=active_only, source=source, next_page=next_page)
print(response)
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Parameters

NameTypeDescriptionNotes
identifierstrA Security identifier (Ticker, FIGI, ISIN, CUSIP, Intrinio ID) 
active_onlyboolWhether to return only realtime prices from today.[optional] [default to False]  
sourcestrReturn the realtime price from the specified source instead of the most recent.[optional]  
next_pagestrGets the next page of data from a previous API call[optional]  


Return Type

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