2024-01-11 22:54:56 +02:00
|
|
|
namespace MtApi5
|
2014-10-31 09:05:52 +02:00
|
|
|
{
|
|
|
|
|
public class MqlBookInfo
|
|
|
|
|
{
|
|
|
|
|
public MqlBookInfo(ENUM_BOOK_TYPE type, double price, long volume)
|
|
|
|
|
{
|
|
|
|
|
this.type = type;
|
|
|
|
|
this.price = price;
|
|
|
|
|
this.volume = volume;
|
|
|
|
|
}
|
|
|
|
|
|
2018-03-08 16:22:37 +02:00
|
|
|
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
|
2019-03-18 17:31:54 +02:00
|
|
|
public double volume_real { get; set; } // Volume for the current Last price with greater accuracy
|
2018-02-21 14:43:25 +02:00
|
|
|
|
|
|
|
|
public override string ToString()
|
|
|
|
|
{
|
2018-03-08 16:22:37 +02:00
|
|
|
return $"type = {type}; price = {price}; volume = {volume}";
|
2018-02-21 14:43:25 +02:00
|
|
|
}
|
2014-10-31 09:05:52 +02:00
|
|
|
}
|
|
|
|
|
}
|