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

55 lines
1.4 KiB

using Binance.TradeRobot.Model.Base;
using FreeSql.DataAnnotations;
using System;
namespace Binance.TradeRobot.Model.Db
{
3 years ago
[Table(Name = "loanorder", DisableSyncStructure = true)]
public partial class LoanOrder
{
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>
/// 交易所Id
/// </summary>
3 years ago
[Column(DbType = "int", MapType = typeof(int))]
public Enums.Exchange ExchangeId { get; set; }
3 years ago
[Column(MapType = typeof(int), DbType = "int")]
public Enums.LoanState LoadState { get; set; } = Enums.LoanState.Loaning;
/// <summary>
/// 借币金额
/// </summary>
[Column(DbType = "decimal(18,8)")]
public decimal LoanAmount { get; set; } = 0.0M;
/// <summary>
/// 借币利息
/// </summary>
[Column(DbType = "decimal(18,8)")]
public decimal LoanFee { get; set; } = 0.0M;
[Column(StringLength = 50, IsNullable = false)]
public string LoanOrderId { get; set; }
3 years ago
[Column(DbType = "datetime")]
public DateTime ReturnTime { get; set; }
3 years ago
[Column(DbType = "bigint")]
public long RobotId { get; set; }
3 years ago
[Column(DbType = "bigint")]
public long SpotOrderId { get; set; }
}
}