2024-06-16 13:57:50 +03:00
|
|
|
namespace MtApi.Monitors
|
2016-09-09 19:10:10 +03:00
|
|
|
{
|
2024-06-16 13:57:50 +03:00
|
|
|
public class AvailabilityOrdersEventArgs(List<MtOrder> opened, List<MtOrder> closed) : EventArgs
|
2016-09-09 19:10:10 +03:00
|
|
|
{
|
2020-10-13 15:52:55 +02:00
|
|
|
/// <summary>
|
|
|
|
|
/// Contains all newly opened orders since the last time the monitor checked the open orders.
|
|
|
|
|
/// </summary>
|
2024-06-16 13:57:50 +03:00
|
|
|
public List<MtOrder> Opened { get; private set; } = opened;
|
2020-10-13 15:52:55 +02:00
|
|
|
/// <summary>
|
|
|
|
|
/// Contains all newly closed orders since the last time the monitor checked the open orders.
|
|
|
|
|
/// </summary>
|
2024-06-16 13:57:50 +03:00
|
|
|
public List<MtOrder> Closed { get; private set; } = closed;
|
2016-09-09 19:10:10 +03:00
|
|
|
}
|
|
|
|
|
}
|