Added field Swap to MtOrder class. Mark function OrderSwap as obsolete

This commit is contained in:
DW
2016-04-29 19:31:35 +03:00
parent 36965bd02c
commit 4511a64a39
5 changed files with 13 additions and 9 deletions
+6 -5
View File
@@ -211,6 +211,12 @@ namespace MtApi
return (TradeOperation)retVal;
}
[Obsolete("OrderSwap is deprecated, please use GetOrder instead.")]
public double OrderSwap()
{
return SendCommand<double>(MtCommandType.OrderSwap, null);
}
#endregion
#region Trading functions
@@ -440,11 +446,6 @@ namespace MtApi
return SendCommand<int>(MtCommandType.OrdersTotal, null);
}
public double OrderSwap()
{
return SendCommand<double>(MtCommandType.OrderSwap, null);
}
public bool OrderCloseAll()
{
return SendCommand<bool>(MtCommandType.OrderCloseAll, null);
+1
View File
@@ -16,6 +16,7 @@ namespace MtApi
public string Comment { get; set; }
public double Commission { get; set; }
public int MagicNumber { get; set; }
public double Swap { get; set; }
public DateTime OpenTime
{