mirror of
https://github.com/vdemydiuk/mtapi.git
synced 2026-07-28 02:57:56 +00:00
26 lines
791 B
C#
Executable File
26 lines
791 B
C#
Executable File
namespace MtApi5
|
|
{
|
|
public class MqlBookInfo
|
|
{
|
|
public MqlBookInfo(ENUM_BOOK_TYPE type, double price, long volume)
|
|
{
|
|
this.type = type;
|
|
this.price = price;
|
|
this.volume = volume;
|
|
}
|
|
|
|
public MqlBookInfo()
|
|
{ }
|
|
|
|
public ENUM_BOOK_TYPE type { get; set; } // Order type from ENUM_BOOK_TYPE enumeration
|
|
public double price { get; set; } // Price
|
|
public long volume { get; set; } // Volume
|
|
public double volume_real { get; set; } // Volume for the current Last price with greater accuracy
|
|
|
|
public override string ToString()
|
|
{
|
|
return $"type = {type}; price = {price}; volume = {volume}";
|
|
}
|
|
}
|
|
}
|