using Binance.TradeRobot.Model.Base; using FreeSql.DataAnnotations; using System; namespace Binance.TradeRobot.Model.Db { [Table(DisableSyncStructure = true)] public partial class SpotOrder { [Column(IsPrimary = true)] public long Id { get; set; } [Column(InsertValueSql = "getdate()")] public DateTime CreateTime { get; set; } /// /// 交易所Id /// public int ExchangeId { get; set; } /// /// 历史利润 /// [Column(DbType = "decimal(18,8)")] public decimal HistoryTotalProfit { get; set; } = 0.0M; /// /// 最后交易时间 /// public DateTime? LastTradeTime { get; set; } /// /// 交易策略 /// public int PolicyType { get; set; } /// /// 订单利润 /// [Column(DbType = "decimal(18,8)")] public decimal Profit { get; set; } = 0.0M; public long RobotId { get; set; } [Column(MapType = typeof(int))] public Enums.OrderState States { get; set; } [Column(MapType = typeof(int))] public Enums.TradeDirection TradeDirection { get; set; } [Column(StringLength = 50, IsNullable = false)] public string Symbol { get; set; } /// /// 成交总额 /// [Column(DbType = "decimal(18,8)")] public decimal TradeAmount { get; set; } = 0.0M; /// /// 交易次数 /// public int TradeCount { get; set; } = 0; /// /// 手续费 /// [Column(DbType = "decimal(18,8)")] public decimal TradeFee { get; set; } = 0.0M; /// /// 交易手续费单位 /// [Column(StringLength = 15, IsNullable = false)] public string TradeFeeUnit { get; set; } /// /// 成交均价 /// [Column(DbType = "decimal(18,8)")] public decimal TradePrice { get; set; } = 0.0M; /// /// 交易量 /// [Column(DbType = "decimal(18,8)")] public decimal TradeQuantity { get; set; } } }