| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136 |
- 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"); }
- }
- }
- }
|