![]() | Look Up Product 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 product lookup can be performed.
Import the following namespaces:
using ETradeNet.Market; using ETradeNet.Market.ProductLookup.Data;
Implement the following method:
async Task<IEnumerable<Product>> LookupProductAsync(string company, IMarketInitializer init) { using (var market = new MarketService(init)) { var response = await market.ProductLookup.GetAsync(company, SecurityType.Eq); return response.ProductList; } }