Ejemplo n.º 1
0
        public GoogleSheetPriceMonitor()
        {
            //sheet = new GoogleSheet("1e6jCpqkQEGwICemF0iVzRDBQwmNUskpZoT5nY3SRd24");
            sheet = new GoogleSheet("17ajUh3JI6J-VeLfdyPl9JhvoYIz_NhTWCoeJRYY8GQ8");

            refreshTimer = new Timer()
            {
                AutoReset = false,
                Interval  = TimeSpan.FromSeconds(10).TotalMilliseconds
            };
            refreshTimer.Elapsed += RefreshTimer_Elapsed;
        }
Ejemplo n.º 2
0
        public GoogleSheetPriceMonitor()
        {
            ExchangeMonitorConfig config = new ExchangeMonitorConfig(
                ExchangeName.Binance,
                ExchangeName.Cryptopia,
                ExchangeName.Kucoin,
                ExchangeName.AEX,
                ExchangeName.GDax,
                ExchangeName.Idex);

            exchangeMonitor = new ExchangeMonitor(config);

            sheet        = new GoogleSheet("1RoFMncCxV4ExqFQCRKSOmo-7WBSGc7F-9HjLc-5OT2c");
            refreshTimer = new Timer()
            {
                AutoReset = false,
                Interval  = TimeSpan.FromSeconds(10).TotalMilliseconds
            };
            refreshTimer.Elapsed += RefreshTimer_Elapsed;
        }