OrderMessage.cs 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. //----------------------------------------------------------------
  6. //Module Name: $safeprojectname$
  7. //Purpose:
  8. //CopyRight: Muchinfo
  9. //History:
  10. //----------------------------------------------------------------
  11. //DateTime 2016/3/30 13:45:09
  12. //Author
  13. //Description Create
  14. //----------------------------------------------------------------
  15. using Muchinfo.MTPClient.Data.Enums;
  16. using Muchinfo.MTPClient.Data.Model.Account;
  17. namespace Muchinfo.MTPClient.Data
  18. {
  19. /// <summary>
  20. /// 建平
  21. /// </summary>
  22. public class OrderMessage
  23. {
  24. /// <summary>
  25. /// 下单方向
  26. /// </summary>
  27. public Direction Direction { get; set; }
  28. /// <summary>
  29. /// 取价方式
  30. /// </summary>
  31. public ePriceMode OrderPriceMode { get; set; }
  32. /// <summary>
  33. /// 建仓/平仓
  34. /// </summary>
  35. public OpenCloseMode OpenCloseMode { get; set; }
  36. /// <summary>
  37. /// 要平的单据
  38. /// </summary>
  39. public OrderBase Order { get; set; }
  40. /// <summary>
  41. /// 一般下单/挂牌下单
  42. /// </summary>
  43. public eOrderFormType formType { get; set; }
  44. /// <summary>
  45. /// 资金帐号
  46. /// </summary>
  47. public ulong AccountID { get; set; }
  48. public OrderMessage()
  49. {
  50. OpenCloseMode = OpenCloseMode.BUILDTYPE_OPEN;
  51. formType = eOrderFormType.Commom;
  52. }
  53. /// <summary>
  54. /// 挂牌、摘牌属性 委托单号
  55. /// </summary>
  56. public long OrderId { get; set; }
  57. /// <summary>
  58. /// 挂牌、摘牌属性 委托价格
  59. /// </summary>
  60. public decimal OrderPrice { get; set; }
  61. }
  62. }