Historical Data for Company

Historical Data for Company Java API Documentation

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

API Class:
CompanyApi
Instance Method:
getCompanyHistoricalData()

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);
CompanyApi companyApi = new CompanyApi();
String identifier = "AAPL";
String tag = "marketcap";
String frequency = "daily";
String type = null;
LocalDate startDate = LocalDate.of(2018,1,01);
LocalDate endDate = null;
String sortOrder = "desc";
Integer pageSize = 100;
String nextPage = null;
ApiResponseCompanyHistoricalData result = companyApi.getCompanyHistoricalData(identifier, tag, frequency, type, startDate, endDate, sortOrder,
      pageSize, nextPage);
System.out.println(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] [enum: daily, weekly, monthly, quarterly, yearly]  
typeStringReturn historical data for given fiscal period type[optional] [enum: FY, QTR, TTM]  
startDateLocalDateReturn historical data on or after this date[optional]  
endDateLocalDateReturn historical data on or before this date[optional]  
sortOrderStringSort by date `asc` or `desc`[optional] [default to desc] [enum: asc, desc]  
pageSizeIntegerThe number of results to return[optional] [default to 100]  
nextPageStringGets the next page of data from a previous API call[optional]  


Return Type

object
ApiResponseCompanyHistoricalData

Properties

NameTypeDescription
historicalDataList 
companyCompanySummary 
nextPageStringThe token required to request the next page of the data. If null, no further results are available.  
object
HistoricalData

Properties

NameTypeDescription
dateLocalDateThe date that the value is present  
valueBigDecimalThe historical value  
object
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