mirror of
https://github.com/vdemydiuk/mtapi.git
synced 2026-08-13 02:38:07 +00:00
Issue #284: MtApi5/MQL5 - added function GetSymbols
This commit is contained in:
@@ -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>
|
||||
|
||||
@@ -259,6 +259,7 @@ namespace MtApi5.MtProtocol
|
||||
OrderSendAsync = 302,
|
||||
OrderCheck = 303,
|
||||
Buy = 304,
|
||||
Sell = 305
|
||||
Sell = 305,
|
||||
GetSymbols = 306
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user