Interval Stock Prices for Security

Interval Stock Prices for Security Java API Documentation

Return open, close, high, low, volume, average price, and change ratio for a particular interval for the Security with the given `identifier`

API Class:
SecurityApi
Instance Method:
getSecurityIntervalPrices()

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";
String intervalSize = "15m";
String source = null;
LocalDate startDate = LocalDate.of(2023,1,01);
String startTime = "33300";
LocalDate endDate = LocalDate.of(2023,2,01);
String endTime = "33300";
String timezone = "UTC";
Integer pageSize = 100;
Boolean splitAdjusted = false;
Boolean includeQuoteOnlyBars = false;
String nextPage = null;
ApiResponseSecurityIntervalPrices result = securityApi.getSecurityIntervalPrices(identifier, intervalSize, source, startDate, startTime, endDate,
      endTime, timezone, pageSize, splitAdjusted, includeQuoteOnlyBars, nextPage);
System.out.println(result);
}
}
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Parameters

NameTypeDescriptionNotes
identifierStringA Security identifier (Ticker, FIGI, ISIN, CUSIP, Intrinio ID) 
intervalSizeStringThe interval for which to return stock prices[default to 15m] [enum: 1m, 5m, 10m, 15m, 30m, 60m, 1h]  
sourceStringReturn intervals from the specified data source[optional] [enum: realtime, delayed, nasdaq_basic, nasdaq_basic_filtered, nasdaq_basic_last_sale]  
startDateLocalDateReturn intervals starting at the specified date[optional]  
startTimeStringReturn intervals starting at the specified time on the `start_date` (24-hour in ‘hh:mm:ss' format)[optional]  
endDateLocalDateReturn intervals stopping at the specified date[optional]  
endTimeStringReturn intervals stopping at the specified time on the `end_date` (24-hour in ‘hh:mm:ss' format)[optional]  
timezoneStringInterprets the input times in this time zone, as well as returns times in this timezone.[optional] [default to UTC] [enum: Africa/Algiers, Africa/Cairo, Africa/Casablanca, Africa/Harare, Africa/Johannesburg, Africa/Monrovia, Africa/Nairobi, America/Argentina/Buenos_Aires, America/Bogota, America/Caracas, America/Chicago, America/Chihuahua, America/Denver, America/Godthab, America/Guatemala, America/Guyana, America/Halifax, America/Indiana/Indianapolis, America/Juneau, America/La_Paz, America/Lima, America/Lima, America/Los_Angeles, America/Mazatlan, America/Mexico_City, America/Mexico_City, America/Monterrey, America/Montevideo, America/New_York, America/Phoenix, America/Regina, America/Santiago, America/Sao_Paulo, America/St_Johns, America/Tijuana, Asia/Almaty, Asia/Baghdad, Asia/Baku, Asia/Bangkok, Asia/Bangkok, Asia/Chongqing, Asia/Colombo, Asia/Dhaka, Asia/Dhaka, Asia/Hong_Kong, Asia/Irkutsk, Asia/Jakarta, Asia/Jerusalem, Asia/Kabul, Asia/Kamchatka, Asia/Karachi, Asia/Karachi, Asia/Kathmandu, Asia/Kolkata, Asia/Kolkata, Asia/Kolkata, Asia/Kolkata, Asia/Krasnoyarsk, Asia/Kuala_Lumpur, Asia/Kuwait, Asia/Magadan, Asia/Muscat, Asia/Muscat, Asia/Novosibirsk, Asia/Rangoon, Asia/Riyadh, Asia/Seoul, Asia/Shanghai, Asia/Singapore, Asia/Srednekolymsk, Asia/Taipei, Asia/Tashkent, Asia/Tbilisi, Asia/Tehran, Asia/Tokyo, Asia/Tokyo, Asia/Tokyo, Asia/Ulaanbaatar, Asia/Urumqi, Asia/Vladivostok, Asia/Yakutsk, Asia/Yekaterinburg, Asia/Yerevan, Atlantic/Azores, Atlantic/Cape_Verde, Atlantic/South_Georgia, Australia/Adelaide, Australia/Brisbane, Australia/Darwin, Australia/Hobart, Australia/Melbourne, Australia/Melbourne, Australia/Perth, Australia/Sydney, Etc/UTC, UTC, Europe/Amsterdam, Europe/Athens, Europe/Belgrade, Europe/Berlin, Europe/Berlin, Europe/Bratislava, Europe/Brussels, Europe/Bucharest, Europe/Budapest, Europe/Copenhagen, Europe/Dublin, Europe/Helsinki, Europe/Istanbul, Europe/Kaliningrad, Europe/Kiev, Europe/Lisbon, Europe/Ljubljana, Europe/London, Europe/London, Europe/Madrid, Europe/Minsk, Europe/Moscow, Europe/Moscow, Europe/Paris, Europe/Prague, Europe/Riga, Europe/Rome, Europe/Samara, Europe/Sarajevo, Europe/Skopje, Europe/Sofia, Europe/Stockholm, Europe/Tallinn, Europe/Vienna, Europe/Vilnius, Europe/Volgograd, Europe/Warsaw, Europe/Zagreb, Pacific/Apia, Pacific/Auckland, Pacific/Auckland, Pacific/Chatham, Pacific/Fakaofo, Pacific/Fiji, Pacific/Guadalcanal, Pacific/Guam, Pacific/Honolulu, Pacific/Majuro, Pacific/Midway, Pacific/Midway, Pacific/Noumea, Pacific/Pago_Pago, Pacific/Port_Moresby, Pacific/Tongatapu]  
pageSizeIntegerThe number of results to return[optional] [default to 100]  
splitAdjustedBooleanWhether to return the values adjusted for splits or not. Default is false.[optional] [default to false]  
includeQuoteOnlyBarsBooleanIf true, also include bars where no trades occurred but quotes did.[optional] [default to false]  
nextPageStringGets the next page of data from a previous API call[optional]  


Return Type

object
ApiResponseSecurityIntervalPrices

Properties

NameTypeDescription
intervalsListOpen, close, high, low, volume, average price, and change ratio for a particular interval  
securitySecuritySummaryThe Security resolved from the given identifier  
sourceSourceEnumThe source of the data  
nextPageStringThe token required to request the next page of the data. If null, no further results are available.  
object
StockPriceInterval

Properties

NameTypeDescription
timeOffsetDateTimeThe timestamp that represents the start of the interval span.  
openBigDecimalThe first traded price during the period  
closeBigDecimalThe last traded price during the period  
highBigDecimalThe highest price over the span of the period  
lowBigDecimalThe lowest price over the span of the period  
volumeBigDecimalThe number of shares exchanged during the period  
closeTimeOffsetDateTimeThe timestamp that represents the end of the interval span.  
intervalIntervalEnumThe size of the interval.  
averageBigDecimalThe average trade price of an individual stock during the interval.  
changeBigDecimalThe change ratio from open to close. ((Close - Open)/Open).  
bidHighBigDecimalThe highest bid price from the interval.  
bidLowBigDecimalThe lowest bid price from the interval.  
bidCloseBigDecimalThe last bid price from the interval.  
bidOpenBigDecimalThe first bid price from the interval.  
bidFirstTimeOffsetDateTimeThe timestamp that represents the first bid time from the interval span.  
bidLastTimeOffsetDateTimeThe timestamp that represents the last bid time from the interval span.  
bidChangePercentBigDecimalThe ratio of the close to open bid difference, in percent.  
askHighBigDecimalThe highest ask price from the interval.  
askLowBigDecimalThe lowest ask price from the interval.  
askCloseBigDecimalThe last ask price from the interval.  
askOpenBigDecimalThe first ask price from the interval.  
askFirstTimeOffsetDateTimeThe timestamp that represents the first ask time from the interval span.  
askLastTimeOffsetDateTimeThe timestamp that represents the last ask time from the interval span.  
askChangePercentBigDecimalThe ratio of the close to open ask difference, in percent.  
tradeCountBigDecimalThe number of qualified trades executed during the period  
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