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.
99 lines
2.4 KiB
99 lines
2.4 KiB
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; }
|
|
|
|
/// <summary>
|
|
/// 交易所Id
|
|
/// </summary>
|
|
|
|
public int ExchangeId { get; set; }
|
|
|
|
/// <summary>
|
|
/// 历史利润
|
|
/// </summary>
|
|
[Column(DbType = "decimal(18,8)")]
|
|
public decimal HistoryTotalProfit { get; set; } = 0.0M;
|
|
|
|
/// <summary>
|
|
/// 最后交易时间
|
|
/// </summary>
|
|
|
|
public DateTime? LastTradeTime { get; set; }
|
|
|
|
/// <summary>
|
|
/// 交易策略
|
|
/// </summary>
|
|
|
|
public int PolicyType { get; set; }
|
|
|
|
/// <summary>
|
|
/// 订单利润
|
|
/// </summary>
|
|
[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; }
|
|
|
|
/// <summary>
|
|
/// 成交总额
|
|
/// </summary>
|
|
[Column(DbType = "decimal(18,8)")]
|
|
public decimal TradeAmount { get; set; } = 0.0M;
|
|
|
|
/// <summary>
|
|
/// 交易次数
|
|
/// </summary>
|
|
|
|
public int TradeCount { get; set; } = 0;
|
|
|
|
/// <summary>
|
|
/// 手续费
|
|
/// </summary>
|
|
[Column(DbType = "decimal(18,8)")]
|
|
public decimal TradeFee { get; set; } = 0.0M;
|
|
|
|
/// <summary>
|
|
/// 交易手续费单位
|
|
/// </summary>
|
|
[Column(StringLength = 15, IsNullable = false)]
|
|
public string TradeFeeUnit { get; set; }
|
|
|
|
/// <summary>
|
|
/// 成交均价
|
|
/// </summary>
|
|
[Column(DbType = "decimal(18,8)")]
|
|
public decimal TradePrice { get; set; } = 0.0M;
|
|
|
|
/// <summary>
|
|
/// 交易量
|
|
/// </summary>
|
|
[Column(DbType = "decimal(18,8)")]
|
|
public decimal TradeQuantity { get; set; }
|
|
|
|
}
|
|
|
|
}
|
|
|