GetOrderTicket
Syntax
GetOrderTicket(): numberReturn Value
Description
Example
// Select an order by ticket number
if (this.api.SelectOrder(12345, EOrderSelectMode.SELECT_ORDER_BY_TICKET)) {
// Get the order ticket to confirm
const ticket = this.api.GetOrderTicket();
console.log(`Selected order ticket: ${ticket}`);
// Use the ticket with other methods
const orderDetails = this.api.GetOrderDetails(ticket);
console.log(`Order symbol: ${orderDetails.symbol}`);
}Notes
Last updated