private async Task <Candle> GetLastCandle(BaseTypes.Market Market, Candle_Interval Interval, InvokePrint Print) { try { var tmp = await bittrex.GetLastCandle(Market.MarketName, Interval.ToString()); Candle result = new Candle { Open = tmp.Open, Hight = tmp.Hight, Low = tmp.Low, Close = tmp.Close, Time = tmp.Time }; return(result); } catch (Exception ex) { System.Media.SystemSounds.Beep.Play(); Print("Ошибка BittrexApi GetLastCandle: " + ex.Message); return(null); } }