Class CalendarExtensions
Set of extension methods for the ICalendar interface.
Inheritance
System.Object
CalendarExtensions
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Alpaca.Markets.Extensions
Assembly: Alpaca.Markets.Extensions.dll
Syntax
public static class CalendarExtensions
Methods
| Improve this Doc View SourceAsExclusiveTimeIntervalUtc(ICalendar)
Converts the ICalendar open/close times into the IExclusiveTimeInterval instance for using in requests.
Declaration
public static IExclusiveTimeInterval AsExclusiveTimeIntervalUtc(this ICalendar calendar)
Parameters
Type | Name | Description |
---|---|---|
ICalendar | calendar | The source open/close times information. |
Returns
Type | Description |
---|---|
IExclusiveTimeInterval | The exclusive time interval constructed from the |
AsInclusiveTimeIntervalUtc(ICalendar)
Converts the ICalendar open/close times into the IInclusiveTimeInterval instance for using in requests.
Declaration
public static IInclusiveTimeInterval AsInclusiveTimeIntervalUtc(this ICalendar calendar)
Parameters
Type | Name | Description |
---|---|---|
ICalendar | calendar | The source open/close times information. |
Returns
Type | Description |
---|---|
IInclusiveTimeInterval | The inclusive time interval constructed from the |
AsIntervalUtc(ICalendar)
Converts the ICalendar open/close times into the Alpaca.Markets.Interval<TItem> instance for using in requests.
Declaration
public static Interval<DateTime> AsIntervalUtc(this ICalendar calendar)
Parameters
Type | Name | Description |
---|---|---|
ICalendar | calendar | The source open/close times information. |
Returns
Type | Description |
---|---|
Alpaca.Markets.Interval<DateTime> | The inclusive time interval constructed from the |