![]() | List Orders 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 a list of orders can be retrieved.
Import the following namespaces:
using ETradeNet.Order; using ETradeNet.Order.Data;
Implement the following method:
async Task<IEnumerable<OrderDetail>> GetOrdersAsync(string accountId, IOrderInitializer init) { using (var order = new OrderService(init)) { var response = await order.GetListAsync(accountId); return response.OrderListResponse.OrderDetails; } }