mirror of
https://github.com/vdemydiuk/mtapi.git
synced 2026-07-28 11:07:48 +00:00
22 lines
620 B
C#
22 lines
620 B
C#
namespace MtApi
|
|
{
|
|
public class MtSession
|
|
{
|
|
public string? Symbol { get; set; }
|
|
public DayOfWeek DayOfWeek { get; set; }
|
|
public uint Index { get; set; }
|
|
public int MtFromTime { get; set; }
|
|
public DateTime From => MtApiTimeConverter.ConvertFromMtTime(MtFromTime);
|
|
public int MtToTime { get; set; }
|
|
public DateTime To => MtApiTimeConverter.ConvertFromMtTime(MtToTime);
|
|
public bool HasData { get; set; }
|
|
public SessionType Type { get; set; }
|
|
}
|
|
|
|
public enum SessionType
|
|
{
|
|
Quote,
|
|
Trade
|
|
}
|
|
}
|