NewOrderSingle.h 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123
  1. #ifndef FIX42_NEWORDERSINGLE_H
  2. #define FIX42_NEWORDERSINGLE_H
  3. #include "Message.h"
  4. namespace FIX42
  5. {
  6. class NewOrderSingle : public Message
  7. {
  8. public:
  9. NewOrderSingle() : Message(MsgType()) {}
  10. NewOrderSingle(const FIX::Message& m) : Message(m) {}
  11. NewOrderSingle(const Message& m) : Message(m) {}
  12. NewOrderSingle(const NewOrderSingle& m) : Message(m) {}
  13. static FIX::MsgType MsgType() { return FIX::MsgType("D"); }
  14. NewOrderSingle(
  15. const FIX::ClOrdID& aClOrdID,
  16. const FIX::HandlInst& aHandlInst,
  17. const FIX::Symbol& aSymbol,
  18. const FIX::Side& aSide,
  19. const FIX::TransactTime& aTransactTime,
  20. const FIX::OrdType& aOrdType )
  21. : Message(MsgType())
  22. {
  23. set(aClOrdID);
  24. set(aHandlInst);
  25. set(aSymbol);
  26. set(aSide);
  27. set(aTransactTime);
  28. set(aOrdType);
  29. }
  30. FIELD_SET(*this, FIX::ClOrdID);
  31. FIELD_SET(*this, FIX::ClientID);
  32. FIELD_SET(*this, FIX::ExecBroker);
  33. FIELD_SET(*this, FIX::Account);
  34. FIELD_SET(*this, FIX::SettlmntTyp);
  35. FIELD_SET(*this, FIX::FutSettDate);
  36. FIELD_SET(*this, FIX::HandlInst);
  37. FIELD_SET(*this, FIX::ExecInst);
  38. FIELD_SET(*this, FIX::MinQty);
  39. FIELD_SET(*this, FIX::MaxFloor);
  40. FIELD_SET(*this, FIX::ExDestination);
  41. FIELD_SET(*this, FIX::ProcessCode);
  42. FIELD_SET(*this, FIX::Symbol);
  43. FIELD_SET(*this, FIX::SymbolSfx);
  44. FIELD_SET(*this, FIX::SecurityID);
  45. FIELD_SET(*this, FIX::IDSource);
  46. FIELD_SET(*this, FIX::SecurityType);
  47. FIELD_SET(*this, FIX::MaturityMonthYear);
  48. FIELD_SET(*this, FIX::MaturityDay);
  49. FIELD_SET(*this, FIX::PutOrCall);
  50. FIELD_SET(*this, FIX::StrikePrice);
  51. FIELD_SET(*this, FIX::OptAttribute);
  52. FIELD_SET(*this, FIX::ContractMultiplier);
  53. FIELD_SET(*this, FIX::CouponRate);
  54. FIELD_SET(*this, FIX::SecurityExchange);
  55. FIELD_SET(*this, FIX::Issuer);
  56. FIELD_SET(*this, FIX::EncodedIssuerLen);
  57. FIELD_SET(*this, FIX::EncodedIssuer);
  58. FIELD_SET(*this, FIX::SecurityDesc);
  59. FIELD_SET(*this, FIX::EncodedSecurityDescLen);
  60. FIELD_SET(*this, FIX::EncodedSecurityDesc);
  61. FIELD_SET(*this, FIX::PrevClosePx);
  62. FIELD_SET(*this, FIX::Side);
  63. FIELD_SET(*this, FIX::LocateReqd);
  64. FIELD_SET(*this, FIX::TransactTime);
  65. FIELD_SET(*this, FIX::OrderQty);
  66. FIELD_SET(*this, FIX::CashOrderQty);
  67. FIELD_SET(*this, FIX::OrdType);
  68. FIELD_SET(*this, FIX::Price);
  69. FIELD_SET(*this, FIX::StopPx);
  70. FIELD_SET(*this, FIX::Currency);
  71. FIELD_SET(*this, FIX::ComplianceID);
  72. FIELD_SET(*this, FIX::SolicitedFlag);
  73. FIELD_SET(*this, FIX::IOIid);
  74. FIELD_SET(*this, FIX::QuoteID);
  75. FIELD_SET(*this, FIX::TimeInForce);
  76. FIELD_SET(*this, FIX::EffectiveTime);
  77. FIELD_SET(*this, FIX::ExpireDate);
  78. FIELD_SET(*this, FIX::ExpireTime);
  79. FIELD_SET(*this, FIX::GTBookingInst);
  80. FIELD_SET(*this, FIX::Commission);
  81. FIELD_SET(*this, FIX::CommType);
  82. FIELD_SET(*this, FIX::Rule80A);
  83. FIELD_SET(*this, FIX::ForexReq);
  84. FIELD_SET(*this, FIX::SettlCurrency);
  85. FIELD_SET(*this, FIX::Text);
  86. FIELD_SET(*this, FIX::EncodedTextLen);
  87. FIELD_SET(*this, FIX::EncodedText);
  88. FIELD_SET(*this, FIX::FutSettDate2);
  89. FIELD_SET(*this, FIX::OrderQty2);
  90. FIELD_SET(*this, FIX::OpenClose);
  91. FIELD_SET(*this, FIX::CoveredOrUncovered);
  92. FIELD_SET(*this, FIX::CustomerOrFirm);
  93. FIELD_SET(*this, FIX::MaxShow);
  94. FIELD_SET(*this, FIX::PegDifference);
  95. FIELD_SET(*this, FIX::DiscretionInst);
  96. FIELD_SET(*this, FIX::DiscretionOffset);
  97. FIELD_SET(*this, FIX::ClearingFirm);
  98. FIELD_SET(*this, FIX::ClearingAccount);
  99. FIELD_SET(*this, FIX::NoAllocs);
  100. class NoAllocs: public FIX::Group
  101. {
  102. public:
  103. NoAllocs() : FIX::Group(78,79,FIX::message_order(79,80,0)) {}
  104. FIELD_SET(*this, FIX::AllocAccount);
  105. FIELD_SET(*this, FIX::AllocShares);
  106. };
  107. FIELD_SET(*this, FIX::NoTradingSessions);
  108. class NoTradingSessions: public FIX::Group
  109. {
  110. public:
  111. NoTradingSessions() : FIX::Group(386,336,FIX::message_order(336,0)) {}
  112. FIELD_SET(*this, FIX::TradingSessionID);
  113. };
  114. };
  115. }
  116. #endif