mirror of
https://github.com/vdemydiuk/mtapi.git
synced 2026-08-13 18:58:09 +00:00
Added command CloseOrderByCurrentPrice into mtapi 4
This commit is contained in:
@@ -178,6 +178,12 @@ namespace MtApi
|
||||
return OrderCloseBy(ticket, opposite, Color.Empty);
|
||||
}
|
||||
|
||||
public bool OrderCloseByCurrentPrice(int ticket, int slippage)
|
||||
{
|
||||
var commandParameters = new ArrayList { ticket, slippage };
|
||||
return sendCommand<bool>(MtCommandType.OrderCloseByCurrentPrice, commandParameters);
|
||||
}
|
||||
|
||||
public double OrderClosePrice()
|
||||
{
|
||||
return sendCommand<double>(MtCommandType.OrderClosePrice, null);
|
||||
|
||||
Reference in New Issue
Block a user