using Binance.TradeRobot.Model.Base; using FreeSql.DataAnnotations; using System; namespace Binance.TradeRobot.Model.Db { [Table(Name = "d21policy", DisableSyncStructure = true)] public partial class D21Policy { [Column(DbType = "bigint", IsPrimary = true)] public long Id { get; set; } [Column(DbType = "datetime")] public DateTime CreateTime { get; set; } /// /// 执行模式 /// [Column(MapType = typeof(int), DbType = "int")] public Enums.ExecutionMode ExecutionMode { get; set; } = Enums.ExecutionMode.Both; /// /// 是否开启增购 /// public bool IsEnabledIncreasePurchase { get; set; } = true; /// /// 是否开启错误信号补救 /// public bool IsEnableRemedyForErrorCrossSignal { get; set; } = true; /// /// 最大追高比例 /// [Column(DbType = "decimal(18,2)")] public decimal MaxFollowPurchaseRatio { get; set; } = 0.0M; /// /// 信号周期 /// [Column(DbType = "int", MapType = typeof(int))] public Enums.SignalPeriod PeriodicSignal { get; set; } /// /// 仓位 /// [Column(DbType = "decimal(18,8)")] public decimal Position { get; set; } = 0.0M; [Column(DbType = "bigint")] public long RobotId { get; set; } /// /// 止损比例 /// [Column(DbType = "decimal(18,2)")] public decimal StopLossRatio { get; set; } = 0.0M; } }