mirror of
https://github.com/vdemydiuk/mtapi.git
synced 2026-08-18 13:18:12 +00:00
Issue #72: Fixed bug with serialization of parameters in functions HistoryDealGetInteger, HistoryDealGetString, HistoryDealGetDouble
This commit is contained in:
@@ -456,7 +456,7 @@ namespace MtApi5
|
|||||||
///<param name="propertyId"> Identifier of a deal property.</param>
|
///<param name="propertyId"> Identifier of a deal property.</param>
|
||||||
public double HistoryDealGetDouble(ulong ticketNumber, ENUM_DEAL_PROPERTY_DOUBLE propertyId)
|
public double HistoryDealGetDouble(ulong ticketNumber, ENUM_DEAL_PROPERTY_DOUBLE propertyId)
|
||||||
{
|
{
|
||||||
var commandParameters = new ArrayList { ticketNumber, propertyId };
|
var commandParameters = new ArrayList { ticketNumber, (int)propertyId };
|
||||||
|
|
||||||
return SendCommand<double>(Mt5CommandType.HistoryDealGetDouble, commandParameters);
|
return SendCommand<double>(Mt5CommandType.HistoryDealGetDouble, commandParameters);
|
||||||
}
|
}
|
||||||
@@ -468,7 +468,7 @@ namespace MtApi5
|
|||||||
///<param name="propertyId"> Identifier of a deal property.</param>
|
///<param name="propertyId"> Identifier of a deal property.</param>
|
||||||
public long HistoryDealGetInteger(ulong ticketNumber, ENUM_DEAL_PROPERTY_INTEGER propertyId)
|
public long HistoryDealGetInteger(ulong ticketNumber, ENUM_DEAL_PROPERTY_INTEGER propertyId)
|
||||||
{
|
{
|
||||||
var commandParameters = new ArrayList { ticketNumber, propertyId };
|
var commandParameters = new ArrayList { ticketNumber, (int)propertyId };
|
||||||
|
|
||||||
return SendCommand<long>(Mt5CommandType.HistoryDealGetInteger, commandParameters);
|
return SendCommand<long>(Mt5CommandType.HistoryDealGetInteger, commandParameters);
|
||||||
}
|
}
|
||||||
@@ -480,7 +480,7 @@ namespace MtApi5
|
|||||||
///<param name="propertyId"> Identifier of a deal property.</param>
|
///<param name="propertyId"> Identifier of a deal property.</param>
|
||||||
public string HistoryDealGetString(ulong ticketNumber, ENUM_DEAL_PROPERTY_STRING propertyId)
|
public string HistoryDealGetString(ulong ticketNumber, ENUM_DEAL_PROPERTY_STRING propertyId)
|
||||||
{
|
{
|
||||||
var commandParameters = new ArrayList { ticketNumber, propertyId };
|
var commandParameters = new ArrayList { ticketNumber, (int)propertyId };
|
||||||
|
|
||||||
return SendCommand<string>(Mt5CommandType.HistoryDealGetString, commandParameters);
|
return SendCommand<string>(Mt5CommandType.HistoryDealGetString, commandParameters);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user