-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathDeal.cs
More file actions
51 lines (48 loc) · 1.55 KB
/
Deal.cs
File metadata and controls
51 lines (48 loc) · 1.55 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace MTsocketAPI.MT5
{
public class Deal
{
public string TIME { get; set; }
public long DEAL { get; set; }
public string SYMBOL { get; set; }
public long ORDER { get; set; }
public long POSITION { get; set; }
public string TYPE { get; set; }
public string REASON { get; set; }
public string DIRECTION { get; set; }
public double PRICE { get; set; }
public double VOLUME { get; set; }
public double SL { get; set; }
public double TP { get; set; }
public double COMMISSION { get; set; }
public double PROFIT { get; set; }
public int MAGIC { get; set; }
public string COMMENT { get; set; }
public override string ToString()
{
return JsonConvert.SerializeObject(this);
}
}
public class Order_Deal
{
public string TIME { get; set; }
public long TICKET { get; set; }
public string SYMBOL { get; set; }
public string TYPE { get; set; }
public double VOLUME { get; set; }
public double PRICE { get; set; }
public int MAGIC { get; set; }
public string COMMENT { get; set; }
public List<Deal> DEALS { get; set; }
public override string ToString()
{
return JsonConvert.SerializeObject(this);
}
}
}