Quote for a Security

Quote for a Security Javascript 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:
getSecurityQuote()

Stock Price Code Example

Use my API Key
var intrinioSDK = require('intrinio-sdk');
intrinioSDK.ApiClient.instance.authentications['ApiKeyAuth'].apiKey = "YOUR_API_KEY";
intrinioSDK.ApiClient.instance.enableRetries = true;
var security = new intrinioSDK.SecurityApi();
var identifier = "AAPL";
var opts = {
'activeOnly': false,
'source': "delayed_sip",
'nextPage': null
};
security.getSecurityQuote(identifier, opts).then(function(data) {
data = JSON.stringify(data, null, 2)
console.log(data);
}, function(error) {
console.error(error);
});
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Parameters

NameTypeDescriptionNotes
identifierStringA Security identifier (Ticker, FIGI, ISIN, CUSIP, Intrinio ID) 
activeOnlyBooleanWhether to return only realtime prices from today.[optional] [default to false]  
sourceStringReturn the realtime price from the specified source instead of the most recent.[optional]  
nextPageStringGets the next page of data from a previous API call[optional]  


Return Type

object
ApiResponseSecurityQuote

Properties

NameTypeDescription
securitySecuritySummaryThe Security of the stock quote  
lastNumberThe price of the latest trade  
lastTimeDateThe date and time when the last trade occurred.  
sourceStringThe source of the pricing data.  
openNumberThe open price from the latest day of trading.  
highNumberThe highest price from the latest day of trading.  
lowNumberThe lowest price from the latest day of trading.  
exchangeVolumeNumberThe volume of the security from the source.  
marketVolumeNumberThe volume of the security for the entire market.  
eodFiftyTwoWeekHighNumberThe 52 week high price.  
eodFiftyTwoWeekLowNumberThe 52 week low price.  
marketcapNumberThe current market cap.  
pricetoearningsNumberThe current price to earnings.  
previousCloseNumberThe previous close price.  
previousCloseDateDateThe date of the previous close.  
changeNumberThe difference in last price from the last close price  
changePercentNumberThe percent difference in last price from the last close price  
adjClose5DaysAgoNumberThe adjusted close price 5 days ago.  
adjClose30DaysAgoNumberThe adjusted close price 30 days ago.  
adjClose90DaysAgoNumberThe adjusted close price 90 days ago.  
adjClose180DaysAgoNumberThe adjusted close price 180 days ago.  
adjClose365DaysAgoNumberThe adjusted close price 365 days ago.  
adjClose730DaysAgoNumberThe adjusted close price 730 days ago.  
adjClose1825DaysAgoNumberThe adjusted close price 1825 days ago.  
adjCloseYearToDateNumberThe adjusted close price at the start of the calendar year.  
changePercent5DaysNumberThe percent change from the adjusted price 5 days ago to now.  
changePercent30DaysNumberThe percent change from the adjusted price 30 days ago to now.  
changePercent90DaysNumberThe percent change from the adjusted price 90 days ago to now.  
changePercent180DaysNumberThe percent change from the adjusted price 180 days ago to now.  
changePercent365DaysNumberThe percent change from the adjusted price 365 days ago to now.  
changePercent730DaysAgoNumberThe percent change from the adjusted price 730 days ago to now.  
changePercent1825DaysNumberThe percent change from the adjusted price 1825 days ago to now.  
changePercentYearToDateNumberThe percent change from the adjusted price since the start of the calendar year to now.  
extendedHoursLastNumberThe price of the latest trade in pre and post market trading. Might be null during normal trading  
extendedHoursChangeNumberThe difference in extended_hours_last price from most recent official close price  
extendedHoursChangePercentNumberThe percent difference in extended_hours_last from the most recent official close price  
object
SecuritySummary

Properties

NameTypeDescription
idStringThe Intrinio ID for Security  
companyIdStringThe Intrinio ID for the Company for which the Security is issued  
nameStringThe name of the Security  
codeStringA 2-3 digit code classifying the Security (reference)  
currencyStringThe currency in which the Security is traded on the exchange  
tickerStringThe common/local ticker of the Security  
compositeTickerStringThe country-composite ticker of the Security  
figiStringThe OpenFIGI identifier  
compositeFigiStringThe country-composite OpenFIGI identifier  
shareClassFigiStringThe global-composite OpenFIGI identifier  
primaryListingBooleanIf true, the Security is the primary issue for the company, otherwise it is a secondary issue on a secondary stock exchange