DerivativeSecurityList.h 8.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186
  1. #ifndef FIX44_DERIVATIVESECURITYLIST_H
  2. #define FIX44_DERIVATIVESECURITYLIST_H
  3. #include "Message.h"
  4. namespace FIX44
  5. {
  6. class DerivativeSecurityList : public Message
  7. {
  8. public:
  9. DerivativeSecurityList() : Message(MsgType()) {}
  10. DerivativeSecurityList(const FIX::Message& m) : Message(m) {}
  11. DerivativeSecurityList(const Message& m) : Message(m) {}
  12. DerivativeSecurityList(const DerivativeSecurityList& m) : Message(m) {}
  13. static FIX::MsgType MsgType() { return FIX::MsgType("AA"); }
  14. DerivativeSecurityList(
  15. const FIX::SecurityReqID& aSecurityReqID,
  16. const FIX::SecurityResponseID& aSecurityResponseID,
  17. const FIX::SecurityRequestResult& aSecurityRequestResult )
  18. : Message(MsgType())
  19. {
  20. set(aSecurityReqID);
  21. set(aSecurityResponseID);
  22. set(aSecurityRequestResult);
  23. }
  24. FIELD_SET(*this, FIX::SecurityReqID);
  25. FIELD_SET(*this, FIX::SecurityResponseID);
  26. FIELD_SET(*this, FIX::SecurityRequestResult);
  27. FIELD_SET(*this, FIX::UnderlyingSymbol);
  28. FIELD_SET(*this, FIX::UnderlyingSymbolSfx);
  29. FIELD_SET(*this, FIX::UnderlyingSecurityID);
  30. FIELD_SET(*this, FIX::UnderlyingSecurityIDSource);
  31. FIELD_SET(*this, FIX::UnderlyingProduct);
  32. FIELD_SET(*this, FIX::UnderlyingCFICode);
  33. FIELD_SET(*this, FIX::UnderlyingSecurityType);
  34. FIELD_SET(*this, FIX::UnderlyingSecuritySubType);
  35. FIELD_SET(*this, FIX::UnderlyingMaturityMonthYear);
  36. FIELD_SET(*this, FIX::UnderlyingMaturityDate);
  37. FIELD_SET(*this, FIX::UnderlyingPutOrCall);
  38. FIELD_SET(*this, FIX::UnderlyingCouponPaymentDate);
  39. FIELD_SET(*this, FIX::UnderlyingIssueDate);
  40. FIELD_SET(*this, FIX::UnderlyingRepoCollateralSecurityType);
  41. FIELD_SET(*this, FIX::UnderlyingRepurchaseTerm);
  42. FIELD_SET(*this, FIX::UnderlyingRepurchaseRate);
  43. FIELD_SET(*this, FIX::UnderlyingFactor);
  44. FIELD_SET(*this, FIX::UnderlyingCreditRating);
  45. FIELD_SET(*this, FIX::UnderlyingInstrRegistry);
  46. FIELD_SET(*this, FIX::UnderlyingCountryOfIssue);
  47. FIELD_SET(*this, FIX::UnderlyingStateOrProvinceOfIssue);
  48. FIELD_SET(*this, FIX::UnderlyingLocaleOfIssue);
  49. FIELD_SET(*this, FIX::UnderlyingRedemptionDate);
  50. FIELD_SET(*this, FIX::UnderlyingStrikePrice);
  51. FIELD_SET(*this, FIX::UnderlyingStrikeCurrency);
  52. FIELD_SET(*this, FIX::UnderlyingOptAttribute);
  53. FIELD_SET(*this, FIX::UnderlyingContractMultiplier);
  54. FIELD_SET(*this, FIX::UnderlyingCouponRate);
  55. FIELD_SET(*this, FIX::UnderlyingSecurityExchange);
  56. FIELD_SET(*this, FIX::UnderlyingIssuer);
  57. FIELD_SET(*this, FIX::EncodedUnderlyingIssuerLen);
  58. FIELD_SET(*this, FIX::EncodedUnderlyingIssuer);
  59. FIELD_SET(*this, FIX::UnderlyingSecurityDesc);
  60. FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDescLen);
  61. FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDesc);
  62. FIELD_SET(*this, FIX::UnderlyingCPProgram);
  63. FIELD_SET(*this, FIX::UnderlyingCPRegType);
  64. FIELD_SET(*this, FIX::UnderlyingCurrency);
  65. FIELD_SET(*this, FIX::UnderlyingQty);
  66. FIELD_SET(*this, FIX::UnderlyingPx);
  67. FIELD_SET(*this, FIX::UnderlyingDirtyPrice);
  68. FIELD_SET(*this, FIX::UnderlyingEndPrice);
  69. FIELD_SET(*this, FIX::UnderlyingStartValue);
  70. FIELD_SET(*this, FIX::UnderlyingCurrentValue);
  71. FIELD_SET(*this, FIX::UnderlyingEndValue);
  72. FIELD_SET(*this, FIX::TotNoRelatedSym);
  73. FIELD_SET(*this, FIX::LastFragment);
  74. FIELD_SET(*this, FIX::NoRelatedSym);
  75. class NoRelatedSym: public FIX::Group
  76. {
  77. public:
  78. NoRelatedSym() : FIX::Group(146,55,FIX::message_order(55,65,48,22,460,461,167,762,200,541,201,224,225,239,226,227,228,255,543,470,471,472,240,202,947,206,231,223,207,106,348,349,107,350,351,691,667,875,876,873,874,15,827,668,869,555,336,625,58,354,355,0)) {}
  79. FIELD_SET(*this, FIX::Symbol);
  80. FIELD_SET(*this, FIX::SymbolSfx);
  81. FIELD_SET(*this, FIX::SecurityID);
  82. FIELD_SET(*this, FIX::SecurityIDSource);
  83. FIELD_SET(*this, FIX::Product);
  84. FIELD_SET(*this, FIX::CFICode);
  85. FIELD_SET(*this, FIX::SecurityType);
  86. FIELD_SET(*this, FIX::SecuritySubType);
  87. FIELD_SET(*this, FIX::MaturityMonthYear);
  88. FIELD_SET(*this, FIX::MaturityDate);
  89. FIELD_SET(*this, FIX::PutOrCall);
  90. FIELD_SET(*this, FIX::CouponPaymentDate);
  91. FIELD_SET(*this, FIX::IssueDate);
  92. FIELD_SET(*this, FIX::RepoCollateralSecurityType);
  93. FIELD_SET(*this, FIX::RepurchaseTerm);
  94. FIELD_SET(*this, FIX::RepurchaseRate);
  95. FIELD_SET(*this, FIX::Factor);
  96. FIELD_SET(*this, FIX::CreditRating);
  97. FIELD_SET(*this, FIX::InstrRegistry);
  98. FIELD_SET(*this, FIX::CountryOfIssue);
  99. FIELD_SET(*this, FIX::StateOrProvinceOfIssue);
  100. FIELD_SET(*this, FIX::LocaleOfIssue);
  101. FIELD_SET(*this, FIX::RedemptionDate);
  102. FIELD_SET(*this, FIX::StrikePrice);
  103. FIELD_SET(*this, FIX::StrikeCurrency);
  104. FIELD_SET(*this, FIX::OptAttribute);
  105. FIELD_SET(*this, FIX::ContractMultiplier);
  106. FIELD_SET(*this, FIX::CouponRate);
  107. FIELD_SET(*this, FIX::SecurityExchange);
  108. FIELD_SET(*this, FIX::Issuer);
  109. FIELD_SET(*this, FIX::EncodedIssuerLen);
  110. FIELD_SET(*this, FIX::EncodedIssuer);
  111. FIELD_SET(*this, FIX::SecurityDesc);
  112. FIELD_SET(*this, FIX::EncodedSecurityDescLen);
  113. FIELD_SET(*this, FIX::EncodedSecurityDesc);
  114. FIELD_SET(*this, FIX::Pool);
  115. FIELD_SET(*this, FIX::ContractSettlMonth);
  116. FIELD_SET(*this, FIX::CPProgram);
  117. FIELD_SET(*this, FIX::CPRegType);
  118. FIELD_SET(*this, FIX::DatedDate);
  119. FIELD_SET(*this, FIX::InterestAccrualDate);
  120. FIELD_SET(*this, FIX::Currency);
  121. FIELD_SET(*this, FIX::ExpirationCycle);
  122. FIELD_SET(*this, FIX::DeliveryForm);
  123. FIELD_SET(*this, FIX::PctAtRisk);
  124. FIELD_SET(*this, FIX::NoLegs);
  125. class NoLegs: public FIX::Group
  126. {
  127. public:
  128. 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,0)) {}
  129. FIELD_SET(*this, FIX::LegSymbol);
  130. FIELD_SET(*this, FIX::LegSymbolSfx);
  131. FIELD_SET(*this, FIX::LegSecurityID);
  132. FIELD_SET(*this, FIX::LegSecurityIDSource);
  133. FIELD_SET(*this, FIX::LegProduct);
  134. FIELD_SET(*this, FIX::LegCFICode);
  135. FIELD_SET(*this, FIX::LegSecurityType);
  136. FIELD_SET(*this, FIX::LegSecuritySubType);
  137. FIELD_SET(*this, FIX::LegMaturityMonthYear);
  138. FIELD_SET(*this, FIX::LegMaturityDate);
  139. FIELD_SET(*this, FIX::LegCouponPaymentDate);
  140. FIELD_SET(*this, FIX::LegIssueDate);
  141. FIELD_SET(*this, FIX::LegRepoCollateralSecurityType);
  142. FIELD_SET(*this, FIX::LegRepurchaseTerm);
  143. FIELD_SET(*this, FIX::LegRepurchaseRate);
  144. FIELD_SET(*this, FIX::LegFactor);
  145. FIELD_SET(*this, FIX::LegCreditRating);
  146. FIELD_SET(*this, FIX::LegInstrRegistry);
  147. FIELD_SET(*this, FIX::LegCountryOfIssue);
  148. FIELD_SET(*this, FIX::LegStateOrProvinceOfIssue);
  149. FIELD_SET(*this, FIX::LegLocaleOfIssue);
  150. FIELD_SET(*this, FIX::LegRedemptionDate);
  151. FIELD_SET(*this, FIX::LegStrikePrice);
  152. FIELD_SET(*this, FIX::LegStrikeCurrency);
  153. FIELD_SET(*this, FIX::LegOptAttribute);
  154. FIELD_SET(*this, FIX::LegContractMultiplier);
  155. FIELD_SET(*this, FIX::LegCouponRate);
  156. FIELD_SET(*this, FIX::LegSecurityExchange);
  157. FIELD_SET(*this, FIX::LegIssuer);
  158. FIELD_SET(*this, FIX::EncodedLegIssuerLen);
  159. FIELD_SET(*this, FIX::EncodedLegIssuer);
  160. FIELD_SET(*this, FIX::LegSecurityDesc);
  161. FIELD_SET(*this, FIX::EncodedLegSecurityDescLen);
  162. FIELD_SET(*this, FIX::EncodedLegSecurityDesc);
  163. FIELD_SET(*this, FIX::LegRatioQty);
  164. FIELD_SET(*this, FIX::LegSide);
  165. FIELD_SET(*this, FIX::LegCurrency);
  166. FIELD_SET(*this, FIX::LegPool);
  167. FIELD_SET(*this, FIX::LegDatedDate);
  168. FIELD_SET(*this, FIX::LegContractSettlMonth);
  169. FIELD_SET(*this, FIX::LegInterestAccrualDate);
  170. };
  171. FIELD_SET(*this, FIX::TradingSessionID);
  172. FIELD_SET(*this, FIX::TradingSessionSubID);
  173. FIELD_SET(*this, FIX::Text);
  174. FIELD_SET(*this, FIX::EncodedTextLen);
  175. FIELD_SET(*this, FIX::EncodedText);
  176. };
  177. };
  178. }
  179. #endif