Skip to content

Commit 69472dd

Browse files
authored
Add files via upload
1 parent 059c3d9 commit 69472dd

File tree

2 files changed

+19
-2
lines changed

2 files changed

+19
-2
lines changed

MT4socketAPI/Asset.cs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
namespace MTsocketAPI.MT4
99
{
10-
public class Asset
10+
public class Asset
1111
{
1212
//public string MSG { get; set; }
1313
public string NAME { get; set; }
@@ -39,7 +39,9 @@ public class Asset
3939
public string CURRENCY_MARGIN { get; set; }
4040
public string DESCRIPTION { get; set; }
4141
public string PATH { get; set; }
42-
public override string ToString()
42+
public List<Dictionary<string,string>> SESSION_QUOTE { get; set; }
43+
public List<Dictionary<string, string>> SESSION_TRADE { get; set; }
44+
public override string ToString()
4345
{
4446
return JsonConvert.SerializeObject(this);
4547
}

MT4socketAPI/Quote.cs

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
using Newtonsoft.Json;
22
using System;
33
using System.Collections.Generic;
4+
using System.ComponentModel.DataAnnotations;
45
using System.Linq;
56
using System.Text;
67
using System.Threading.Tasks;
@@ -33,4 +34,18 @@ public override string ToString()
3334
return JsonConvert.SerializeObject(this);
3435
}
3536
}
37+
38+
public class OHLC_Req
39+
{
40+
//public string MSG { get; set; }
41+
[Required]
42+
public string SYMBOL { get; set; }
43+
[Required]
44+
public string TIMEFRAME { get; set; }
45+
public int? DEPTH { get; set; }
46+
public override string ToString()
47+
{
48+
return JsonConvert.SerializeObject(this);
49+
}
50+
}
3651
}

0 commit comments

Comments
 (0)