Historical Data for Company

Historical Data for Company R API Documentation

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

API Class:
IntrinioSDK::CompanyApi
Instance Method:
get_company_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
CompanyApi <- IntrinioSDK::CompanyApi$new(client)
# Required params
identifier <- "AAPL"
tag <- "marketcap"
# 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 <- CompanyApi$get_company_historical_data(identifier, tag, opts)
print(response)
print(response$content)
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Parameters

NameTypeDescriptionNotes
identifierCharacterA Company identifier (Ticker, CIK, LEI, Intrinio ID) 
tagCharacterAn Intrinio data tag ID or code (reference) 
frequencyCharacterReturn historical data in the given frequency[optional] [default to daily]  
typeCharacterReturn historical data for given fiscal period type[optional]  
start_dateDateReturn historical data on or after this date[optional]  
end_dateDateReturn historical data 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::ApiResponseCompanyHistoricalData

Properties

NameTypeDescription
historical_dataList of HistoricalData 
historical_data_data_frameData FrameData frame representation of historical_data
companyCompanySummary 
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::CompanySummary

Properties

NameTypeDescription
idCharacterThe Intrinio ID of the company  
tickerCharacterThe stock market ticker symbol associated with the company's common stock securities  
nameCharacterThe company's common name  
leiCharacterThe Legal Entity Identifier (LEI) assigned to the company  
cikCharacterThe Central Index Key (CIK) assigned to the company