币安量化交易
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.

63 lines
1.6 KiB

3 years ago
using Binance.TradeRobot.Model.Base;
using FreeSql.DataAnnotations;
using System;
namespace Binance.TradeRobot.Model.Db
{
3 years ago
[Table(Name = "useraccountprofitlossrecord", DisableSyncStructure = true)]
3 years ago
public partial class UserAccountProfitLossRecord
{
3 years ago
[Column(DbType = "bigint", IsPrimary = true)]
public long Id { get; set; }
3 years ago
/// <summary>
/// 业务类型
/// </summary>
3 years ago
[Column(MapType = typeof(int), DbType = "int")]
3 years ago
public Enums.BusinessType BusinessType { get; set; }
/// <summary>
/// 变更金额
/// </summary>
[Column(DbType = "decimal(18,8)")]
public decimal ChangeAmount { get; set; } = 0.0M;
3 years ago
[Column(DbType = "datetime")]
3 years ago
public DateTime? CreateTime { get; set; }
/// <summary>
/// 分红比例
/// </summary>
[Column(DbType = "decimal(18,2)")]
public decimal DividendRatio { get; set; } = 0.0M;
3 years ago
[Column(DbType = "bigint")]
3 years ago
public long OrderId { get; set; }
/// <summary>
/// 订单利润
/// </summary>
[Column(DbType = "decimal(18,8)")]
public decimal OrderProfit { get; set; } = 0.0M;
3 years ago
[Column(DbType = "bigint")]
3 years ago
public long RobotId { get; set; }
3 years ago
[Column(DbType = "bigint")]
3 years ago
public long UserId { get; set; }
/// <summary>
/// 累计盈亏
3 years ago
/// </summary>
[Column(DbType = "decimal(18,8)")]
public decimal CumulativeProfitAndLoss { get; set; } = 0.0M;
3 years ago
3 years ago
[Column(MapType = typeof(int), DbType = "int")]
public Enums.Exchange ExchangeId { get; set; }
3 years ago
}
}