Stock Prices by Exchange

Stock Prices by Exchange Java API Documentation

Returns end-of-day stock prices for Securities on the Stock Exchange with `identifier` and on the `price_date` (or the latest date that prices are available)

API Class:
StockExchangeApi
Instance Method:
getStockExchangePrices()

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);
StockExchangeApi stockExchangeApi = new StockExchangeApi();
String identifier = "USCOMP";
LocalDate date = LocalDate.of(2018,8,14);
LocalDate startDate = LocalDate.of(2020,8,14);
LocalDate endDate = LocalDate.of(2022,8,14);
Integer pageSize = 100;
String nextPage = null;
List<String> tickers = Arrays.asList("AAPL,MSFT,NVDA");
String nextPage2 = null;
ApiResponseStockExchangeStockPrices result = stockExchangeApi.getStockExchangePrices(identifier, date, startDate, endDate, pageSize, nextPage,
      tickers, nextPage2);
System.out.println(result);
}
}
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Parameters

NameTypeDescriptionNotes
identifierStringA Stock Exchange identifier (MIC or Intrinio ID) 
dateLocalDateThe date for which to return prices. May not be used with the start_date and end_date parameters.[optional]  
startDateLocalDateThe start of the date range you're querying. May not be used with date parameter.[optional]  
endDateLocalDateThe end of the date range you're querying. May not be used with date parameter.[optional]  
pageSizeIntegerThe number of results to return[optional] [default to 100]  
nextPageStringGets the next page of data from a previous API call[optional]  
tickersListThe comma-delimited list of ticker symbols to filter down to. If not provided, the entire stock exchange is returned.[optional]  
nextPage2StringGets the next page of data from a previous API call[optional]  


Return Type

object
ApiResponseStockExchangeStockPrices

Properties

NameTypeDescription
stockPricesListThe stock prices for all Securities traded on the Stock Exchange on the given date  
stockExchangeStockExchangeThe Stock Exchange resolved from the given identifier  
nextPageStringThe token required to request the next page of the data. If null, no further results are available.  
object
StockPrice

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)  
securitySecuritySummaryThe Security of the stock 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  
object
StockExchange

Properties

NameTypeDescription
idStringThe Intrinio ID for the Stock Exchange  
nameStringThe name of the exchange  
micStringThe Market Identifier Code (MIC) of the exchange  
acronymStringThe acronym of the exchange's name  
cityStringThe city in which the exchange is located  
countryStringThe country in which the exchange is located  
countryCodeStringThe 2-digit code of the exchange's country  
websiteStringThe website of the exchange  
firstStockPriceDateLocalDateThe earliest date for which Intrinio has stock prices for the exchange  
lastStockPriceDateLocalDateThe latest date for which Intrinio has stock prices for the exchange