mirror of
https://github.com/vdemydiuk/mtapi.git
synced 2026-08-18 05:08:11 +00:00
Added field Swap to MtOrder class. Mark function OrderSwap as obsolete
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user