TradeCaptureReportAck.h 8.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223
  1. #ifndef FIX44_TRADECAPTUREREPORTACK_H
  2. #define FIX44_TRADECAPTUREREPORTACK_H
  3. #include "Message.h"
  4. namespace FIX44
  5. {
  6. class TradeCaptureReportAck : public Message
  7. {
  8. public:
  9. TradeCaptureReportAck() : Message(MsgType()) {}
  10. TradeCaptureReportAck(const FIX::Message& m) : Message(m) {}
  11. TradeCaptureReportAck(const Message& m) : Message(m) {}
  12. TradeCaptureReportAck(const TradeCaptureReportAck& m) : Message(m) {}
  13. static FIX::MsgType MsgType() { return FIX::MsgType("AR"); }
  14. TradeCaptureReportAck(
  15. const FIX::TradeReportID& aTradeReportID,
  16. const FIX::ExecType& aExecType )
  17. : Message(MsgType())
  18. {
  19. set(aTradeReportID);
  20. set(aExecType);
  21. }
  22. FIELD_SET(*this, FIX::TradeReportID);
  23. FIELD_SET(*this, FIX::TradeReportTransType);
  24. FIELD_SET(*this, FIX::TradeReportType);
  25. FIELD_SET(*this, FIX::TrdType);
  26. FIELD_SET(*this, FIX::TrdSubType);
  27. FIELD_SET(*this, FIX::SecondaryTrdType);
  28. FIELD_SET(*this, FIX::TransferReason);
  29. FIELD_SET(*this, FIX::ExecType);
  30. FIELD_SET(*this, FIX::TradeReportRefID);
  31. FIELD_SET(*this, FIX::SecondaryTradeReportRefID);
  32. FIELD_SET(*this, FIX::TrdRptStatus);
  33. FIELD_SET(*this, FIX::TradeReportRejectReason);
  34. FIELD_SET(*this, FIX::SecondaryTradeReportID);
  35. FIELD_SET(*this, FIX::SubscriptionRequestType);
  36. FIELD_SET(*this, FIX::TradeLinkID);
  37. FIELD_SET(*this, FIX::TrdMatchID);
  38. FIELD_SET(*this, FIX::ExecID);
  39. FIELD_SET(*this, FIX::SecondaryExecID);
  40. FIELD_SET(*this, FIX::Symbol);
  41. FIELD_SET(*this, FIX::SymbolSfx);
  42. FIELD_SET(*this, FIX::SecurityID);
  43. FIELD_SET(*this, FIX::SecurityIDSource);
  44. FIELD_SET(*this, FIX::Product);
  45. FIELD_SET(*this, FIX::CFICode);
  46. FIELD_SET(*this, FIX::SecurityType);
  47. FIELD_SET(*this, FIX::SecuritySubType);
  48. FIELD_SET(*this, FIX::MaturityMonthYear);
  49. FIELD_SET(*this, FIX::MaturityDate);
  50. FIELD_SET(*this, FIX::PutOrCall);
  51. FIELD_SET(*this, FIX::CouponPaymentDate);
  52. FIELD_SET(*this, FIX::IssueDate);
  53. FIELD_SET(*this, FIX::RepoCollateralSecurityType);
  54. FIELD_SET(*this, FIX::RepurchaseTerm);
  55. FIELD_SET(*this, FIX::RepurchaseRate);
  56. FIELD_SET(*this, FIX::Factor);
  57. FIELD_SET(*this, FIX::CreditRating);
  58. FIELD_SET(*this, FIX::InstrRegistry);
  59. FIELD_SET(*this, FIX::CountryOfIssue);
  60. FIELD_SET(*this, FIX::StateOrProvinceOfIssue);
  61. FIELD_SET(*this, FIX::LocaleOfIssue);
  62. FIELD_SET(*this, FIX::RedemptionDate);
  63. FIELD_SET(*this, FIX::StrikePrice);
  64. FIELD_SET(*this, FIX::StrikeCurrency);
  65. FIELD_SET(*this, FIX::OptAttribute);
  66. FIELD_SET(*this, FIX::ContractMultiplier);
  67. FIELD_SET(*this, FIX::CouponRate);
  68. FIELD_SET(*this, FIX::SecurityExchange);
  69. FIELD_SET(*this, FIX::Issuer);
  70. FIELD_SET(*this, FIX::EncodedIssuerLen);
  71. FIELD_SET(*this, FIX::EncodedIssuer);
  72. FIELD_SET(*this, FIX::SecurityDesc);
  73. FIELD_SET(*this, FIX::EncodedSecurityDescLen);
  74. FIELD_SET(*this, FIX::EncodedSecurityDesc);
  75. FIELD_SET(*this, FIX::Pool);
  76. FIELD_SET(*this, FIX::ContractSettlMonth);
  77. FIELD_SET(*this, FIX::CPProgram);
  78. FIELD_SET(*this, FIX::CPRegType);
  79. FIELD_SET(*this, FIX::DatedDate);
  80. FIELD_SET(*this, FIX::InterestAccrualDate);
  81. FIELD_SET(*this, FIX::TransactTime);
  82. FIELD_SET(*this, FIX::NoTrdRegTimestamps);
  83. class NoTrdRegTimestamps: public FIX::Group
  84. {
  85. public:
  86. NoTrdRegTimestamps() : FIX::Group(768,769,FIX::message_order(769,770,771,0)) {}
  87. FIELD_SET(*this, FIX::TrdRegTimestamp);
  88. FIELD_SET(*this, FIX::TrdRegTimestampType);
  89. FIELD_SET(*this, FIX::TrdRegTimestampOrigin);
  90. };
  91. FIELD_SET(*this, FIX::ResponseTransportType);
  92. FIELD_SET(*this, FIX::ResponseDestination);
  93. FIELD_SET(*this, FIX::Text);
  94. FIELD_SET(*this, FIX::EncodedTextLen);
  95. FIELD_SET(*this, FIX::EncodedText);
  96. FIELD_SET(*this, FIX::NoLegs);
  97. class NoLegs: public FIX::Group
  98. {
  99. public:
  100. NoLegs() : FIX::Group(555,600,FIX::message_order(600,601,602,603,607,608,609,764,610,611,248,249,250,251,252,253,257,599,596,597,598,254,612,942,613,614,615,616,617,618,619,620,621,622,623,624,556,740,739,955,956,687,690,683,564,565,539,654,566,587,588,637,0)) {}
  101. FIELD_SET(*this, FIX::LegSymbol);
  102. FIELD_SET(*this, FIX::LegSymbolSfx);
  103. FIELD_SET(*this, FIX::LegSecurityID);
  104. FIELD_SET(*this, FIX::LegSecurityIDSource);
  105. FIELD_SET(*this, FIX::LegProduct);
  106. FIELD_SET(*this, FIX::LegCFICode);
  107. FIELD_SET(*this, FIX::LegSecurityType);
  108. FIELD_SET(*this, FIX::LegSecuritySubType);
  109. FIELD_SET(*this, FIX::LegMaturityMonthYear);
  110. FIELD_SET(*this, FIX::LegMaturityDate);
  111. FIELD_SET(*this, FIX::LegCouponPaymentDate);
  112. FIELD_SET(*this, FIX::LegIssueDate);
  113. FIELD_SET(*this, FIX::LegRepoCollateralSecurityType);
  114. FIELD_SET(*this, FIX::LegRepurchaseTerm);
  115. FIELD_SET(*this, FIX::LegRepurchaseRate);
  116. FIELD_SET(*this, FIX::LegFactor);
  117. FIELD_SET(*this, FIX::LegCreditRating);
  118. FIELD_SET(*this, FIX::LegInstrRegistry);
  119. FIELD_SET(*this, FIX::LegCountryOfIssue);
  120. FIELD_SET(*this, FIX::LegStateOrProvinceOfIssue);
  121. FIELD_SET(*this, FIX::LegLocaleOfIssue);
  122. FIELD_SET(*this, FIX::LegRedemptionDate);
  123. FIELD_SET(*this, FIX::LegStrikePrice);
  124. FIELD_SET(*this, FIX::LegStrikeCurrency);
  125. FIELD_SET(*this, FIX::LegOptAttribute);
  126. FIELD_SET(*this, FIX::LegContractMultiplier);
  127. FIELD_SET(*this, FIX::LegCouponRate);
  128. FIELD_SET(*this, FIX::LegSecurityExchange);
  129. FIELD_SET(*this, FIX::LegIssuer);
  130. FIELD_SET(*this, FIX::EncodedLegIssuerLen);
  131. FIELD_SET(*this, FIX::EncodedLegIssuer);
  132. FIELD_SET(*this, FIX::LegSecurityDesc);
  133. FIELD_SET(*this, FIX::EncodedLegSecurityDescLen);
  134. FIELD_SET(*this, FIX::EncodedLegSecurityDesc);
  135. FIELD_SET(*this, FIX::LegRatioQty);
  136. FIELD_SET(*this, FIX::LegSide);
  137. FIELD_SET(*this, FIX::LegCurrency);
  138. FIELD_SET(*this, FIX::LegPool);
  139. FIELD_SET(*this, FIX::LegDatedDate);
  140. FIELD_SET(*this, FIX::LegContractSettlMonth);
  141. FIELD_SET(*this, FIX::LegInterestAccrualDate);
  142. FIELD_SET(*this, FIX::LegQty);
  143. FIELD_SET(*this, FIX::LegSwapType);
  144. FIELD_SET(*this, FIX::NoLegStipulations);
  145. class NoLegStipulations: public FIX::Group
  146. {
  147. public:
  148. NoLegStipulations() : FIX::Group(683,688,FIX::message_order(688,689,0)) {}
  149. FIELD_SET(*this, FIX::LegStipulationType);
  150. FIELD_SET(*this, FIX::LegStipulationValue);
  151. };
  152. FIELD_SET(*this, FIX::LegPositionEffect);
  153. FIELD_SET(*this, FIX::LegCoveredOrUncovered);
  154. FIELD_SET(*this, FIX::NoNestedPartyIDs);
  155. class NoNestedPartyIDs: public FIX::Group
  156. {
  157. public:
  158. NoNestedPartyIDs() : FIX::Group(539,524,FIX::message_order(524,525,538,804,0)) {}
  159. FIELD_SET(*this, FIX::NestedPartyID);
  160. FIELD_SET(*this, FIX::NestedPartyIDSource);
  161. FIELD_SET(*this, FIX::NestedPartyRole);
  162. FIELD_SET(*this, FIX::NoNestedPartySubIDs);
  163. class NoNestedPartySubIDs: public FIX::Group
  164. {
  165. public:
  166. NoNestedPartySubIDs() : FIX::Group(804,545,FIX::message_order(545,805,0)) {}
  167. FIELD_SET(*this, FIX::NestedPartySubID);
  168. FIELD_SET(*this, FIX::NestedPartySubIDType);
  169. };
  170. };
  171. FIELD_SET(*this, FIX::LegRefID);
  172. FIELD_SET(*this, FIX::LegPrice);
  173. FIELD_SET(*this, FIX::LegSettlType);
  174. FIELD_SET(*this, FIX::LegSettlDate);
  175. FIELD_SET(*this, FIX::LegLastPx);
  176. };
  177. FIELD_SET(*this, FIX::ClearingFeeIndicator);
  178. FIELD_SET(*this, FIX::OrderCapacity);
  179. FIELD_SET(*this, FIX::OrderRestrictions);
  180. FIELD_SET(*this, FIX::CustOrderCapacity);
  181. FIELD_SET(*this, FIX::Account);
  182. FIELD_SET(*this, FIX::AcctIDSource);
  183. FIELD_SET(*this, FIX::AccountType);
  184. FIELD_SET(*this, FIX::PositionEffect);
  185. FIELD_SET(*this, FIX::PreallocMethod);
  186. FIELD_SET(*this, FIX::NoAllocs);
  187. class NoAllocs: public FIX::Group
  188. {
  189. public:
  190. NoAllocs() : FIX::Group(78,79,FIX::message_order(79,661,736,467,756,80,0)) {}
  191. FIELD_SET(*this, FIX::AllocAccount);
  192. FIELD_SET(*this, FIX::AllocAcctIDSource);
  193. FIELD_SET(*this, FIX::AllocSettlCurrency);
  194. FIELD_SET(*this, FIX::IndividualAllocID);
  195. FIELD_SET(*this, FIX::NoNested2PartyIDs);
  196. class NoNested2PartyIDs: public FIX::Group
  197. {
  198. public:
  199. NoNested2PartyIDs() : FIX::Group(756,757,FIX::message_order(757,758,759,806,0)) {}
  200. FIELD_SET(*this, FIX::Nested2PartyID);
  201. FIELD_SET(*this, FIX::Nested2PartyIDSource);
  202. FIELD_SET(*this, FIX::Nested2PartyRole);
  203. FIELD_SET(*this, FIX::NoNested2PartySubIDs);
  204. class NoNested2PartySubIDs: public FIX::Group
  205. {
  206. public:
  207. NoNested2PartySubIDs() : FIX::Group(806,760,FIX::message_order(760,807,0)) {}
  208. FIELD_SET(*this, FIX::Nested2PartySubID);
  209. FIELD_SET(*this, FIX::Nested2PartySubIDType);
  210. };
  211. };
  212. FIELD_SET(*this, FIX::AllocQty);
  213. };
  214. };
  215. }
  216. #endif