public AlphaVantageForex([NotNull] Configuration config, IHttpClient http) { _config = config.AlphaAdvantage; _http = http; _cache = new FluidCache <IForexQuote>(_config.CacheSize, TimeSpan.FromSeconds(_config.CacheMinAgeSeconds), TimeSpan.FromSeconds(_config.CacheMaxAgeSeconds), () => DateTime.UtcNow); _bySymbolPair = _cache.AddIndex("BySymbolPair", a => new KeyValuePair <string, string>(a.FromCode, a.ToCode)); }
public AlphaVantageStocks([NotNull] Configuration config, IHttpClient http) { _config = config.AlphaAdvantage; _http = http; _cache = new FluidCache <IStockQuote>(_config.CacheSize, TimeSpan.FromSeconds(_config.CacheMinAgeSeconds), TimeSpan.FromSeconds(_config.CacheMaxAgeSeconds), () => DateTime.UtcNow); _bySymbol = _cache.AddIndex("BySymbol", a => a.Symbol); }
public AlphaAdvantageService([NotNull] Configuration config, [NotNull] IHttpClient http) { _config = config.AlphaAdvantage; _http = http; }
public AlphaVantageStockSearch([NotNull] Configuration config, IHttpClient http) { _config = config.AlphaAdvantage; _http = http; }
public AlphaAdvantageService(AlphaAdvantageConfig config) { //https://www.alphavantage.co/documentation/#fx }