Historical Data for Company

Historical Data for Company Csharp API Documentation

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

API Class:
Intrinio.SDK.Api.CompanyApi
Instance Method:
GetCompanyHistoricalData()

Stock Price Code Example

Use my API Key
using System;
using System.Diagnostics;
using System.Collections;
using System.Collections.Generic;
using Intrinio.SDK.Api;
using Intrinio.SDK.Client;
using Intrinio.SDK.Model;
using Newtonsoft.Json;
namespace Example
{
public class GetCompanyHistoricalDataExample
{
public static void Main()
{
Configuration.Default.AddApiKey("api_key", "YOUR_API_KEY");
Configuration.Default.AllowRetries = true;
var companyApi = new CompanyApi();
string identifier = "AAPL";
string tag = "marketcap";
string frequency = "daily";
string type = null;
DateTime? startDate = DateTime.Parse("2018-01-01");
DateTime? endDate = null;
string sortOrder = null;
int? pageSize = 100;
string nextPage = null;
ApiResponseCompanyHistoricalData result = companyApi.GetCompanyHistoricalData(identifier, tag, frequency, type, startDate, endDate, sortOrder,
        pageSize, nextPage);
Console.WriteLine(JsonConvert.SerializeObject(result, Formatting.Indented));
}
}
}
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
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]  
startDateDateTime?Return historical data on or after this date[optional]  
endDateDateTime?Return historical data on or before this date[optional]  
sortOrderstringSort by date `asc` or `desc`[optional] [default to desc]  
pageSizeint?The number of results to return[optional] [default to 100]  
nextPagestringGets the next page of data from a previous API call[optional]  


Return Type

object
Intrinio.SDK.Model.ApiResponseCompanyHistoricalData

Properties

NameTypeDescription
HistoricalDataList 
CompanyCompanySummary 
NextPagestringThe token required to request the next page of the data. If null, no further results are available.  
object
Intrinio.SDK.Model.HistoricalData

Properties

NameTypeDescription
DateDateTime?The date that the value is present  
Valuedecimal?The historical value  
object
Intrinio.SDK.Model.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