mirror of
https://github.com/vdemydiuk/mtapi.git
synced 2026-08-13 18:58:09 +00:00
Issue #33: Implemented function SeriesInfoInteger (MtApi MT4)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user