using Binance.TradeRobot.Model.Base; using System; namespace Binance.TradeRobot.Model.Dto { public class RobotResponse { public long Id { get; set; } public DateTime CreateTime { get; set; } public Enums.TradePolicy TradePolicy { get; set; } /// /// 运行时长(s) /// public long RunningTime { get; set; } = 0; public Enums.RobotState State { get; set; } public string Symbol { get; set; } public Enums.BusinessType BusinessType { get; set; } public Enums.Exchange ExchangeId { get; set; } public string ExecuteLogKey { get { return $"Execute-{ExchangeId}-{TradePolicy}-{Symbol}"; } } public string KLineKey { get { return $"KLine-{ExchangeId}-{Symbol}"; }} /// /// 机器人账户对象 /// public RobotAccountResponse RobotAccount { get; set; } /// /// 机器人绑定的交易所APIKey对象 /// public SimpleExchangeAPIKeyResponse ExchangeAPIKey { get; set; } } }