public AlphaVantageService(HttpClient httpClient, IOptions <AlphaVantageSettings> settings) { this.httpClient = httpClient ?? throw new ArgumentNullException(nameof(httpClient)); this.settings = settings.Value ?? throw new ArgumentNullException(nameof(settings)); this.httpClient.BaseAddress = new Uri(this.settings.BaseUrl); }
public PriceController(IRabbitMQManager rabbitMQ, IMediator mediator, AlphaVantageSettings defaultAlpha) { _rabbitMQ = rabbitMQ; _mediator = mediator; _default = defaultAlpha; }
public AlphaVantageClient(AlphaVantageSettings settings) { _alphaVantage = new AlphaVantage(settings.ApiKey); }