-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathPosition.cs
More file actions
38 lines (37 loc) · 1.28 KB
/
Position.cs
File metadata and controls
38 lines (37 loc) · 1.28 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
using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace MTsocketAPI.MT5
{
public class Position
{
public long TICKET { get; set; }
//public string TIME { get; set; } //<- REPLACED BY OPEN_TIME
public string OPEN_TIME { get; set; }
public string TIME_UPDATE { get; set; }
public string SYMBOL { get; set; }
public string TYPE { get; set; }
public double VOLUME { get; set; }
public double PRICE_OPEN { get; set; }
public int MAGIC { get; set; }
public string COMMENT { get; set; }
public string CLOSE_TIME { get; set; }
public double PRICE_CLOSE { get; set; }
public double PROFIT { get; set; }
public double COMMISSION { get; set; }
public double SWAP { get; set; }
public double SL { get; set; }
public double TP { get; set; }
public long IDENTIFIER { get; set; }
public long REASON { get; set; }
public double PRICE_CURRENT { get; set; }
public string EXTERNAL_ID { get; set; }
public override string ToString()
{
return JsonConvert.SerializeObject(this);
}
}
}