mirror of
https://github.com/vdemydiuk/mtapi.git
synced 2026-07-28 02:57:56 +00:00
30 lines
779 B
C#
30 lines
779 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
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
|
|
{
|
|
get { return MtApiTimeConverter.ConvertFromMtTime(MtFromTime); }
|
|
}
|
|
public int MtToTime { get; set; }
|
|
public DateTime To
|
|
{
|
|
get { return MtApiTimeConverter.ConvertFromMtTime(MtToTime); }
|
|
}
|
|
public bool HasData { get; set; }
|
|
public SessionType Type { get; set; }
|
|
}
|
|
|
|
public enum SessionType { Quote, Trade }
|
|
}
|