Issue #33: Implemented function SeriesInfoInteger (MtApi MT4)

This commit is contained in:
vdemydiuk
2016-11-13 23:24:38 +02:00
parent 6d4b5f4c00
commit c64417474a
31 changed files with 152 additions and 132 deletions
+12
View File
@@ -1466,6 +1466,18 @@ namespace MtApi
return response?.Rates;
}
public long SeriesInfoInteger(string symbolName, ENUM_TIMEFRAMES timeframe, EnumSeriesInfoInteger propId)
{
var response = SendRequest<SeriesInfoIntegerResponse>(new SeriesInfoIntegerRequest
{
SymbolName = symbolName,
Timeframe = (int)timeframe,
PropId = (int)propId
});
return response?.Value ?? 0;
}
#endregion
#region Checkup