Class PortfolioHistoryRequest
Encapsulates request parameters for GetPortfolioHistoryAsync(PortfolioHistoryRequest, CancellationToken) call.
Inheritance
Inherited Members
Namespace: Alpaca.Markets
Assembly: Alpaca.Markets.dll
Syntax
public sealed class PortfolioHistoryRequest
Properties
| Improve this Doc View SourceDateInterval
Gets inclusive date interval for filtering items in response.
Declaration
public Interval<DateOnly> DateInterval { get; }
Property Value
Type | Description |
---|---|
Alpaca.Markets.Interval<DateOnly> |
ExtendedHours
Gets or sets flags, indicating that include extended hours included in the result. This is effective only for time frame less than 1 day.
Declaration
public Boolean? ExtendedHours { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<Boolean> |
Interval
Gets inclusive date interval for filtering items in response.
Declaration
public Interval<DateTime> Interval { get; }
Property Value
Type | Description |
---|---|
Alpaca.Markets.Interval<DateTime> |
IntradayProfitLoss
Declaration
public IntradayProfitLoss? IntradayProfitLoss { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<IntradayProfitLoss> |
IntradayReporting
Declaration
public IntradayReporting? IntradayReporting { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<IntradayReporting> |
Period
Gets or sets period value for desired history. Default value (if null
) is 1 month.
Declaration
public HistoryPeriod? Period { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<Alpaca.Markets.HistoryPeriod> |
TimeFrame
Gets or sets the time frame value for desired history. Default value (if null
) is 1 minute
for a period shorter than 7 days, 15 minutes for a period less than 30 days, or 1 day for a longer period.
Declaration
public TimeFrame? TimeFrame { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<TimeFrame> |
TimeInterval
Gets inclusive date interval for filtering items in response.
Declaration
public Interval<DateTime> TimeInterval { get; }
Property Value
Type | Description |
---|---|
Alpaca.Markets.Interval<DateTime> |
Methods
| Improve this Doc View SourceWithInterval(Interval<DateOnly>)
Sets time interval for filtering data returned by this request. ///
Declaration
public PortfolioHistoryRequest WithInterval(Interval<DateOnly> value)
Parameters
Type | Name | Description |
---|---|---|
Alpaca.Markets.Interval<DateOnly> | value | New filtering interval. |
Returns
Type | Description |
---|---|
PortfolioHistoryRequest | Request with applied filtering. |
WithInterval(Interval<DateTime>)
Sets time interval for filtering data returned by this request. ///
Declaration
public PortfolioHistoryRequest WithInterval(Interval<DateTime> value)
Parameters
Type | Name | Description |
---|---|---|
Alpaca.Markets.Interval<DateTime> | value | New filtering interval. |
Returns
Type | Description |
---|---|
PortfolioHistoryRequest | Request with applied filtering. |