Esempio n. 1
0
        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);
        }
Esempio n. 2
0
        /* private readonly IConfiguration config;
         * private readonly AppSettings appSettings;*/

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