Class IntervalCalenderExtensions
Set of extensions methods for the IIntervalCalendar interface.
Inheritance
System.Object
IntervalCalenderExtensions
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
Assembly: Alpaca.Markets.dll
Syntax
public static class IntervalCalenderExtensions
Methods
| Improve this Doc View SourceGetSessionCloseTimeEst(IIntervalCalendar)
Gets session close time in EST time zone.
Declaration
public static DateTime GetSessionCloseTimeEst(this IIntervalCalendar calendar)
Parameters
Type | Name | Description |
---|---|---|
IIntervalCalendar | calendar | Alpaca calendar data. |
Returns
Type | Description |
---|---|
DateTime |
GetSessionCloseTimeUtc(IIntervalCalendar)
Gets session close time in UTC time zone.
Declaration
public static DateTime GetSessionCloseTimeUtc(this IIntervalCalendar calendar)
Parameters
Type | Name | Description |
---|---|---|
IIntervalCalendar | calendar | Alpaca calendar data. |
Returns
Type | Description |
---|---|
DateTime |
GetSessionOpenTimeEst(IIntervalCalendar)
Gets session open time in EST time zone.
Declaration
public static DateTime GetSessionOpenTimeEst(this IIntervalCalendar calendar)
Parameters
Type | Name | Description |
---|---|---|
IIntervalCalendar | calendar | Alpaca calendar data. |
Returns
Type | Description |
---|---|
DateTime |
GetSessionOpenTimeUtc(IIntervalCalendar)
Gets session open time in UTC time zone.
Declaration
public static DateTime GetSessionOpenTimeUtc(this IIntervalCalendar calendar)
Parameters
Type | Name | Description |
---|---|---|
IIntervalCalendar | calendar | Alpaca calendar data. |
Returns
Type | Description |
---|---|
DateTime |
GetTradingCloseTimeEst(IIntervalCalendar)
Gets trading close time in EST time zone.
Declaration
public static DateTime GetTradingCloseTimeEst(this IIntervalCalendar calendar)
Parameters
Type | Name | Description |
---|---|---|
IIntervalCalendar | calendar | Alpaca calendar data. |
Returns
Type | Description |
---|---|
DateTime |
GetTradingCloseTimeUtc(IIntervalCalendar)
Gets trading close time in UTC time zone.
Declaration
public static DateTime GetTradingCloseTimeUtc(this IIntervalCalendar calendar)
Parameters
Type | Name | Description |
---|---|---|
IIntervalCalendar | calendar | Alpaca calendar data. |
Returns
Type | Description |
---|---|
DateTime |
GetTradingDate(IIntervalCalendar)
Gets trading date (midnight or 00:00 time point).
Declaration
public static DateOnly GetTradingDate(this IIntervalCalendar calendar)
Parameters
Type | Name | Description |
---|---|---|
IIntervalCalendar | calendar | Alpaca calendar data. |
Returns
Type | Description |
---|---|
DateOnly |
GetTradingOpenTimeEst(IIntervalCalendar)
Gets trading open time in EST time zone.
Declaration
public static DateTime GetTradingOpenTimeEst(this IIntervalCalendar calendar)
Parameters
Type | Name | Description |
---|---|---|
IIntervalCalendar | calendar | Alpaca calendar data. |
Returns
Type | Description |
---|---|
DateTime |
GetTradingOpenTimeUtc(IIntervalCalendar)
Gets trading open time in UTC time zone.
Declaration
public static DateTime GetTradingOpenTimeUtc(this IIntervalCalendar calendar)
Parameters
Type | Name | Description |
---|---|---|
IIntervalCalendar | calendar | Alpaca calendar data. |
Returns
Type | Description |
---|---|
DateTime |