mirror of
https://github.com/vdemydiuk/mtapi.git
synced 2026-08-20 22:28:17 +00:00
Issue #96: Implemented function PositionGetTicket in MtApi (MT5)
This commit is contained in:
@@ -280,6 +280,17 @@ namespace MtApi5
|
||||
return SendCommand<string>(Mt5CommandType.PositionGetString, commandParameters);
|
||||
}
|
||||
|
||||
///<summary>
|
||||
///The function returns the ticket of a position with the specified index in the list of open positions and automatically selects the position to work with using functions PositionGetDouble, PositionGetInteger, PositionGetString.
|
||||
///</summary>
|
||||
///<param name="index">Identifier of a position property.</param>
|
||||
public ulong PositionGetTicket(int index)
|
||||
{
|
||||
var commandParameters = new ArrayList { index };
|
||||
|
||||
return SendCommand<ulong>(Mt5CommandType.PositionGetTicket, commandParameters);
|
||||
}
|
||||
|
||||
///<summary>
|
||||
///Returns the number of current orders.
|
||||
///</summary>
|
||||
|
||||
Reference in New Issue
Block a user