using System; using System.Collections.Generic; using System.Linq; using System.Text; using Muchinfo.MTPClient.Data.Enums; using Muchinfo.MTPClient.Data.Helper; namespace Muchinfo.MTPClient.Data.Model.Account { public class CloseDetail:OrderBase { [PropertyDisc("closeid")] public long closeid { get; set; } [PropertyDisc("tradeid")] public long tradeid { get; set; } [PropertyDisc("opentradeid")] public long opentradeid { get; set; } [PropertyDisc("tradedate")] public string tradedate { get; set; } [PropertyDisc("marketid")] public decimal marketid { get; set; } [PropertyDisc("marketname")] public string marketname { get; set; } [PropertyDisc("currencyid")] public decimal currencyid { get; set; } [PropertyDisc("decimalplace")] public decimal decimalplace { get; set; } [PropertyDisc("agreeunit")] public decimal agreeunit { get; set; } [PropertyDisc("accountid")] public long accountid { get; set; } [PropertyDisc("openprice")] public decimal openprice { get; set; } [PropertyDisc("holderprice")] public decimal holderprice { get; set; } [PropertyDisc("closeqty")] public int closeqty { get; set; } [PropertyDisc("closeprice")] public decimal closeprice { get; set; } [PropertyDisc("closetime")] public DateTime closetime { get; set; } [PropertyDisc("opentradedate")] public string opentradedate { get; set; } [PropertyDisc("opentime")] public DateTime opentime { get; set; } [PropertyDisc("curexchangerate")] public decimal curexchangerate { get; set; } [PropertyDisc("accountcurrencyid")] public decimal accountcurrencyid { get; set; } [PropertyDisc("closepl")] public decimal closepl { get; set; } [PropertyDisc("closepl2")] public decimal closepl2 { get; set; } [PropertyDisc("closepl3")] public decimal closepl3 { get; set; } [PropertyDisc("closepl4")] public decimal closepl4 { get; set; } [PropertyDisc("histradedate")] public string histradedate { get; set; } public string CloseTimeDisplay { get { if (closetime != DateTime.MinValue) { return closetime.ToString("yyyy-MM-dd HH:mm:ss"); } return "-"; } } public string ClosePriceDisplay { get { string result = closeprice.ToString(PriceExpFormat);//服务端已做小数位处理 return result; } } public string OpenTimeDisplay { get { if (opentime != DateTime.MinValue) { return opentime.ToString("yyyy-MM-dd HH:mm:ss"); } return "-"; } } public string OpenPriceDisplay { get { string result = openprice.ToString(PriceExpFormat);//服务端已做小数位处理 return result; } } public string ClosePL2Display { get { return closepl2.ToString("N2"); } } public string ClosePL4Display { get { return closepl4.ToString("N2"); } } } }