using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace Muchinfo.MTPClient.Data.Model.Account { public class TradePositionModel { #region 字段备注 //GoodsId 商品id //BuyFrozenQty 买持仓冻结 //BuyOtherFrozenQty 买持仓其他冻结 //BuyCurPositionQty 买当前持仓数量 //BuyCurHolderAmount 买当前持仓金额 //SellFrozenQty 卖持仓冻结 //SellOtherFrozenQty 卖持仓其他冻结 //SellCurPositionQty 卖当前持仓数量 //SellCurHolderAmount 卖当前持仓金额 #endregion private uint _GoodsId = uint.MaxValue; /// /// 商品id /// public uint GoodsId { get { return _GoodsId; } set { _GoodsId = value; } } private uint _BuyFrozenQty = uint.MaxValue; /// /// 买持仓冻结 /// public uint BuyFrozenQty { get { return _BuyFrozenQty; } set { _BuyFrozenQty = value; } } private uint _BuyOtherFrozenQty = uint.MaxValue; /// /// 买持仓其他冻结 /// public uint BuyOtherFrozenQty { get { return _BuyOtherFrozenQty; } set { _BuyOtherFrozenQty = value; } } private uint _BuyCurPositionQty = uint.MaxValue; /// /// 买当前持仓数量 /// public uint BuyCurPositionQty { get { return _BuyCurPositionQty; } set { _BuyCurPositionQty = value; } } private double _BuyCurHolderAmount = int.MinValue; /// /// 买当前持仓金额 /// public double BuyCurHolderAmount { get { return _BuyCurHolderAmount; } set { _BuyCurHolderAmount = value; } } private uint _SellFrozenQty = uint.MaxValue; /// /// 卖持仓冻结 /// public uint SellFrozenQty { get { return _SellFrozenQty; } set { _SellFrozenQty = value; } } private uint _SellOtherFrozenQty = uint.MaxValue; /// /// 卖持仓其他冻结 /// public uint SellOtherFrozenQty { get { return _SellOtherFrozenQty; } set { _SellOtherFrozenQty = value; } } private uint _SellCurPositionQty = uint.MaxValue; /// /// 卖当前持仓数量 /// public uint SellCurPositionQty { get { return _SellCurPositionQty; } set { _SellCurPositionQty = value; } } private double _SellCurHolderAmount = int.MinValue; /// /// 卖当前持仓金额 /// public double SellCurHolderAmount { get { return _SellCurHolderAmount; } set { _SellCurHolderAmount = value; } } /// /// 卖当前可用持仓持仓数量 /// /// public decimal AvailableSellHolderQty() { return SellCurPositionQty - SellFrozenQty - SellOtherFrozenQty; } /// /// 买当前可用持仓持仓数量 /// /// public decimal AvailableBuyHolderQty() { return BuyCurPositionQty - BuyFrozenQty - BuyOtherFrozenQty; } /// /// 合约单位 /// /// The agree unit. public uint AgreeUnit { get; set; } } }