Quote for a Security

Quote for a Security R 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:
IntrinioSDK::SecurityApi
Instance Method:
get_security_quote()

Stock Price Code Example

Use my API Key
client <- IntrinioSDK::ApiClient$new()
# Configure API key authorization: ApiKeyAuth
client$configuration$apiKey <- "YOUR_API_KEY"
#Configure retries
client$configuration$allowRetries <- TRUE
# Setup API with client
SecurityApi <- IntrinioSDK::SecurityApi$new(client)
# Required params
identifier <- "AAPL"
# Optional params
opts <- list(
active_only = FALSE,
source = "delayed_sip",
next_page = NULL
)
response <- SecurityApi$get_security_quote(identifier, opts)
print(response)
print(response$content)
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Parameters

NameTypeDescriptionNotes
identifierCharacterA Security identifier (Ticker, FIGI, ISIN, CUSIP, Intrinio ID) 
active_onlyLogicalWhether to return only realtime prices from today.[optional] [default to FALSE]  
sourceCharacterReturn the realtime price from the specified source instead of the most recent.[optional]  
next_pageCharacterGets the next page of data from a previous API call[optional]  


Return Type

object
IntrinioSDK::ApiResponseSecurityQuote

Properties

NameTypeDescription
securitySecuritySummaryThe Security of the stock quote  
lastNumericThe price of the latest trade  
last_timePOSIXltThe date and time when the last trade occurred.  
sourceCharacterThe source of the pricing data.  
openNumericThe open price from the latest day of trading.  
highNumericThe highest price from the latest day of trading.  
lowNumericThe lowest price from the latest day of trading.  
exchange_volumeNumericThe volume of the security from the source.  
market_volumeNumericThe volume of the security for the entire market.  
eod_fifty_two_week_highNumericThe 52 week high price.  
eod_fifty_two_week_lowNumericThe 52 week low price.  
marketcapNumericThe current market cap.  
pricetoearningsNumericThe current price to earnings.  
previous_closeNumericThe previous close price.  
previous_close_dateDateThe date of the previous close.  
changeNumericThe difference in last price from the last close price  
change_percentNumericThe percent difference in last price from the last close price  
adj_close_5_days_agoNumericThe adjusted close price 5 days ago.  
adj_close_30_days_agoNumericThe adjusted close price 30 days ago.  
adj_close_90_days_agoNumericThe adjusted close price 90 days ago.  
adj_close_180_days_agoNumericThe adjusted close price 180 days ago.  
adj_close_365_days_agoNumericThe adjusted close price 365 days ago.  
adj_close_730_days_agoNumericThe adjusted close price 730 days ago.  
adj_close_1825_days_agoNumericThe adjusted close price 1825 days ago.  
adj_close_year_to_dateNumericThe adjusted close price at the start of the calendar year.  
change_percent_5_daysNumericThe percent change from the adjusted price 5 days ago to now.  
change_percent_30_daysNumericThe percent change from the adjusted price 30 days ago to now.  
change_percent_90_daysNumericThe percent change from the adjusted price 90 days ago to now.  
change_percent_180_daysNumericThe percent change from the adjusted price 180 days ago to now.  
change_percent_365_daysNumericThe percent change from the adjusted price 365 days ago to now.  
change_percent_730_days_agoNumericThe percent change from the adjusted price 730 days ago to now.  
change_percent_1825_daysNumericThe percent change from the adjusted price 1825 days ago to now.  
change_percent_year_to_dateNumericThe percent change from the adjusted price since the start of the calendar year to now.  
extended_hours_lastNumericThe price of the latest trade in pre and post market trading. Might be null during normal trading  
extended_hours_changeNumericThe difference in extended_hours_last price from most recent official close price  
extended_hours_change_percentNumericThe percent difference in extended_hours_last from the most recent official close price  
object
IntrinioSDK::SecuritySummary

Properties

NameTypeDescription
idCharacterThe Intrinio ID for Security  
company_idCharacterThe Intrinio ID for the Company for which the Security is issued  
exchangeCharacterThe exchange's MIC  
exchange_micCharacterThe security's exchange MIC  
stock_exchange_idCharacterThe exchange's Intrinio ID  
nameCharacterThe name of the Security  
codeCharacterA 2-3 digit code classifying the Security (reference)  
currencyCharacterThe currency in which the Security is traded on the exchange  
tickerCharacterThe common/local ticker of the Security  
composite_tickerCharacterThe country-composite ticker of the Security  
figiCharacterThe OpenFIGI identifier  
composite_figiCharacterThe country-composite OpenFIGI identifier  
share_class_figiCharacterThe global-composite OpenFIGI identifier  
primary_listingLogicalIf TRUE, the Security is the primary issue for the company, otherwise it is a secondary issue on a secondary stock exchange