Skip to content

Commit 883297d

Browse files
authored
Add files via upload
1 parent 69472dd commit 883297d

File tree

2 files changed

+18
-1
lines changed

2 files changed

+18
-1
lines changed

MT5socketAPI/Asset.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,10 @@ public class Asset
4343
public string CURRENCY_MARGIN { get; set; }
4444
public string DESCRIPTION { get; set; }
4545
public string PATH { get; set; }
46+
public List<Dictionary<string, string>> SESSION_QUOTE { get; set; }
47+
public List<Dictionary<string, string>> SESSION_TRADE { get; set; }
4648

47-
public override string ToString()
49+
public override string ToString()
4850
{
4951
return JsonConvert.SerializeObject(this);
5052
}

MT5socketAPI/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;
@@ -32,4 +33,18 @@ public override string ToString()
3233
return JsonConvert.SerializeObject(this);
3334
}
3435
}
36+
37+
public class OHLC_Req
38+
{
39+
//public string MSG { get; set; }
40+
[Required]
41+
public string SYMBOL { get; set; }
42+
[Required]
43+
public string TIMEFRAME { get; set; }
44+
public int? DEPTH { get; set; }
45+
public override string ToString()
46+
{
47+
return JsonConvert.SerializeObject(this);
48+
}
49+
}
3550
}

0 commit comments

Comments
 (0)