Table of Contents

Class WorkingTime

Namespace
ATAS.DataFeedsCore
Assembly
ATAS.DataFeedsCore.dll

Weekly trading session of an Exchange, in exchange local time.

[DataContract]
public class WorkingTime : IEntity
Inheritance
object
WorkingTime
Implements
Extension Methods

Constructors

WorkingTime()

Creates a session from Monday 00:00 to Saturday 00:00.

public WorkingTime()

Properties

EndDay

Day of the week on which the session closes; the session must not wrap past Saturday.

[DataMember]
[LocalizedCategory(typeof(Strings), "Common")]
[LocalizedDisplayName(typeof(Strings), "EndDay")]
public DayOfWeek EndDay { get; set; }

Property Value

DayOfWeek

EndTime

Time of day at which the session closes.

[DataMember]
[LocalizedCategory(typeof(Strings), "Common")]
[LocalizedDisplayName(typeof(Strings), "EndTime")]
public TimeSpan EndTime { get; set; }

Property Value

TimeSpan

EntityType

Always WorkingTime.

[Browsable(false)]
public EntityType EntityType { get; }

Property Value

EntityType

Exchange

Code of the exchange the session belongs to.

[DataMember]
[Browsable(false)]
public string Exchange { get; set; }

Property Value

string

StartDay

Day of the week on which the session opens.

[DataMember]
[LocalizedCategory(typeof(Strings), "Common")]
[LocalizedDisplayName(typeof(Strings), "StartDay")]
public DayOfWeek StartDay { get; set; }

Property Value

DayOfWeek

StartTime

Time of day at which the session opens.

[DataMember]
[LocalizedCategory(typeof(Strings), "Common")]
[LocalizedDisplayName(typeof(Strings), "StartTime")]
public TimeSpan StartTime { get; set; }

Property Value

TimeSpan

Methods

Clone()

Creates a copy of the session days and times; Exchange is not copied.

public WorkingTime Clone()

Returns

WorkingTime

The new session.

IsWorkingTime(DateTime)

Checks whether a time is inside the session; both bounds are inclusive.

public bool IsWorkingTime(DateTime time)

Parameters

time DateTime

Exchange local time; only its day of week and time of day are used.

Returns

bool

true when the time is inside the session.

OnPropertyChanged(string)

protected virtual void OnPropertyChanged(string propertyName)

Parameters

propertyName string

Name of the changed property.

ToString()

Returns a string that represents the current object.

public override string ToString()

Returns

string

A string that represents the current object.

Events

PropertyChanged

Occurs when a session day or time changes.

        <p>Added in ATAS 8.0.15.</p>
public event PropertyChangedEventHandler? PropertyChanged

Event Type

PropertyChangedEventHandler