Added field ExpertHandle into class Mt5Quote

This commit is contained in:
vdemydiuk
2018-03-19 15:09:02 +02:00
parent 486a1979a6
commit 95c55e90be
3 changed files with 15 additions and 10 deletions
+11 -2
View File
@@ -1,16 +1,25 @@
namespace MtApi5
using MTApiService;
namespace MtApi5
{
public class Mt5Quote
{
public string Instrument { get; }
public double Bid { get; }
public double Ask { get; }
public int ExpertHandle { get; set; }
public Mt5Quote(string instrument, double bid, double ask)
private Mt5Quote(string instrument, double bid, double ask)
{
Instrument = instrument;
Bid = bid;
Ask = ask;
}
internal Mt5Quote(MtQuote quote)
:this(quote.Instrument, quote.Bid, quote.Ask)
{
ExpertHandle = quote.ExpertHandle;
}
}
}