Stock Prices by Security

Stock Prices by Security Csharp API Documentation

Return end-of-day stock prices for the Security with the given `identifier`

API Class:
Intrinio.SDK.Api.SecurityApi
Instance Method:
GetSecurityStockPrices()

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 GetSecurityStockPricesExample
{
public static void Main()
{
Configuration.Default.AddApiKey("api_key", "YOUR_API_KEY");
Configuration.Default.AllowRetries = true;
var securityApi = new SecurityApi();
string identifier = "AAPL";
DateTime? startDate = DateTime.Parse("2018-01-01");
DateTime? endDate = DateTime.Parse("2019-01-01");
string frequency = "daily";
int? pageSize = 100;
string nextPage = null;
ApiResponseSecurityStockPrices result = securityApi.GetSecurityStockPrices(identifier, startDate, endDate, frequency, pageSize, nextPage);
Console.WriteLine(JsonConvert.SerializeObject(result, Formatting.Indented));
}
}
}
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Parameters

NameTypeDescriptionNotes
identifierstringA Security identifier (Ticker, FIGI, ISIN, CUSIP, Intrinio ID) 
startDateDateTime?Return prices on or after the date[optional]  
endDateDateTime?Return prices on or before the date[optional]  
frequencystringReturn stock prices in the given frequency[optional] [default to daily]  
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.ApiResponseSecurityStockPrices

Properties

NameTypeDescription
StockPricesListThe stock prices for the Security  
SecuritySecuritySummaryThe Security resolved from the given identifier  
NextPagestringThe token required to request the next page of the data. If null, no further results are available.  
object
Intrinio.SDK.Model.StockPriceSummary

Properties

NameTypeDescription
DateDateTime?The calendar date that the stock price represents. For non-daily stock prices, this represents the last day in the period (end of the week, month, quarter, year, etc)  
Intraperiodbool?If true, the stock price represents an unfinished period (be it day, week, quarter, month, or year), meaning that the close price is the latest price available, not the official close price for the period  
FrequencystringThe type of period that the stock price represents  
Opendecimal?The price at the beginning of the period  
Highdecimal?The highest price over the span of the period  
Lowdecimal?The lowest price over the span of the period  
Closedecimal?The price at the end of the period  
Volumedecimal?The number of shares exchanged during the period  
AdjOpendecimal?The price at the beginning of the period, adjusted for splits and dividends  
AdjHighdecimal?The highest price over the span of the period, adjusted for splits and dividends  
AdjLowdecimal?The lowest price over the span of the period, adjusted for splits and dividends  
AdjClosedecimal?The price at the end of the period, adjusted for splits and dividends  
AdjVolumedecimal?The number of shares exchanged during the period, adjusted for splits and dividends  
Factordecimal?The factor by which to multiply stock prices before this date, in order to calculate historically-adjusted stock prices.  
SplitRatiodecimal?The ratio of the stock split, if a stock split occurred.  
Dividenddecimal?The dividend amount, if a dividend was paid.  
Changedecimal?The difference in price from the last price for this frequency  
PercentChangedecimal?The percent difference in price from the last price for this frequency  
FiftyTwoWeekHighdecimal?The 52 week high price (daily only)  
FiftyTwoWeekLowdecimal?The 52 week low price (daily only)  
object
Intrinio.SDK.Model.SecuritySummary

Properties

NameTypeDescription
IdstringThe Intrinio ID for Security  
CompanyIdstringThe Intrinio ID for the Company for which the Security is issued  
ExchangestringThe exchange's MIC  
ExchangeMicstringThe security's exchange MIC  
StockExchangeIdstringThe exchange's Intrinio ID  
NamestringThe name of the Security  
CodestringA 2-3 digit code classifying the Security (reference)  
CurrencystringThe currency in which the Security is traded on the exchange  
TickerstringThe common/local ticker of the Security  
CompositeTickerstringThe country-composite ticker of the Security  
FigistringThe OpenFIGI identifier  
CompositeFigistringThe country-composite OpenFIGI identifier  
ShareClassFigistringThe global-composite OpenFIGI identifier  
PrimaryListingbool?If true, the Security is the primary issue for the company, otherwise it is a secondary issue on a secondary stock exchange