![]() | Get Option Expire Dates 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 an option's expiration dates can be retrieved.
Import the following namespaces:
using ETradeNet.Market; using ETradeNet.Market.OptionExpireDate.Data;
Implement the following method:
async Task<IEnumerable<ExpirationDate>> GetOptionExpireDatesAsync(string underlier, IMarketInitializer init) { using (var market = new MarketService(init)) { var response = await market.OptionExpireDate.GetListAsync(underlier); return response.ExpirationDate; } }