ContraryIntentionReport.h 7.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178
  1. #ifndef FIX50_CONTRARYINTENTIONREPORT_H
  2. #define FIX50_CONTRARYINTENTIONREPORT_H
  3. #include "Message.h"
  4. namespace FIX50
  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::ContIntRptID);
  23. FIELD_SET(*this, FIX::TransactTime);
  24. FIELD_SET(*this, FIX::LateIndicator);
  25. FIELD_SET(*this, FIX::InputSource);
  26. FIELD_SET(*this, FIX::ClearingBusinessDate);
  27. FIELD_SET(*this, FIX::NoPartyIDs);
  28. class NoPartyIDs: public FIX::Group
  29. {
  30. public:
  31. NoPartyIDs() : FIX::Group(453,448,FIX::message_order(448,447,452,802,0)) {}
  32. FIELD_SET(*this, FIX::PartyID);
  33. FIELD_SET(*this, FIX::PartyIDSource);
  34. FIELD_SET(*this, FIX::PartyRole);
  35. FIELD_SET(*this, FIX::NoPartySubIDs);
  36. class NoPartySubIDs: public FIX::Group
  37. {
  38. public:
  39. NoPartySubIDs() : FIX::Group(802,523,FIX::message_order(523,803,0)) {}
  40. FIELD_SET(*this, FIX::PartySubID);
  41. FIELD_SET(*this, FIX::PartySubIDType);
  42. };
  43. };
  44. FIELD_SET(*this, FIX::NoExpiration);
  45. class NoExpiration: public FIX::Group
  46. {
  47. public:
  48. NoExpiration() : FIX::Group(981,982,FIX::message_order(982,983,0)) {}
  49. FIELD_SET(*this, FIX::ExpType);
  50. FIELD_SET(*this, FIX::ExpQty);
  51. };
  52. FIELD_SET(*this, FIX::Symbol);
  53. FIELD_SET(*this, FIX::SymbolSfx);
  54. FIELD_SET(*this, FIX::SecurityID);
  55. FIELD_SET(*this, FIX::SecurityIDSource);
  56. FIELD_SET(*this, FIX::Product);
  57. FIELD_SET(*this, FIX::CFICode);
  58. FIELD_SET(*this, FIX::SecurityType);
  59. FIELD_SET(*this, FIX::SecuritySubType);
  60. FIELD_SET(*this, FIX::MaturityMonthYear);
  61. FIELD_SET(*this, FIX::MaturityDate);
  62. FIELD_SET(*this, FIX::MaturityTime);
  63. FIELD_SET(*this, FIX::PutOrCall);
  64. FIELD_SET(*this, FIX::SettleOnOpenFlag);
  65. FIELD_SET(*this, FIX::InstrmtAssignmentMethod);
  66. FIELD_SET(*this, FIX::SecurityStatus);
  67. FIELD_SET(*this, FIX::CouponPaymentDate);
  68. FIELD_SET(*this, FIX::IssueDate);
  69. FIELD_SET(*this, FIX::RepoCollateralSecurityType);
  70. FIELD_SET(*this, FIX::RepurchaseTerm);
  71. FIELD_SET(*this, FIX::RepurchaseRate);
  72. FIELD_SET(*this, FIX::Factor);
  73. FIELD_SET(*this, FIX::CreditRating);
  74. FIELD_SET(*this, FIX::InstrRegistry);
  75. FIELD_SET(*this, FIX::CountryOfIssue);
  76. FIELD_SET(*this, FIX::StateOrProvinceOfIssue);
  77. FIELD_SET(*this, FIX::LocaleOfIssue);
  78. FIELD_SET(*this, FIX::RedemptionDate);
  79. FIELD_SET(*this, FIX::StrikePrice);
  80. FIELD_SET(*this, FIX::StrikeCurrency);
  81. FIELD_SET(*this, FIX::StrikeMultiplier);
  82. FIELD_SET(*this, FIX::StrikeValue);
  83. FIELD_SET(*this, FIX::OptAttribute);
  84. FIELD_SET(*this, FIX::ContractMultiplier);
  85. FIELD_SET(*this, FIX::MinPriceIncrement);
  86. FIELD_SET(*this, FIX::UnitOfMeasure);
  87. FIELD_SET(*this, FIX::TimeUnit);
  88. FIELD_SET(*this, FIX::CouponRate);
  89. FIELD_SET(*this, FIX::SecurityExchange);
  90. FIELD_SET(*this, FIX::PositionLimit);
  91. FIELD_SET(*this, FIX::NTPositionLimit);
  92. FIELD_SET(*this, FIX::Issuer);
  93. FIELD_SET(*this, FIX::EncodedIssuerLen);
  94. FIELD_SET(*this, FIX::EncodedIssuer);
  95. FIELD_SET(*this, FIX::SecurityDesc);
  96. FIELD_SET(*this, FIX::EncodedSecurityDescLen);
  97. FIELD_SET(*this, FIX::EncodedSecurityDesc);
  98. FIELD_SET(*this, FIX::Pool);
  99. FIELD_SET(*this, FIX::ContractSettlMonth);
  100. FIELD_SET(*this, FIX::CPProgram);
  101. FIELD_SET(*this, FIX::CPRegType);
  102. FIELD_SET(*this, FIX::DatedDate);
  103. FIELD_SET(*this, FIX::InterestAccrualDate);
  104. FIELD_SET(*this, FIX::NoUnderlyings);
  105. class NoUnderlyings: public FIX::Group
  106. {
  107. public:
  108. NoUnderlyings() : FIX::Group(711,311,FIX::message_order(311,312,309,305,462,463,310,763,313,542,315,241,242,243,244,245,246,256,595,592,593,594,247,316,941,317,436,998,1000,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,0)) {}
  109. FIELD_SET(*this, FIX::UnderlyingSymbol);
  110. FIELD_SET(*this, FIX::UnderlyingSymbolSfx);
  111. FIELD_SET(*this, FIX::UnderlyingSecurityID);
  112. FIELD_SET(*this, FIX::UnderlyingSecurityIDSource);
  113. FIELD_SET(*this, FIX::UnderlyingProduct);
  114. FIELD_SET(*this, FIX::UnderlyingCFICode);
  115. FIELD_SET(*this, FIX::UnderlyingSecurityType);
  116. FIELD_SET(*this, FIX::UnderlyingSecuritySubType);
  117. FIELD_SET(*this, FIX::UnderlyingMaturityMonthYear);
  118. FIELD_SET(*this, FIX::UnderlyingMaturityDate);
  119. FIELD_SET(*this, FIX::UnderlyingPutOrCall);
  120. FIELD_SET(*this, FIX::UnderlyingCouponPaymentDate);
  121. FIELD_SET(*this, FIX::UnderlyingIssueDate);
  122. FIELD_SET(*this, FIX::UnderlyingRepoCollateralSecurityType);
  123. FIELD_SET(*this, FIX::UnderlyingRepurchaseTerm);
  124. FIELD_SET(*this, FIX::UnderlyingRepurchaseRate);
  125. FIELD_SET(*this, FIX::UnderlyingFactor);
  126. FIELD_SET(*this, FIX::UnderlyingCreditRating);
  127. FIELD_SET(*this, FIX::UnderlyingInstrRegistry);
  128. FIELD_SET(*this, FIX::UnderlyingCountryOfIssue);
  129. FIELD_SET(*this, FIX::UnderlyingStateOrProvinceOfIssue);
  130. FIELD_SET(*this, FIX::UnderlyingLocaleOfIssue);
  131. FIELD_SET(*this, FIX::UnderlyingRedemptionDate);
  132. FIELD_SET(*this, FIX::UnderlyingStrikePrice);
  133. FIELD_SET(*this, FIX::UnderlyingStrikeCurrency);
  134. FIELD_SET(*this, FIX::UnderlyingOptAttribute);
  135. FIELD_SET(*this, FIX::UnderlyingContractMultiplier);
  136. FIELD_SET(*this, FIX::UnderlyingUnitOfMeasure);
  137. FIELD_SET(*this, FIX::UnderlyingTimeUnit);
  138. FIELD_SET(*this, FIX::UnderlyingCouponRate);
  139. FIELD_SET(*this, FIX::UnderlyingSecurityExchange);
  140. FIELD_SET(*this, FIX::UnderlyingIssuer);
  141. FIELD_SET(*this, FIX::EncodedUnderlyingIssuerLen);
  142. FIELD_SET(*this, FIX::EncodedUnderlyingIssuer);
  143. FIELD_SET(*this, FIX::UnderlyingSecurityDesc);
  144. FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDescLen);
  145. FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDesc);
  146. FIELD_SET(*this, FIX::UnderlyingCPProgram);
  147. FIELD_SET(*this, FIX::UnderlyingCPRegType);
  148. FIELD_SET(*this, FIX::UnderlyingAllocationPercent);
  149. FIELD_SET(*this, FIX::UnderlyingCurrency);
  150. FIELD_SET(*this, FIX::UnderlyingQty);
  151. FIELD_SET(*this, FIX::UnderlyingSettlementType);
  152. FIELD_SET(*this, FIX::UnderlyingCashAmount);
  153. FIELD_SET(*this, FIX::UnderlyingCashType);
  154. FIELD_SET(*this, FIX::UnderlyingPx);
  155. FIELD_SET(*this, FIX::UnderlyingDirtyPrice);
  156. FIELD_SET(*this, FIX::UnderlyingEndPrice);
  157. FIELD_SET(*this, FIX::UnderlyingStartValue);
  158. FIELD_SET(*this, FIX::UnderlyingCurrentValue);
  159. FIELD_SET(*this, FIX::UnderlyingEndValue);
  160. FIELD_SET(*this, FIX::UnderlyingAdjustedQuantity);
  161. FIELD_SET(*this, FIX::UnderlyingFXRate);
  162. FIELD_SET(*this, FIX::UnderlyingFXRateCalc);
  163. FIELD_SET(*this, FIX::UnderlyingCapValue);
  164. FIELD_SET(*this, FIX::UnderlyingSettlMethod);
  165. };
  166. FIELD_SET(*this, FIX::Text);
  167. FIELD_SET(*this, FIX::EncodedTextLen);
  168. FIELD_SET(*this, FIX::EncodedText);
  169. };
  170. }
  171. #endif