Interval Stock Prices for Security

Interval Stock Prices for Security Csharp API Documentation

Return open, close, high, low, volume, average price, and change ratio for a particular interval for the Security with the given `identifier`

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

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 GetSecurityIntervalPricesExample
{
public static void Main()
{
Configuration.Default.AddApiKey("api_key", "YOUR_API_KEY");
Configuration.Default.AllowRetries = true;
var securityApi = new SecurityApi();
string identifier = "AAPL";
string intervalSize = "15m";
string source = null;
DateTime? startDate = DateTime.Parse("2023-01-01");
string startTime = 33300;
DateTime? endDate = DateTime.Parse("2023-02-01");
string endTime = 33300;
string timezone = "UTC";
int? pageSize = 100;
bool? splitAdjusted = false;
bool? includeQuoteOnlyBars = false;
string nextPage = null;
ApiResponseSecurityIntervalPrices result = securityApi.GetSecurityIntervalPrices(identifier, intervalSize, source, startDate, startTime, endDate
        , endTime, timezone, pageSize, splitAdjusted, includeQuoteOnlyBars, nextPage);
Console.WriteLine(JsonConvert.SerializeObject(result, Formatting.Indented));
}
}
}
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Parameters

NameTypeDescriptionNotes
identifierstringA Security identifier (Ticker, FIGI, ISIN, CUSIP, Intrinio ID) 
intervalSizestringThe interval for which to return stock prices[default to 15m]  
sourcestringReturn intervals from the specified data source[optional]  
startDateDateTime?Return intervals starting at the specified date[optional]  
startTimestringReturn intervals starting at the specified time on the `start_date` (24-hour in ‘hh:mm:ss' format)[optional]  
endDateDateTime?Return intervals stopping at the specified date[optional]  
endTimestringReturn intervals stopping at the specified time on the `end_date` (24-hour in ‘hh:mm:ss' format)[optional]  
timezonestringInterprets the input times in this time zone, as well as returns times in this timezone.[optional] [default to UTC]  
pageSizeint?The number of results to return[optional] [default to 100]  
splitAdjustedbool?Whether to return the values adjusted for splits or not. Default is false.[optional] [default to false]  
includeQuoteOnlyBarsbool?If true, also include bars where no trades occurred but quotes did.[optional] [default to false]  
nextPagestringGets the next page of data from a previous API call[optional]  


Return Type

object
Intrinio.SDK.Model.ApiResponseSecurityIntervalPrices

Properties

NameTypeDescription
IntervalsListOpen, close, high, low, volume, average price, and change ratio for a particular interval  
SecuritySecuritySummaryThe Security resolved from the given identifier  
SourcestringThe source of the data  
NextPagestringThe token required to request the next page of the data. If null, no further results are available.  
object
Intrinio.SDK.Model.StockPriceInterval

Properties

NameTypeDescription
TimeDateTime?The timestamp that represents the start of the interval span.  
Opendecimal?The first traded price during the period  
Closedecimal?The last traded price during the period  
Highdecimal?The highest price over the span of the period  
Lowdecimal?The lowest price over the span of the period  
Volumedecimal?The number of shares exchanged during the period  
CloseTimeDateTime?The timestamp that represents the end of the interval span.  
IntervalstringThe size of the interval.  
Averagedecimal?The average trade price of an individual stock during the interval.  
Changedecimal?The change ratio from open to close. ((Close - Open)/Open).  
BidHighdecimal?The highest bid price from the interval.  
BidLowdecimal?The lowest bid price from the interval.  
BidClosedecimal?The last bid price from the interval.  
BidOpendecimal?The first bid price from the interval.  
BidFirstTimeDateTime?The timestamp that represents the first bid time from the interval span.  
BidLastTimeDateTime?The timestamp that represents the last bid time from the interval span.  
BidChangePercentdecimal?The ratio of the close to open bid difference, in percent.  
AskHighdecimal?The highest ask price from the interval.  
AskLowdecimal?The lowest ask price from the interval.  
AskClosedecimal?The last ask price from the interval.  
AskOpendecimal?The first ask price from the interval.  
AskFirstTimeDateTime?The timestamp that represents the first ask time from the interval span.  
AskLastTimeDateTime?The timestamp that represents the last ask time from the interval span.  
AskChangePercentdecimal?The ratio of the close to open ask difference, in percent.  
TradeCountdecimal?The number of qualified trades executed during the period  
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