Historical Data for Company

Historical Data for Company Ruby API Documentation

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

API Class:
Intrinio::CompanyApi
Instance Method:
get_company_historical_data()

Stock Price Code Example

Use my API Key
# Load the gem
require 'intrinio-sdk'
require 'pp'
# Setup authorization
Intrinio.configure do |config|
config.api_key['api_key'] = 'YOUR_API_KEY'
config.allow_retries = true
end
company_api = Intrinio::CompanyApi.new
identifier = "AAPL"
tag = "marketcap"
opts = {
frequency: "daily",
type: nil,
start_date: Date.parse("2018-01-01"),
end_date: nil,
sort_order: "desc",
page_size: 100,
next_page: nil
}
result = company_api.get_company_historical_data(identifier, tag, opts)
pp result
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Parameters

NameTypeDescriptionNotes
identifierStringA Company identifier (Ticker, CIK, LEI, Intrinio ID) 
tagStringAn Intrinio data tag ID or code (reference) 
frequencyStringReturn historical data in the given frequency[optional] [default to daily]  
typeStringReturn 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_orderStringSort by date `asc` or `desc`[optional] [default to desc]  
page_sizeIntegerThe number of results to return[optional] [default to 100]  
next_pageStringGets the next page of data from a previous API call[optional]  

Return Type

object
Intrinio::ApiResponseCompanyHistoricalData

Properties

NameTypeDescription
historical_dataArray 
companyCompanySummary 
next_pageStringThe token required to request the next page of the data. If null, no further results are available.  
object
Intrinio::HistoricalData

Properties

NameTypeDescription
dateDateThe date that the value is present  
valueFloatThe historical value  
object
Intrinio::CompanySummary

Properties

NameTypeDescription
idStringThe Intrinio ID of the company  
tickerStringThe stock market ticker symbol associated with the company's common stock securities  
nameStringThe company's common name  
leiStringThe Legal Entity Identifier (LEI) assigned to the company  
cikStringThe Central Index Key (CIK) assigned to the company