public async Task OptionChainAutoExpiryAsync() { var res = await TradierOptionChainRequest.GetOptionChainAsync( TradierBuilder.WithAccount(AccType, AccessKey) .ForMarket() .ForOptionChain("SPY") .AutoExpiryLimit(2) .Build ); WriteOutput(res); Assert.IsNotNull(res); }
public async Task OptionChainAsync() { var res = await TradierOptionChainRequest.GetOptionChainAsync( TradierBuilder.WithAccount(AccType, AccessKey) .ForMarket() .ForOptionChain("SPY") .WithExpirationDate(DateTime.Now.AddDays(-2)) .Build ); WriteOutput(res); Assert.IsNotNull(res); }