public async Task Run() { var trend = new List <int> { 0, 1 }; var width = new List <int> { 0, 1 }; await _forecaster.MakeBotForecast(50, trend, width); await _telegram.SendMessage("Done with hangfire"); }
public async Task <IActionResult> BotForecast(int rsi, List <int> trend, List <int> border) { try { var model = await _forecaster.MakeBotForecast(rsi, trend, border); return(Json(model)); } catch (Exception e) { return(NotFound(new { message = e.Message })); } }