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    = "";
            }
        }
Ejemplo n.º 2
0
        public List <StockDataTransferObject> getLocallySavedStockData(string stockSymbol, DateTime dateFrom, DateTime dateTo)
        {
            MySQLConnector mySQLConnector = new MySQLConnector();

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

            return(mySQLConnector.getAvailableSymbols());
        }