|
|
|
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; }
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// 执行模式
|
|
|
|
/// </summary>
|
|
|
|
[Column(MapType = typeof(int), DbType = "int")]
|
|
|
|
public Enums.ExecutionMode ExecutionMode { get; set; } = Enums.ExecutionMode.Both;
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// 是否开启增购
|
|
|
|
/// </summary>
|
|
|
|
|
|
|
|
public bool IsEnabledIncreasePurchase { get; set; } = true;
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// 是否开启错误信号补救
|
|
|
|
/// </summary>
|
|
|
|
|
|
|
|
public bool IsEnableRemedyForErrorCrossSignal { get; set; } = true;
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// 最大追高比例
|
|
|
|
/// </summary>
|
|
|
|
[Column(DbType = "decimal(18,2)")]
|
|
|
|
public decimal MaxFollowPurchaseRatio { get; set; } = 0.0M;
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// 信号周期
|
|
|
|
/// </summary>
|
|
|
|
[Column(DbType = "int", MapType = typeof(int))]
|
|
|
|
public Enums.SignalPeriod PeriodicSignal { get; set; }
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// 仓位
|
|
|
|
/// </summary>
|
|
|
|
[Column(DbType = "decimal(18,8)")]
|
|
|
|
public decimal Position { get; set; } = 0.0M;
|
|
|
|
|
|
|
|
[Column(DbType = "bigint")]
|
|
|
|
public long RobotId { get; set; }
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// 止损比例
|
|
|
|
/// </summary>
|
|
|
|
[Column(DbType = "decimal(18,2)")]
|
|
|
|
public decimal StopLossRatio { get; set; } = 0.0M;
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|