OrderCompleteArg.cs 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168
  1. 
  2. using System;
  3. using System.Collections.Generic;
  4. using Muchinfo.MTPClient.Data.Enums;
  5. namespace Muchinfo.MTPClient.Data.Model
  6. {
  7. public class OrderCompleteArg
  8. {
  9. public OrderCompleteType OrderCompleteType { get; set; }
  10. /// <summary>
  11. /// 订单号(委托单号)
  12. /// </summary>
  13. public long OrderId { get; set; }
  14. /// <summary>
  15. /// 二级委托单号
  16. /// </summary>
  17. public long SecEntrustId { get; set; }
  18. /// <summary>
  19. /// 成交数量
  20. /// </summary>
  21. public decimal TradeQuantity { get; set; }
  22. /// <summary>
  23. /// 成交金额
  24. /// </summary>
  25. public decimal Amount { get; set; }
  26. /// <summary>
  27. /// 商品代码
  28. /// </summary>
  29. public string GoodsCode { get; set; }
  30. /// <summary>
  31. /// 激活数量,即剩余数量
  32. /// </summary>
  33. public decimal ActiveQty { get; set; }
  34. /// <summary>
  35. /// 订单状态
  36. /// </summary>
  37. public OrderStatus OrderStatus { get; set; }
  38. /// <summary>
  39. /// 成交ID
  40. /// </summary>
  41. public long TradeID { get; set; }
  42. /// <summary>
  43. /// 资金账号
  44. /// </summary>
  45. public string AccountCode { get; set; }
  46. /// <summary>
  47. /// 账号ID
  48. /// </summary>
  49. public ulong AccountId { get; set; }
  50. /// <summary>
  51. /// 成交价格
  52. /// </summary>
  53. public decimal TradePrice { get; set; }
  54. /// <summary>
  55. /// 买卖方向
  56. /// </summary>
  57. public Direction Direction { get; set; }
  58. /// <summary>
  59. /// 委托数量
  60. /// </summary>
  61. public decimal EntrustQty { get; set; }
  62. /// <summary>
  63. /// 订单类型
  64. /// </summary>
  65. public eOrderType OrderType { get; set; }
  66. /// <summary>
  67. /// 成交时间
  68. /// </summary>
  69. public string TradeTime { get; set; }
  70. /// <summary>
  71. /// 特别会员账号
  72. /// </summary>
  73. public string SpecialAccount { get; set; }
  74. /// <summary>
  75. /// 建仓成交手续费
  76. /// </summary>
  77. public decimal TradeCharge { get; set; }
  78. /// <summary>
  79. /// 仓单服务费
  80. /// </summary>
  81. public decimal WareHouseCharge { get; set; }
  82. /// <summary>
  83. /// 占用保证金
  84. /// </summary>
  85. public decimal UsedMargin { get; set; }
  86. /// <summary>
  87. /// 操作员代码
  88. /// </summary>
  89. public string OperatorCode { get; set; }
  90. /// <summary>
  91. /// 平仓单信息
  92. /// </summary>
  93. public List<TradeCloseInfos> CloseInfos { get; set; }
  94. }
  95. /// <summary>
  96. /// 平仓成交通知信息
  97. /// </summary>
  98. public class TradeCloseInfos
  99. {
  100. /// <summary>
  101. /// 被平持仓单ID
  102. /// </summary>
  103. public long ClosedOrderID { get; set; }
  104. /// <summary>
  105. /// 平仓数量
  106. /// </summary>
  107. public decimal ClosedQty { get; set; }
  108. /// <summary>
  109. /// 平仓盈亏
  110. /// </summary>
  111. public decimal ClosePL { get; set; }
  112. /// <summary>
  113. /// 释放的占用保证金
  114. /// </summary>
  115. public decimal RlsUsedMargin { get; set; }
  116. /// <summary>
  117. /// 平仓手续费
  118. /// </summary>
  119. public decimal TradeCharge { get; set; }
  120. /// <summary>
  121. /// 仓单服务费
  122. /// </summary>
  123. public decimal WareHouseCharge { get; set; }
  124. /// <summary>
  125. /// 成交金额
  126. /// </summary>
  127. public decimal TradeAmount { get; set; }
  128. }
  129. public enum OrderCompleteType
  130. {
  131. Open,
  132. Close
  133. }
  134. }