Issue #102: fixed long type of result in function SeriesInfoInteger

This commit is contained in:
vdemydiuk
2018-03-08 15:31:02 +02:00
parent 34c78c73c0
commit fe94ec21de
+2 -2
View File
@@ -611,11 +611,11 @@ namespace MtApi5
///<param name="symbolName">Symbol name.</param> ///<param name="symbolName">Symbol name.</param>
///<param name="timeframe"> Period.</param> ///<param name="timeframe"> Period.</param>
///<param name="propId">Identifier of the requested property, value of the ENUM_SERIES_INFO_INTEGER enumeration.</param> ///<param name="propId">Identifier of the requested property, value of the ENUM_SERIES_INFO_INTEGER enumeration.</param>
public int SeriesInfoInteger(string symbolName, ENUM_TIMEFRAMES timeframe, ENUM_SERIES_INFO_INTEGER propId) public long SeriesInfoInteger(string symbolName, ENUM_TIMEFRAMES timeframe, ENUM_SERIES_INFO_INTEGER propId)
{ {
var commandParameters = new ArrayList { symbolName, (int)timeframe, (int)propId }; var commandParameters = new ArrayList { symbolName, (int)timeframe, (int)propId };
return SendCommand<int>(Mt5CommandType.SeriesInfoInteger, commandParameters); return SendCommand<long>(Mt5CommandType.SeriesInfoInteger, commandParameters);
} }
///<summary> ///<summary>