mirror of
https://github.com/vdemydiuk/mtapi.git
synced 2026-07-28 19:17:48 +00:00
26 lines
605 B
C#
Executable File
26 lines
605 B
C#
Executable File
using MTApiService;
|
|
|
|
namespace MtApi5
|
|
{
|
|
public class Mt5Quote
|
|
{
|
|
public string Instrument { get; }
|
|
public double Bid { get; }
|
|
public double Ask { get; }
|
|
public int ExpertHandle { get; set; }
|
|
|
|
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;
|
|
}
|
|
}
|
|
}
|