Interval Stock Prices for Security

Interval Stock Prices for Security R 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:
IntrinioSDK::SecurityApi
Instance Method:
get_security_interval_prices()

Stock Price Code Example

Use my API Key
client <- IntrinioSDK::ApiClient$new()
# Configure API key authorization: ApiKeyAuth
client$configuration$apiKey <- "YOUR_API_KEY"
#Configure retries
client$configuration$allowRetries <- TRUE
# Setup API with client
SecurityApi <- IntrinioSDK::SecurityApi$new(client)
# Required params
identifier <- "AAPL"
interval_size <- "15m"
# Optional params
opts <- list(
source = NULL,
start_date = as.Date("2023-01-01"),
start_time = 33300,
end_date = as.Date("2023-02-01"),
end_time = 33300,
timezone = "UTC",
page_size = 100,
split_adjusted = FALSE,
include_quote_only_bars = FALSE,
next_page = NULL
)
response <- SecurityApi$get_security_interval_prices(identifier, interval_size, opts)
print(response)
print(response$content)
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Parameters

NameTypeDescriptionNotes
identifierCharacterA Security identifier (Ticker, FIGI, ISIN, CUSIP, Intrinio ID) 
interval_sizeCharacterThe interval for which to return stock prices[default to 15m]  
sourceCharacterReturn intervals from the specified data source[optional]  
start_dateDateReturn intervals starting at the specified date[optional]  
start_timeCharacterReturn intervals starting at the specified time on the `start_date` (24-hour in ‘hh:mm:ss' format)[optional]  
end_dateDateReturn intervals stopping at the specified date[optional]  
end_timeCharacterReturn intervals stopping at the specified time on the `end_date` (24-hour in ‘hh:mm:ss' format)[optional]  
timezoneCharacterInterprets the input times in this time zone, as well as returns times in this timezone.[optional] [default to UTC]  
page_sizeIntegerThe number of results to return[optional] [default to 100]  
split_adjustedLogicalWhether to return the values adjusted for splits or not. Default is FALSE.[optional] [default to FALSE]  
include_quote_only_barsLogicalIf TRUE, also include bars where no trades occurred but quotes did.[optional] [default to FALSE]  
next_pageCharacterGets the next page of data from a previous API call[optional]  


Return Type

object
IntrinioSDK::ApiResponseSecurityIntervalPrices

Properties

NameTypeDescription
intervalsList of StockPriceIntervalOpen, close, high, low, volume, average price, and change ratio for a particular interval  
intervals_data_frameData FrameData frame representation of intervals
securitySecuritySummaryThe Security resolved from the given identifier  
sourceCharacterThe source of the data  
next_pageCharacterThe token required to request the next page of the data. If null, no further results are available.  
object
IntrinioSDK::StockPriceInterval

Properties

NameTypeDescription
timePOSIXltThe timestamp that represents the start of the interval span.  
openNumericThe first traded price during the period  
closeNumericThe last traded price during the period  
highNumericThe highest price over the span of the period  
lowNumericThe lowest price over the span of the period  
volumeNumericThe number of shares exchanged during the period  
close_timePOSIXltThe timestamp that represents the end of the interval span.  
intervalCharacterThe size of the interval.  
averageNumericThe average trade price of an individual stock during the interval.  
changeNumericThe change ratio from open to close. ((Close - Open)/Open).  
bid_highNumericThe highest bid price from the interval.  
bid_lowNumericThe lowest bid price from the interval.  
bid_closeNumericThe last bid price from the interval.  
bid_openNumericThe first bid price from the interval.  
bid_first_timePOSIXltThe timestamp that represents the first bid time from the interval span.  
bid_last_timePOSIXltThe timestamp that represents the last bid time from the interval span.  
bid_change_percentNumericThe ratio of the close to open bid difference, in percent.  
ask_highNumericThe highest ask price from the interval.  
ask_lowNumericThe lowest ask price from the interval.  
ask_closeNumericThe last ask price from the interval.  
ask_openNumericThe first ask price from the interval.  
ask_first_timePOSIXltThe timestamp that represents the first ask time from the interval span.  
ask_last_timePOSIXltThe timestamp that represents the last ask time from the interval span.  
ask_change_percentNumericThe ratio of the close to open ask difference, in percent.  
trade_countNumericThe number of qualified trades executed during the period  
object
IntrinioSDK::SecuritySummary

Properties

NameTypeDescription
idCharacterThe Intrinio ID for Security  
company_idCharacterThe Intrinio ID for the Company for which the Security is issued  
exchangeCharacterThe exchange's MIC  
exchange_micCharacterThe security's exchange MIC  
stock_exchange_idCharacterThe exchange's Intrinio ID  
nameCharacterThe name of the Security  
codeCharacterA 2-3 digit code classifying the Security (reference)  
currencyCharacterThe currency in which the Security is traded on the exchange  
tickerCharacterThe common/local ticker of the Security  
composite_tickerCharacterThe country-composite ticker of the Security  
figiCharacterThe OpenFIGI identifier  
composite_figiCharacterThe country-composite OpenFIGI identifier  
share_class_figiCharacterThe global-composite OpenFIGI identifier  
primary_listingLogicalIf TRUE, the Security is the primary issue for the company, otherwise it is a secondary issue on a secondary stock exchange