/// <summary> /// Creates a QuandlStockQueryService. /// </summary> /// <param name="quandlCodesProvider">Underlying provider with list of available stock databases.</param> public QuandlStockQueryService(QuandlCodesProvider quandlCodesProvider) { _quandlCodesProvider = quandlCodesProvider; }
/// <summary> /// Creates a QuandlStockInfoService. /// </summary> /// <param name="configuration">Configuration with Quandl API parameters.</param> /// <param name="quandlCodesProvider">Underlying provider with list of available stock databases.</param> public QuandlStockInfoService(IConfiguration configuration, QuandlCodesProvider quandlCodesProvider) { _quandlApiKey = configuration["QuandlApiKey"]; _quandlStockValueUrlFormat = configuration["QuandlStockValueUrlFormat"]; _quandlCodesProvider = quandlCodesProvider; }