币安量化交易
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

101 lines
2.9 KiB

using Binance.TradeRobot.Model.Base;
using FreeSql.DataAnnotations;
using System;
namespace Binance.TradeRobot.Model.Db
{
3 years ago
[Table(Name = "d21policy", DisableSyncStructure = true)]
public partial class D21Policy
{
3 years ago
[Column(DbType = "bigint", IsPrimary = true)]
public long Id { get; set; }
3 years ago
[Column(DbType = "datetime")]
public DateTime CreateTime { get; set; }
/// <summary>
/// 执行模式
/// </summary>
3 years ago
[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 = "decimal(18,2)")]
public decimal MaxSystemLoanRatio { get; set; } = 0.0M;
/// <summary>
/// 最大交易所借币比例
/// </summary>
[Column(DbType = "decimal(18,2)")]
public decimal MaxExchangeLoanRatio { get; set; } = 0.00M;
/// <summary>
/// 信号周期
/// </summary>
3 years ago
[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;
3 years ago
[Column(DbType = "bigint")]
public long RobotId { get; set; }
/// <summary>
/// 配置资产
/// </summary>
[Column(DbType = "decimal(18,8)")]
public decimal Assets { get; set; } = 0.0M;
/// <summary>
/// 一级止损-成交价亏损比例
/// </summary>
[Column(DbType = "decimal(18,2)")]
public decimal Level1PriceStopLossRatio { get; set; } = 0.0M;
/// <summary>
/// 一级止损-仓位止损比例
/// </summary>
[Column(DbType = "decimal(18,2)")]
public decimal Level1PositionStopLossRatio { get; set; } = 0.0M;
/// <summary>
/// 二级止损-成交价亏损比例
/// </summary>
[Column(DbType = "decimal(18,2)")]
public decimal Level2PriceStopLossRatio { get; set; } = 0.0M;
/// <summary>
/// 二级止损-仓位止损比例
/// </summary>
3 years ago
[Column(DbType = "decimal(18,2)")]
public decimal Level2PositionStopLossRatio { get; set; } = 0.0M;
}
}