NewOrderSingle.h 7.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200
  1. #ifndef FIX43_NEWORDERSINGLE_H
  2. #define FIX43_NEWORDERSINGLE_H
  3. #include "Message.h"
  4. namespace FIX43
  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::Side& aSide,
  18. const FIX::TransactTime& aTransactTime,
  19. const FIX::OrdType& aOrdType )
  20. : Message(MsgType())
  21. {
  22. set(aClOrdID);
  23. set(aHandlInst);
  24. set(aSide);
  25. set(aTransactTime);
  26. set(aOrdType);
  27. }
  28. FIELD_SET(*this, FIX::ClOrdID);
  29. FIELD_SET(*this, FIX::SecondaryClOrdID);
  30. FIELD_SET(*this, FIX::ClOrdLinkID);
  31. FIELD_SET(*this, FIX::NoPartyIDs);
  32. class NoPartyIDs: public FIX::Group
  33. {
  34. public:
  35. NoPartyIDs() : FIX::Group(453,448,FIX::message_order(448,447,452,523,0)) {}
  36. FIELD_SET(*this, FIX::PartyID);
  37. FIELD_SET(*this, FIX::PartyIDSource);
  38. FIELD_SET(*this, FIX::PartyRole);
  39. FIELD_SET(*this, FIX::PartySubID);
  40. };
  41. FIELD_SET(*this, FIX::TradeOriginationDate);
  42. FIELD_SET(*this, FIX::Account);
  43. FIELD_SET(*this, FIX::AccountType);
  44. FIELD_SET(*this, FIX::DayBookingInst);
  45. FIELD_SET(*this, FIX::BookingUnit);
  46. FIELD_SET(*this, FIX::PreallocMethod);
  47. FIELD_SET(*this, FIX::SettlmntTyp);
  48. FIELD_SET(*this, FIX::FutSettDate);
  49. FIELD_SET(*this, FIX::CashMargin);
  50. FIELD_SET(*this, FIX::ClearingFeeIndicator);
  51. FIELD_SET(*this, FIX::HandlInst);
  52. FIELD_SET(*this, FIX::ExecInst);
  53. FIELD_SET(*this, FIX::MinQty);
  54. FIELD_SET(*this, FIX::MaxFloor);
  55. FIELD_SET(*this, FIX::ExDestination);
  56. FIELD_SET(*this, FIX::ProcessCode);
  57. FIELD_SET(*this, FIX::Symbol);
  58. FIELD_SET(*this, FIX::SymbolSfx);
  59. FIELD_SET(*this, FIX::SecurityID);
  60. FIELD_SET(*this, FIX::SecurityIDSource);
  61. FIELD_SET(*this, FIX::Product);
  62. FIELD_SET(*this, FIX::CFICode);
  63. FIELD_SET(*this, FIX::SecurityType);
  64. FIELD_SET(*this, FIX::MaturityMonthYear);
  65. FIELD_SET(*this, FIX::MaturityDate);
  66. FIELD_SET(*this, FIX::CouponPaymentDate);
  67. FIELD_SET(*this, FIX::IssueDate);
  68. FIELD_SET(*this, FIX::RepoCollateralSecurityType);
  69. FIELD_SET(*this, FIX::RepurchaseTerm);
  70. FIELD_SET(*this, FIX::RepurchaseRate);
  71. FIELD_SET(*this, FIX::Factor);
  72. FIELD_SET(*this, FIX::CreditRating);
  73. FIELD_SET(*this, FIX::InstrRegistry);
  74. FIELD_SET(*this, FIX::CountryOfIssue);
  75. FIELD_SET(*this, FIX::StateOrProvinceOfIssue);
  76. FIELD_SET(*this, FIX::LocaleOfIssue);
  77. FIELD_SET(*this, FIX::RedemptionDate);
  78. FIELD_SET(*this, FIX::StrikePrice);
  79. FIELD_SET(*this, FIX::OptAttribute);
  80. FIELD_SET(*this, FIX::ContractMultiplier);
  81. FIELD_SET(*this, FIX::CouponRate);
  82. FIELD_SET(*this, FIX::SecurityExchange);
  83. FIELD_SET(*this, FIX::Issuer);
  84. FIELD_SET(*this, FIX::EncodedIssuerLen);
  85. FIELD_SET(*this, FIX::EncodedIssuer);
  86. FIELD_SET(*this, FIX::SecurityDesc);
  87. FIELD_SET(*this, FIX::EncodedSecurityDescLen);
  88. FIELD_SET(*this, FIX::EncodedSecurityDesc);
  89. FIELD_SET(*this, FIX::NoSecurityAltID);
  90. class NoSecurityAltID: public FIX::Group
  91. {
  92. public:
  93. NoSecurityAltID() : FIX::Group(454,455,FIX::message_order(455,456,0)) {}
  94. FIELD_SET(*this, FIX::SecurityAltID);
  95. FIELD_SET(*this, FIX::SecurityAltIDSource);
  96. };
  97. FIELD_SET(*this, FIX::PrevClosePx);
  98. FIELD_SET(*this, FIX::Side);
  99. FIELD_SET(*this, FIX::LocateReqd);
  100. FIELD_SET(*this, FIX::TransactTime);
  101. FIELD_SET(*this, FIX::NoStipulations);
  102. class NoStipulations: public FIX::Group
  103. {
  104. public:
  105. NoStipulations() : FIX::Group(232,233,FIX::message_order(233,234,0)) {}
  106. FIELD_SET(*this, FIX::StipulationType);
  107. FIELD_SET(*this, FIX::StipulationValue);
  108. };
  109. FIELD_SET(*this, FIX::QuantityType);
  110. FIELD_SET(*this, FIX::OrderQty);
  111. FIELD_SET(*this, FIX::CashOrderQty);
  112. FIELD_SET(*this, FIX::OrderPercent);
  113. FIELD_SET(*this, FIX::RoundingDirection);
  114. FIELD_SET(*this, FIX::RoundingModulus);
  115. FIELD_SET(*this, FIX::OrdType);
  116. FIELD_SET(*this, FIX::PriceType);
  117. FIELD_SET(*this, FIX::Price);
  118. FIELD_SET(*this, FIX::StopPx);
  119. FIELD_SET(*this, FIX::Spread);
  120. FIELD_SET(*this, FIX::BenchmarkCurveCurrency);
  121. FIELD_SET(*this, FIX::BenchmarkCurveName);
  122. FIELD_SET(*this, FIX::BenchmarkCurvePoint);
  123. FIELD_SET(*this, FIX::YieldType);
  124. FIELD_SET(*this, FIX::Yield);
  125. FIELD_SET(*this, FIX::Currency);
  126. FIELD_SET(*this, FIX::ComplianceID);
  127. FIELD_SET(*this, FIX::SolicitedFlag);
  128. FIELD_SET(*this, FIX::IOIid);
  129. FIELD_SET(*this, FIX::QuoteID);
  130. FIELD_SET(*this, FIX::TimeInForce);
  131. FIELD_SET(*this, FIX::EffectiveTime);
  132. FIELD_SET(*this, FIX::ExpireDate);
  133. FIELD_SET(*this, FIX::ExpireTime);
  134. FIELD_SET(*this, FIX::GTBookingInst);
  135. FIELD_SET(*this, FIX::Commission);
  136. FIELD_SET(*this, FIX::CommType);
  137. FIELD_SET(*this, FIX::CommCurrency);
  138. FIELD_SET(*this, FIX::FundRenewWaiv);
  139. FIELD_SET(*this, FIX::OrderCapacity);
  140. FIELD_SET(*this, FIX::OrderRestrictions);
  141. FIELD_SET(*this, FIX::CustOrderCapacity);
  142. FIELD_SET(*this, FIX::Rule80A);
  143. FIELD_SET(*this, FIX::ForexReq);
  144. FIELD_SET(*this, FIX::SettlCurrency);
  145. FIELD_SET(*this, FIX::Text);
  146. FIELD_SET(*this, FIX::EncodedTextLen);
  147. FIELD_SET(*this, FIX::EncodedText);
  148. FIELD_SET(*this, FIX::FutSettDate2);
  149. FIELD_SET(*this, FIX::OrderQty2);
  150. FIELD_SET(*this, FIX::Price2);
  151. FIELD_SET(*this, FIX::PositionEffect);
  152. FIELD_SET(*this, FIX::CoveredOrUncovered);
  153. FIELD_SET(*this, FIX::MaxShow);
  154. FIELD_SET(*this, FIX::PegDifference);
  155. FIELD_SET(*this, FIX::DiscretionInst);
  156. FIELD_SET(*this, FIX::DiscretionOffset);
  157. FIELD_SET(*this, FIX::CancellationRights);
  158. FIELD_SET(*this, FIX::MoneyLaunderingStatus);
  159. FIELD_SET(*this, FIX::RegistID);
  160. FIELD_SET(*this, FIX::Designation);
  161. FIELD_SET(*this, FIX::AccruedInterestRate);
  162. FIELD_SET(*this, FIX::AccruedInterestAmt);
  163. FIELD_SET(*this, FIX::NetMoney);
  164. FIELD_SET(*this, FIX::NoAllocs);
  165. class NoAllocs: public FIX::Group
  166. {
  167. public:
  168. NoAllocs() : FIX::Group(78,79,FIX::message_order(79,467,539,80,0)) {}
  169. FIELD_SET(*this, FIX::AllocAccount);
  170. FIELD_SET(*this, FIX::IndividualAllocID);
  171. FIELD_SET(*this, FIX::NoNestedPartyIDs);
  172. class NoNestedPartyIDs: public FIX::Group
  173. {
  174. public:
  175. NoNestedPartyIDs() : FIX::Group(539,524,FIX::message_order(524,525,538,545,0)) {}
  176. FIELD_SET(*this, FIX::NestedPartyID);
  177. FIELD_SET(*this, FIX::NestedPartyIDSource);
  178. FIELD_SET(*this, FIX::NestedPartyRole);
  179. FIELD_SET(*this, FIX::NestedPartySubID);
  180. };
  181. FIELD_SET(*this, FIX::AllocQty);
  182. };
  183. FIELD_SET(*this, FIX::NoTradingSessions);
  184. class NoTradingSessions: public FIX::Group
  185. {
  186. public:
  187. NoTradingSessions() : FIX::Group(386,336,FIX::message_order(336,625,0)) {}
  188. FIELD_SET(*this, FIX::TradingSessionID);
  189. FIELD_SET(*this, FIX::TradingSessionSubID);
  190. };
  191. };
  192. }
  193. #endif