Issue #31: Implemented function SymbolInfoTick in MtApi MT4

This commit is contained in:
vdemydiuk
2016-11-14 16:31:01 +02:00
parent 32f6018858
commit 563a5a895b
12 changed files with 168 additions and 102 deletions
+17
View File
@@ -1546,6 +1546,23 @@ namespace MtApi
return response?.Value ?? 0;
}
///<summary>
///Returns the corresponding property of a specified symbol.
///</summary>
///<param name="symbol">Symbol name.</param>
/// <returns>
/// MqlTick object, to which the current prices and time of the last price update will be placed.
/// </returns>
public MqlTick SymbolInfoTick(string symbol)
{
var response = SendRequest<SymbolInfoTickResponse>(new SymbolInfoTickRequest
{
Symbol = symbol
});
return response?.Tick;
}
#endregion
#region Private Methods