public CloudDataManager(AppSettings _appSettings)
        {
            appSettings = _appSettings;

            mMgr = new ModelManager();
            qMgr = new QuoteManager();
            eMgr = new EquityManager();

            client = new HttpClient();

            apiToken = appSettings.IEXCloudAPIKey;

            baseURL  = "https://cloud.iexapis.com/stable/stock/";
            quoteURL = "/chart/1d/";
            tokenURL = $"?chartByDay=true&token={apiToken}";

            client.BaseAddress = new Uri(baseURL);
        }
Example #2
0
        /* private readonly IConfiguration config;
         * private readonly AppSettings appSettings;*/

        public ModelManager()
        {
            qMgr = new QuoteManager();
        }