Exemplo n.º 1
0
        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);
        }
Exemplo n.º 2
0
 public PriceController(IRabbitMQManager rabbitMQ, IMediator mediator, AlphaVantageSettings defaultAlpha)
 {
     _rabbitMQ = rabbitMQ;
     _mediator = mediator;
     _default  = defaultAlpha;
 }
Exemplo n.º 3
0
 public AlphaVantageClient(AlphaVantageSettings settings)
 {
     _alphaVantage = new AlphaVantage(settings.ApiKey);
 }