Historical Data for Security

Historical Data for Security R API Documentation

Returns historical values for the given `tag` and the Security with the given `identifier`

API Class:
IntrinioSDK::SecurityApi
Instance Method:
get_security_historical_data()

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"
tag <- "adj_close_price"
# Optional params
opts <- list(
frequency = "daily",
type = NULL,
start_date = as.Date("2018-01-01"),
end_date = NULL,
sort_order = "desc",
page_size = 100,
next_page = NULL
)
response <- SecurityApi$get_security_historical_data(identifier, tag, opts)
print(response)
print(response$content)
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Parameters

NameTypeDescriptionNotes
identifierCharacterA Security identifier (Ticker, FIGI, ISIN, CUSIP, Intrinio ID) 
tagCharacterAn Intrinio data tag ID or code (reference) 
frequencyCharacterReturn historical data in the given frequency[optional] [default to daily]  
typeCharacterFilter by type, when applicable[optional]  
start_dateDateGet historical data on or after this date[optional]  
end_dateDateGet historical date on or before this date[optional]  
sort_orderCharacterSort by date `asc` or `desc`[optional] [default to desc]  
page_sizeIntegerThe number of results to return[optional] [default to 100]  
next_pageCharacterGets the next page of data from a previous API call[optional]  


Return Type

object
IntrinioSDK::ApiResponseSecurityHistoricalData

Properties

NameTypeDescription
historical_dataList of HistoricalData 
historical_data_data_frameData FrameData frame representation of historical_data
securitySecuritySummary 
next_pageCharacterThe token required to request the next page of the data. If null, no further results are available.  
object
IntrinioSDK::HistoricalData

Properties

NameTypeDescription
dateDateThe date that the value is present  
valueNumericThe historical value  
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