GoodsPositionModel.cs 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. namespace Muchinfo.MTPClient.Data.Model
  6. {
  7. /// <summary>
  8. /// 持仓头寸
  9. /// </summary>
  10. public class GoodsPositionModel
  11. {
  12. #region 字段备注
  13. //GoodsId 商品id
  14. //BuyPosition 买期初持仓数量
  15. //BuyHolderAmount 买持仓期初总金额
  16. //BuyFrozen 买持仓冻结
  17. //BuyOtherfrozen 买持仓其他冻结
  18. //SellPosition 卖期初持仓数量
  19. //SellHolderAmount 卖持仓期初总金额
  20. //SellFrozen 卖持仓冻结
  21. //SellOtherfrozen 卖持仓其他冻结
  22. //BuyCurPosition 买当前持仓数量 uint32
  23. //BuyCurHolderAmount 买当前持仓金额 double
  24. //SellCurPosition 卖当前持仓数量 uint32
  25. //SellCurHolderAmount 卖当前持仓金额 double
  26. #endregion
  27. private uint _GoodsId = uint.MaxValue;
  28. /// <summary>
  29. /// 商品id
  30. /// </summary>
  31. public uint GoodsId
  32. {
  33. get { return _GoodsId; }
  34. set { _GoodsId = value; }
  35. }
  36. private uint _BuyPosition = uint.MaxValue;
  37. /// <summary>
  38. /// 买期初持仓数量
  39. /// </summary>
  40. public uint BuyPosition
  41. {
  42. get { return _BuyPosition; }
  43. set { _BuyPosition = value; }
  44. }
  45. private double _BuyHolderAmount = int.MinValue;
  46. /// <summary>
  47. /// 买持仓期初总金额
  48. /// </summary>
  49. public double BuyHolderAmount
  50. {
  51. get { return _BuyHolderAmount; }
  52. set { _BuyHolderAmount = value; }
  53. }
  54. private uint _BuyFrozen = uint.MaxValue;
  55. /// <summary>
  56. /// 买持仓冻结
  57. /// </summary>
  58. public uint BuyFrozen
  59. {
  60. get { return _BuyFrozen; }
  61. set { _BuyFrozen = value; }
  62. }
  63. private uint _BuyOtherfrozen = uint.MaxValue;
  64. /// <summary>
  65. /// 买持仓其他冻结
  66. /// </summary>
  67. public uint BuyOtherfrozen
  68. {
  69. get { return _BuyOtherfrozen; }
  70. set { _BuyOtherfrozen = value; }
  71. }
  72. private uint _SellPosition = uint.MaxValue;
  73. /// <summary>
  74. /// 卖期初持仓数量
  75. /// </summary>
  76. public uint SellPosition
  77. {
  78. get { return _SellPosition; }
  79. set { _SellPosition = value; }
  80. }
  81. private double _SellHolderAmount = int.MinValue;
  82. /// <summary>
  83. /// 卖持仓期初总金额
  84. /// </summary>
  85. public double SellHolderAmount
  86. {
  87. get { return _SellHolderAmount; }
  88. set { _SellHolderAmount = value; }
  89. }
  90. private uint _SellFrozen = uint.MaxValue;
  91. /// <summary>
  92. /// 卖持仓冻结
  93. /// </summary>
  94. public uint SellFrozen
  95. {
  96. get { return _SellFrozen; }
  97. set { _SellFrozen = value; }
  98. }
  99. private uint _SellOtherfrozen = uint.MaxValue;
  100. /// <summary>
  101. /// 卖持仓其他冻结
  102. /// </summary>
  103. public uint SellOtherfrozen
  104. {
  105. get { return _SellOtherfrozen; }
  106. set { _SellOtherfrozen = value; }
  107. }
  108. private uint _BuyCurPosition = uint.MaxValue;
  109. /// <summary>
  110. /// 买当前持仓数量
  111. /// </summary>
  112. public uint BuyCurPosition
  113. {
  114. get { return _BuyCurPosition; }
  115. set { _BuyCurPosition = value; }
  116. }
  117. private double _BuyCurHolderAmount = int.MinValue;
  118. /// <summary>
  119. /// 买当前持仓金额
  120. /// </summary>
  121. public double BuyCurHolderAmount
  122. {
  123. get { return _BuyCurHolderAmount; }
  124. set { _BuyCurHolderAmount = value; }
  125. }
  126. private uint _SellCurPosition = uint.MaxValue;
  127. /// <summary>
  128. /// 卖当前持仓数量
  129. /// </summary>
  130. public uint SellCurPosition
  131. {
  132. get { return _SellCurPosition; }
  133. set { _SellCurPosition = value; }
  134. }
  135. private double _SellCurHolderAmount = int.MinValue;
  136. /// <summary>
  137. /// 卖当前持仓金额
  138. /// </summary>
  139. public double SellCurHolderAmount
  140. {
  141. get { return _SellCurHolderAmount; }
  142. set { _SellCurHolderAmount = value; }
  143. }
  144. }
  145. }