![]() | Cancel Order Example |
Note: This is preliminary documentation provided only as a preview, and is subject to change. Please contact the author for pricing and licensing information.
This topic demonstrates how an order can be canceled.
Import the following namespace:
using ETradeNet.Order;
Implement the following method:
async Task<string> CancelOrderAsync(string accountId, string orderId, IOrderInitializer init) { using (var order = new OrderService(init)) { var response = await order.CancelAsync(accountId, orderId); return response.CancelResponse.ResultMessage; } }