![]() | Get Quote 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 quote data can be retrieved.
Import the following namespaces:
using ETradeNet.Market; using ETradeNet.Market.Quote.Data;
Implement the following method:
async Task<IEnumerable<QuoteData>> GetQuoteAsync(string[] symbols, IMarketInitializer init) { using (var market = new MarketService(init)) { var response = await market.Quote.GetAsync(symbols); return response.QuoteData; } }