Issue #284: MtApi5/MQL5 - added function GetSymbols

This commit is contained in:
Viacheslav Demydiuk
2025-09-30 16:14:13 +03:00
parent 92322e866e
commit c536585cd2
6 changed files with 94 additions and 18 deletions
+10
View File
@@ -2,6 +2,7 @@
using MtClient;
using MtApi5.MtProtocol;
using MtApi5.MtProtocol.ICustomRequest;
using System.Data;
namespace MtApi5
{
@@ -188,6 +189,15 @@ namespace MtApi5
}
}
///<summary>
///Load symbols
///</summary>
public List<string>? GetSymbols(bool selected)
{
Dictionary<string, object> cmdParams = new() { { "Selected", selected } };
return SendCommand<List<string>>(ExecutorHandle, Mt5CommandType.GetSymbols, cmdParams);
}
///<summary>
///Checks if the Expert Advisor runs in the testing mode..
///</summary>
+2 -1
View File
@@ -259,6 +259,7 @@ namespace MtApi5.MtProtocol
OrderSendAsync = 302,
OrderCheck = 303,
Buy = 304,
Sell = 305
Sell = 305,
GetSymbols = 306
}
}