ContraryIntentionReport.h 8.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203
  1. #ifndef FIX50SP1_CONTRARYINTENTIONREPORT_H
  2. #define FIX50SP1_CONTRARYINTENTIONREPORT_H
  3. #include "Message.h"
  4. namespace FIX50SP1
  5. {
  6. class ContraryIntentionReport : public Message
  7. {
  8. public:
  9. ContraryIntentionReport() : Message(MsgType()) {}
  10. ContraryIntentionReport(const FIX::Message& m) : Message(m) {}
  11. ContraryIntentionReport(const Message& m) : Message(m) {}
  12. ContraryIntentionReport(const ContraryIntentionReport& m) : Message(m) {}
  13. static FIX::MsgType MsgType() { return FIX::MsgType("BO"); }
  14. ContraryIntentionReport(
  15. const FIX::ContIntRptID& aContIntRptID,
  16. const FIX::ClearingBusinessDate& aClearingBusinessDate )
  17. : Message(MsgType())
  18. {
  19. set(aContIntRptID);
  20. set(aClearingBusinessDate);
  21. }
  22. FIELD_SET(*this, FIX::ApplID);
  23. FIELD_SET(*this, FIX::ApplSeqNum);
  24. FIELD_SET(*this, FIX::ApplLastSeqNum);
  25. FIELD_SET(*this, FIX::ApplResendFlag);
  26. FIELD_SET(*this, FIX::ContIntRptID);
  27. FIELD_SET(*this, FIX::TransactTime);
  28. FIELD_SET(*this, FIX::LateIndicator);
  29. FIELD_SET(*this, FIX::InputSource);
  30. FIELD_SET(*this, FIX::ClearingBusinessDate);
  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,802,0)) {}
  36. FIELD_SET(*this, FIX::PartyID);
  37. FIELD_SET(*this, FIX::PartyIDSource);
  38. FIELD_SET(*this, FIX::PartyRole);
  39. FIELD_SET(*this, FIX::NoPartySubIDs);
  40. class NoPartySubIDs: public FIX::Group
  41. {
  42. public:
  43. NoPartySubIDs() : FIX::Group(802,523,FIX::message_order(523,803,0)) {}
  44. FIELD_SET(*this, FIX::PartySubID);
  45. FIELD_SET(*this, FIX::PartySubIDType);
  46. };
  47. };
  48. FIELD_SET(*this, FIX::NoExpiration);
  49. class NoExpiration: public FIX::Group
  50. {
  51. public:
  52. NoExpiration() : FIX::Group(981,982,FIX::message_order(982,983,0)) {}
  53. FIELD_SET(*this, FIX::ExpirationQtyType);
  54. FIELD_SET(*this, FIX::ExpQty);
  55. };
  56. FIELD_SET(*this, FIX::Symbol);
  57. FIELD_SET(*this, FIX::SymbolSfx);
  58. FIELD_SET(*this, FIX::SecurityID);
  59. FIELD_SET(*this, FIX::SecurityIDSource);
  60. FIELD_SET(*this, FIX::Product);
  61. FIELD_SET(*this, FIX::ProductComplex);
  62. FIELD_SET(*this, FIX::SecurityGroup);
  63. FIELD_SET(*this, FIX::CFICode);
  64. FIELD_SET(*this, FIX::SecurityType);
  65. FIELD_SET(*this, FIX::SecuritySubType);
  66. FIELD_SET(*this, FIX::MaturityMonthYear);
  67. FIELD_SET(*this, FIX::MaturityDate);
  68. FIELD_SET(*this, FIX::MaturityTime);
  69. FIELD_SET(*this, FIX::SettleOnOpenFlag);
  70. FIELD_SET(*this, FIX::InstrmtAssignmentMethod);
  71. FIELD_SET(*this, FIX::SecurityStatus);
  72. FIELD_SET(*this, FIX::CouponPaymentDate);
  73. FIELD_SET(*this, FIX::IssueDate);
  74. FIELD_SET(*this, FIX::RepoCollateralSecurityType);
  75. FIELD_SET(*this, FIX::RepurchaseTerm);
  76. FIELD_SET(*this, FIX::RepurchaseRate);
  77. FIELD_SET(*this, FIX::Factor);
  78. FIELD_SET(*this, FIX::CreditRating);
  79. FIELD_SET(*this, FIX::InstrRegistry);
  80. FIELD_SET(*this, FIX::CountryOfIssue);
  81. FIELD_SET(*this, FIX::StateOrProvinceOfIssue);
  82. FIELD_SET(*this, FIX::LocaleOfIssue);
  83. FIELD_SET(*this, FIX::RedemptionDate);
  84. FIELD_SET(*this, FIX::StrikePrice);
  85. FIELD_SET(*this, FIX::StrikeCurrency);
  86. FIELD_SET(*this, FIX::StrikeMultiplier);
  87. FIELD_SET(*this, FIX::StrikeValue);
  88. FIELD_SET(*this, FIX::OptAttribute);
  89. FIELD_SET(*this, FIX::ContractMultiplier);
  90. FIELD_SET(*this, FIX::MinPriceIncrement);
  91. FIELD_SET(*this, FIX::MinPriceIncrementAmount);
  92. FIELD_SET(*this, FIX::UnitOfMeasure);
  93. FIELD_SET(*this, FIX::UnitOfMeasureQty);
  94. FIELD_SET(*this, FIX::PriceUnitOfMeasure);
  95. FIELD_SET(*this, FIX::PriceUnitOfMeasureQty);
  96. FIELD_SET(*this, FIX::SettlMethod);
  97. FIELD_SET(*this, FIX::ExerciseStyle);
  98. FIELD_SET(*this, FIX::OptPayAmount);
  99. FIELD_SET(*this, FIX::PriceQuoteMethod);
  100. FIELD_SET(*this, FIX::FuturesValuationMethod);
  101. FIELD_SET(*this, FIX::ListMethod);
  102. FIELD_SET(*this, FIX::CapPrice);
  103. FIELD_SET(*this, FIX::FloorPrice);
  104. FIELD_SET(*this, FIX::PutOrCall);
  105. FIELD_SET(*this, FIX::FlexibleIndicator);
  106. FIELD_SET(*this, FIX::FlexProductEligibilityIndicator);
  107. FIELD_SET(*this, FIX::TimeUnit);
  108. FIELD_SET(*this, FIX::CouponRate);
  109. FIELD_SET(*this, FIX::SecurityExchange);
  110. FIELD_SET(*this, FIX::PositionLimit);
  111. FIELD_SET(*this, FIX::NTPositionLimit);
  112. FIELD_SET(*this, FIX::Issuer);
  113. FIELD_SET(*this, FIX::EncodedIssuerLen);
  114. FIELD_SET(*this, FIX::EncodedIssuer);
  115. FIELD_SET(*this, FIX::SecurityDesc);
  116. FIELD_SET(*this, FIX::EncodedSecurityDescLen);
  117. FIELD_SET(*this, FIX::EncodedSecurityDesc);
  118. FIELD_SET(*this, FIX::Pool);
  119. FIELD_SET(*this, FIX::ContractSettlMonth);
  120. FIELD_SET(*this, FIX::CPProgram);
  121. FIELD_SET(*this, FIX::CPRegType);
  122. FIELD_SET(*this, FIX::DatedDate);
  123. FIELD_SET(*this, FIX::InterestAccrualDate);
  124. FIELD_SET(*this, FIX::NoUnderlyings);
  125. class NoUnderlyings: public FIX::Group
  126. {
  127. public:
  128. NoUnderlyings() : FIX::Group(711,311,FIX::message_order(311,312,309,305,462,463,310,763,313,542,1213,241,242,243,244,245,246,256,595,592,593,594,247,316,941,317,436,998,1423,1424,1425,1000,1419,435,308,306,362,363,307,364,365,877,878,972,318,879,975,973,974,810,882,883,884,885,886,1044,1045,1046,1038,1039,315,0)) {}
  129. FIELD_SET(*this, FIX::UnderlyingSymbol);
  130. FIELD_SET(*this, FIX::UnderlyingSymbolSfx);
  131. FIELD_SET(*this, FIX::UnderlyingSecurityID);
  132. FIELD_SET(*this, FIX::UnderlyingSecurityIDSource);
  133. FIELD_SET(*this, FIX::UnderlyingProduct);
  134. FIELD_SET(*this, FIX::UnderlyingCFICode);
  135. FIELD_SET(*this, FIX::UnderlyingSecurityType);
  136. FIELD_SET(*this, FIX::UnderlyingSecuritySubType);
  137. FIELD_SET(*this, FIX::UnderlyingMaturityMonthYear);
  138. FIELD_SET(*this, FIX::UnderlyingMaturityDate);
  139. FIELD_SET(*this, FIX::UnderlyingMaturityTime);
  140. FIELD_SET(*this, FIX::UnderlyingCouponPaymentDate);
  141. FIELD_SET(*this, FIX::UnderlyingIssueDate);
  142. FIELD_SET(*this, FIX::UnderlyingRepoCollateralSecurityType);
  143. FIELD_SET(*this, FIX::UnderlyingRepurchaseTerm);
  144. FIELD_SET(*this, FIX::UnderlyingRepurchaseRate);
  145. FIELD_SET(*this, FIX::UnderlyingFactor);
  146. FIELD_SET(*this, FIX::UnderlyingCreditRating);
  147. FIELD_SET(*this, FIX::UnderlyingInstrRegistry);
  148. FIELD_SET(*this, FIX::UnderlyingCountryOfIssue);
  149. FIELD_SET(*this, FIX::UnderlyingStateOrProvinceOfIssue);
  150. FIELD_SET(*this, FIX::UnderlyingLocaleOfIssue);
  151. FIELD_SET(*this, FIX::UnderlyingRedemptionDate);
  152. FIELD_SET(*this, FIX::UnderlyingStrikePrice);
  153. FIELD_SET(*this, FIX::UnderlyingStrikeCurrency);
  154. FIELD_SET(*this, FIX::UnderlyingOptAttribute);
  155. FIELD_SET(*this, FIX::UnderlyingContractMultiplier);
  156. FIELD_SET(*this, FIX::UnderlyingUnitOfMeasure);
  157. FIELD_SET(*this, FIX::UnderlyingUnitOfMeasureQty);
  158. FIELD_SET(*this, FIX::UnderlyingPriceUnitOfMeasure);
  159. FIELD_SET(*this, FIX::UnderlyingPriceUnitOfMeasureQty);
  160. FIELD_SET(*this, FIX::UnderlyingTimeUnit);
  161. FIELD_SET(*this, FIX::UnderlyingExerciseStyle);
  162. FIELD_SET(*this, FIX::UnderlyingCouponRate);
  163. FIELD_SET(*this, FIX::UnderlyingSecurityExchange);
  164. FIELD_SET(*this, FIX::UnderlyingIssuer);
  165. FIELD_SET(*this, FIX::EncodedUnderlyingIssuerLen);
  166. FIELD_SET(*this, FIX::EncodedUnderlyingIssuer);
  167. FIELD_SET(*this, FIX::UnderlyingSecurityDesc);
  168. FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDescLen);
  169. FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDesc);
  170. FIELD_SET(*this, FIX::UnderlyingCPProgram);
  171. FIELD_SET(*this, FIX::UnderlyingCPRegType);
  172. FIELD_SET(*this, FIX::UnderlyingAllocationPercent);
  173. FIELD_SET(*this, FIX::UnderlyingCurrency);
  174. FIELD_SET(*this, FIX::UnderlyingQty);
  175. FIELD_SET(*this, FIX::UnderlyingSettlementType);
  176. FIELD_SET(*this, FIX::UnderlyingCashAmount);
  177. FIELD_SET(*this, FIX::UnderlyingCashType);
  178. FIELD_SET(*this, FIX::UnderlyingPx);
  179. FIELD_SET(*this, FIX::UnderlyingDirtyPrice);
  180. FIELD_SET(*this, FIX::UnderlyingEndPrice);
  181. FIELD_SET(*this, FIX::UnderlyingStartValue);
  182. FIELD_SET(*this, FIX::UnderlyingCurrentValue);
  183. FIELD_SET(*this, FIX::UnderlyingEndValue);
  184. FIELD_SET(*this, FIX::UnderlyingAdjustedQuantity);
  185. FIELD_SET(*this, FIX::UnderlyingFXRate);
  186. FIELD_SET(*this, FIX::UnderlyingFXRateCalc);
  187. FIELD_SET(*this, FIX::UnderlyingCapValue);
  188. FIELD_SET(*this, FIX::UnderlyingSettlMethod);
  189. FIELD_SET(*this, FIX::UnderlyingPutOrCall);
  190. };
  191. FIELD_SET(*this, FIX::Text);
  192. FIELD_SET(*this, FIX::EncodedTextLen);
  193. FIELD_SET(*this, FIX::EncodedText);
  194. };
  195. }
  196. #endif