mirror of
https://github.com/vdemydiuk/mtapi.git
synced 2026-08-08 16:37:51 +00:00
Reractored functions GetOrder and GetOrders in MQL part.
This commit is contained in:
@@ -4,7 +4,7 @@ using System.Drawing;
|
||||
using System.Windows.Forms;
|
||||
using MtApi;
|
||||
using System.Threading.Tasks;
|
||||
using System.Collections;
|
||||
using System.Linq;
|
||||
|
||||
namespace TestApiClientUI
|
||||
{
|
||||
@@ -885,7 +885,7 @@ namespace TestApiClientUI
|
||||
|
||||
var orders = await Execute(() => _apiClient.GetOrders(selectSource)); ;
|
||||
|
||||
if (orders != null)
|
||||
if (orders != null && orders.Count() > 0)
|
||||
{
|
||||
foreach (var order in orders)
|
||||
{
|
||||
@@ -896,6 +896,10 @@ namespace TestApiClientUI
|
||||
AddToLog(result);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
AddToLog("GetOrders: 0 orders");
|
||||
}
|
||||
}
|
||||
|
||||
//OrderSendBuy
|
||||
|
||||
Reference in New Issue
Block a user