Stock Prices by Security

Stock Prices by Security Java API Documentation

Return end-of-day stock prices for the Security with the given `identifier`

API Class:
SecurityApi
Instance Method:
getSecurityStockPrices()

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";
LocalDate startDate = LocalDate.of(2018,1,01);
LocalDate endDate = LocalDate.of(2019,1,01);
String frequency = "daily";
Integer pageSize = 100;
String nextPage = null;
ApiResponseSecurityStockPrices result = securityApi.getSecurityStockPrices(identifier, startDate, endDate, frequency, pageSize, nextPage);
System.out.println(result);
}
}
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Parameters

NameTypeDescriptionNotes
identifierStringA Security identifier (Ticker, FIGI, ISIN, CUSIP, Intrinio ID) 
startDateLocalDateReturn prices on or after the date[optional]  
endDateLocalDateReturn prices on or before the date[optional]  
frequencyStringReturn stock prices in the given frequency[optional] [default to daily] [enum: daily, weekly, monthly, quarterly, yearly]  
pageSizeIntegerThe number of results to return[optional] [default to 100]  
nextPageStringGets the next page of data from a previous API call[optional]  


Return Type

object
ApiResponseSecurityStockPrices

Properties

NameTypeDescription
stockPricesListThe stock prices for the Security  
securitySecuritySummaryThe Security resolved from the given identifier  
nextPageStringThe token required to request the next page of the data. If null, no further results are available.  
object
StockPriceSummary

Properties

NameTypeDescription
dateLocalDateThe calendar date that the stock price represents. For non-daily stock prices, this represents the last day in the period (end of the week, month, quarter, year, etc)  
intraperiodBooleanIf true, the stock price represents an unfinished period (be it day, week, quarter, month, or year), meaning that the close price is the latest price available, not the official close price for the period  
frequencyFrequencyEnumThe type of period that the stock price represents  
openBigDecimalThe price at the beginning of the period  
highBigDecimalThe highest price over the span of the period  
lowBigDecimalThe lowest price over the span of the period  
closeBigDecimalThe price at the end of the period  
volumeBigDecimalThe number of shares exchanged during the period  
adjOpenBigDecimalThe price at the beginning of the period, adjusted for splits and dividends  
adjHighBigDecimalThe highest price over the span of the period, adjusted for splits and dividends  
adjLowBigDecimalThe lowest price over the span of the period, adjusted for splits and dividends  
adjCloseBigDecimalThe price at the end of the period, adjusted for splits and dividends  
adjVolumeBigDecimalThe number of shares exchanged during the period, adjusted for splits and dividends  
factorBigDecimalThe factor by which to multiply stock prices before this date, in order to calculate historically-adjusted stock prices.  
splitRatioBigDecimalThe ratio of the stock split, if a stock split occurred.  
dividendBigDecimalThe dividend amount, if a dividend was paid.  
changeBigDecimalThe difference in price from the last price for this frequency  
percentChangeBigDecimalThe percent difference in price from the last price for this frequency  
fiftyTwoWeekHighBigDecimalThe 52 week high price (daily only)  
fiftyTwoWeekLowBigDecimalThe 52 week low price (daily only)  
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