Quote for a Security

Quote for a Security Java 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
import com.intrinio.api.*;
import com.intrinio.models.*;
import com.intrinio.invoker.*;
import com.intrinio.invoker.auth.*;
import org.threeten.bp.*;
import java.math.BigDecimal;
import java.util.*;
public class Main {
public static void main(String[] args) throws Exception {
ApiClient defaultClient = Configuration.getDefaultApiClient();
ApiKeyAuth auth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth");
auth.setApiKey("YOUR_API_KEY");
defaultClient.setAllowRetries(true);
SecurityApi securityApi = new SecurityApi();
String identifier = "AAPL";
Boolean activeOnly = false;
String source = "delayed_sip";
String nextPage = null;
ApiResponseSecurityQuote result = securityApi.getSecurityQuote(identifier, activeOnly, source, nextPage);
System.out.println(result);
}
}
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
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] [enum: iex, bats_delayed, utp_delayed, cta_a_delayed, cta_b_delayed, otc_delayed, delayed_sip, nasdaq_basic, intrinio_mx, intrinio_mx_plus]  
nextPageStringGets the next page of data from a previous API call[optional]  


Return Type

object
ApiResponseSecurityQuote

Properties

NameTypeDescription
securitySecuritySummaryThe Security of the stock quote  
lastBigDecimalThe price of the latest trade  
lastTimeOffsetDateTimeThe date and time when the last trade occurred.  
sourceStringThe source of the pricing data.  
openBigDecimalThe open price from the latest day of trading.  
highBigDecimalThe highest price from the latest day of trading.  
lowBigDecimalThe lowest price from the latest day of trading.  
exchangeVolumeBigDecimalThe volume of the security from the source.  
marketVolumeBigDecimalThe volume of the security for the entire market.  
eodFiftyTwoWeekHighBigDecimalThe 52 week high price.  
eodFiftyTwoWeekLowBigDecimalThe 52 week low price.  
marketcapBigDecimalThe current market cap.  
pricetoearningsBigDecimalThe current price to earnings.  
previousCloseBigDecimalThe previous close price.  
previousCloseDateLocalDateThe date of the previous close.  
changeBigDecimalThe difference in last price from the last close price  
changePercentBigDecimalThe percent difference in last price from the last close price  
adjClose5DaysAgoBigDecimalThe adjusted close price 5 days ago.  
adjClose30DaysAgoBigDecimalThe adjusted close price 30 days ago.  
adjClose90DaysAgoBigDecimalThe adjusted close price 90 days ago.  
adjClose180DaysAgoBigDecimalThe adjusted close price 180 days ago.  
adjClose365DaysAgoBigDecimalThe adjusted close price 365 days ago.  
adjClose730DaysAgoBigDecimalThe adjusted close price 730 days ago.  
adjClose1825DaysAgoBigDecimalThe adjusted close price 1825 days ago.  
adjCloseYearToDateBigDecimalThe adjusted close price at the start of the calendar year.  
changePercent5DaysBigDecimalThe percent change from the adjusted price 5 days ago to now.  
changePercent30DaysBigDecimalThe percent change from the adjusted price 30 days ago to now.  
changePercent90DaysBigDecimalThe percent change from the adjusted price 90 days ago to now.  
changePercent180DaysBigDecimalThe percent change from the adjusted price 180 days ago to now.  
changePercent365DaysBigDecimalThe percent change from the adjusted price 365 days ago to now.  
changePercent730DaysAgoBigDecimalThe percent change from the adjusted price 730 days ago to now.  
changePercent1825DaysBigDecimalThe percent change from the adjusted price 1825 days ago to now.  
changePercentYearToDateBigDecimalThe percent change from the adjusted price since the start of the calendar year to now.  
extendedHoursLastBigDecimalThe price of the latest trade in pre and post market trading. Might be null during normal trading  
extendedHoursChangeBigDecimalThe difference in extended_hours_last price from most recent official close price  
extendedHoursChangePercentBigDecimalThe 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  
exchangeStringThe exchange's MIC  
exchangeMicStringThe security's exchange MIC  
stockExchangeIdStringThe exchange's Intrinio ID  
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