private void loadMetaData()
        {
            try
            {
                MySQLConnector          mySQLConnector = new MySQLConnector();
                StockDataTransferObject record         = mySQLConnector.getMasterDataForSymbol(symbol);

                if (record == null)
                {
                    throw new Exception("Es konnten keine Stammdaten für dieses Symbol in Ihrer Datenbank gefunden werden. Bitte laden Sie diese zunächst nach und versuchen es dann erneut.");
                }

                urlSuffix = record.suffix_onvista;
                isin      = record.isin;
                wkn       = record.wkn;
                name      = record.name;
                sector    = record.sector;
            }
            catch (Exception e)
            {
                ExceptionHandler.handle(e);
                urlSuffix = "";
                isin      = "";
                wkn       = "";
                name      = "";
                sector    = "";
            }
        }
Exemple #2
0
        public List <StockDataTransferObject> getLocallySavedStockData(string stockSymbol, DateTime dateFrom, DateTime dateTo)
        {
            MySQLConnector mySQLConnector = new MySQLConnector();

            return(mySQLConnector.getHistoricalStockData(stockSymbol, dateFrom, dateTo));
        }
Exemple #3
0
 public DBUpdater()
 {
     mySQLConnector = new MySQLConnector();
 }
Exemple #4
0
        public List <string> getAvailableSymbols()
        {
            MySQLConnector mySQLConnector = new MySQLConnector();

            return(mySQLConnector.getAvailableSymbols());
        }