|
|
@ -5,7 +5,9 @@ using Binance.TradeRobot.Model.Dto; |
|
|
|
using Binance.TradeRobot.Model.RuningInfo; |
|
|
|
using Microsoft.Extensions.Caching.Memory; |
|
|
|
using Microsoft.Extensions.DependencyInjection; |
|
|
|
using Newtonsoft.Json; |
|
|
|
using System; |
|
|
|
using System.Text; |
|
|
|
using Yitter.IdGenerator; |
|
|
|
|
|
|
|
namespace Binance.TradeRobot.Business |
|
|
@ -40,8 +42,11 @@ namespace Binance.TradeRobot.Business |
|
|
|
RedisHelper.Set(robot.Id.ToString(), d21RuningInfo); |
|
|
|
} |
|
|
|
catch (Exception ex) |
|
|
|
{ |
|
|
|
|
|
|
|
{ |
|
|
|
var stringBuilder = new StringBuilder("TrendChanged"); |
|
|
|
stringBuilder.AppendLine($"SingalRequest {JsonConvert.SerializeObject(singalRequest)}"); |
|
|
|
stringBuilder.AppendLine($"Robot {JsonConvert.SerializeObject(robot)}"); |
|
|
|
logManager.GetLogger(robot.ExecuteLogKey).Error(ex, stringBuilder.ToString()); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|