mirror of
https://github.com/vdemydiuk/mtapi.git
synced 2026-08-23 07:38:13 +00:00
Refactored MtApi4 (MT4) for working with new architecture
This commit is contained in:
@@ -1,22 +1,14 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace MtApi.Monitors
|
||||
namespace MtApi.Monitors
|
||||
{
|
||||
public class AvailabilityOrdersEventArgs : EventArgs
|
||||
public class AvailabilityOrdersEventArgs(List<MtOrder> opened, List<MtOrder> closed) : EventArgs
|
||||
{
|
||||
public AvailabilityOrdersEventArgs(List<MtOrder> opened, List<MtOrder> closed)
|
||||
{
|
||||
Opened = opened;
|
||||
Closed = closed;
|
||||
}
|
||||
/// <summary>
|
||||
/// Contains all newly opened orders since the last time the monitor checked the open orders.
|
||||
/// </summary>
|
||||
public List<MtOrder> Opened { get; private set; }
|
||||
public List<MtOrder> Opened { get; private set; } = opened;
|
||||
/// <summary>
|
||||
/// Contains all newly closed orders since the last time the monitor checked the open orders.
|
||||
/// </summary>
|
||||
public List<MtOrder> Closed { get; private set; }
|
||||
public List<MtOrder> Closed { get; private set; } = closed;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user