mirror of
https://github.com/vdemydiuk/mtapi.git
synced 2026-08-13 02:38:07 +00:00
Issue #82: Disabled debug mode in MtApi5.ex5. Updated test client to send order with values Expiration and Comment
This commit is contained in:
@@ -5,7 +5,7 @@
|
||||
//NoCommand = 0
|
||||
|
||||
//trade operations
|
||||
OrderSend = 1,
|
||||
//OrderSend = 1,
|
||||
OrderCalcMargin = 2,
|
||||
OrderCalcProfit = 3,
|
||||
OrderCheck = 4,
|
||||
|
||||
+1
-10
@@ -123,15 +123,6 @@ namespace MtApi5
|
||||
|
||||
result = response?.Value?.TradeResult;
|
||||
return response?.Value != null && response.Value.RetVal;
|
||||
|
||||
|
||||
//var commandParameters = request.ToArrayList();
|
||||
|
||||
//var strResult = SendCommand<string>(Mt5CommandType.OrderSend, commandParameters);
|
||||
|
||||
//Log.Debug($"OrderSend: strResult = {strResult}");
|
||||
|
||||
//return strResult.ParseResult(ParamSeparator, out result);
|
||||
}
|
||||
|
||||
///<summary>
|
||||
@@ -205,7 +196,7 @@ namespace MtApi5
|
||||
|
||||
var commandParameters = request.ToArrayList();
|
||||
|
||||
var strResult = SendCommand<string>(Mt5CommandType.OrderSend, commandParameters);
|
||||
var strResult = SendCommand<string>(Mt5CommandType.OrderCheck, commandParameters);
|
||||
|
||||
return strResult.ParseResult(ParamSeparator, out result);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user