예제 #1
0
        public BotStatistic()
        {
            this.RequiresAuthentication();
            Get("/botstatistic", args =>
            {
                var model = new BotStatisticModel();

                model.TotalProfit  = FUTLogsDatabase.GetFUTProfitLogsLast24Hours().Sum(x => x.Profit);
                model.BotStatistic = FUTLogsDatabase.GetFUTBotStatisticsLast24Hours();

                return(View["BotStatistic", model]);
            });
        }