SecurityDefinition.h 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282
  1. #ifndef FIX50SP1_SECURITYDEFINITION_H
  2. #define FIX50SP1_SECURITYDEFINITION_H
  3. #include "Message.h"
  4. namespace FIX50SP1
  5. {
  6. class SecurityDefinition : public Message
  7. {
  8. public:
  9. SecurityDefinition() : Message(MsgType()) {}
  10. SecurityDefinition(const FIX::Message& m) : Message(m) {}
  11. SecurityDefinition(const Message& m) : Message(m) {}
  12. SecurityDefinition(const SecurityDefinition& m) : Message(m) {}
  13. static FIX::MsgType MsgType() { return FIX::MsgType("d"); }
  14. FIELD_SET(*this, FIX::ApplID);
  15. FIELD_SET(*this, FIX::ApplSeqNum);
  16. FIELD_SET(*this, FIX::ApplLastSeqNum);
  17. FIELD_SET(*this, FIX::ApplResendFlag);
  18. FIELD_SET(*this, FIX::SecurityReportID);
  19. FIELD_SET(*this, FIX::ClearingBusinessDate);
  20. FIELD_SET(*this, FIX::SecurityReqID);
  21. FIELD_SET(*this, FIX::SecurityResponseID);
  22. FIELD_SET(*this, FIX::SecurityResponseType);
  23. FIELD_SET(*this, FIX::CorporateAction);
  24. FIELD_SET(*this, FIX::Symbol);
  25. FIELD_SET(*this, FIX::SymbolSfx);
  26. FIELD_SET(*this, FIX::SecurityID);
  27. FIELD_SET(*this, FIX::SecurityIDSource);
  28. FIELD_SET(*this, FIX::Product);
  29. FIELD_SET(*this, FIX::ProductComplex);
  30. FIELD_SET(*this, FIX::SecurityGroup);
  31. FIELD_SET(*this, FIX::CFICode);
  32. FIELD_SET(*this, FIX::SecurityType);
  33. FIELD_SET(*this, FIX::SecuritySubType);
  34. FIELD_SET(*this, FIX::MaturityMonthYear);
  35. FIELD_SET(*this, FIX::MaturityDate);
  36. FIELD_SET(*this, FIX::MaturityTime);
  37. FIELD_SET(*this, FIX::SettleOnOpenFlag);
  38. FIELD_SET(*this, FIX::InstrmtAssignmentMethod);
  39. FIELD_SET(*this, FIX::SecurityStatus);
  40. FIELD_SET(*this, FIX::CouponPaymentDate);
  41. FIELD_SET(*this, FIX::IssueDate);
  42. FIELD_SET(*this, FIX::RepoCollateralSecurityType);
  43. FIELD_SET(*this, FIX::RepurchaseTerm);
  44. FIELD_SET(*this, FIX::RepurchaseRate);
  45. FIELD_SET(*this, FIX::Factor);
  46. FIELD_SET(*this, FIX::CreditRating);
  47. FIELD_SET(*this, FIX::InstrRegistry);
  48. FIELD_SET(*this, FIX::CountryOfIssue);
  49. FIELD_SET(*this, FIX::StateOrProvinceOfIssue);
  50. FIELD_SET(*this, FIX::LocaleOfIssue);
  51. FIELD_SET(*this, FIX::RedemptionDate);
  52. FIELD_SET(*this, FIX::StrikePrice);
  53. FIELD_SET(*this, FIX::StrikeCurrency);
  54. FIELD_SET(*this, FIX::StrikeMultiplier);
  55. FIELD_SET(*this, FIX::StrikeValue);
  56. FIELD_SET(*this, FIX::OptAttribute);
  57. FIELD_SET(*this, FIX::ContractMultiplier);
  58. FIELD_SET(*this, FIX::MinPriceIncrement);
  59. FIELD_SET(*this, FIX::MinPriceIncrementAmount);
  60. FIELD_SET(*this, FIX::UnitOfMeasure);
  61. FIELD_SET(*this, FIX::UnitOfMeasureQty);
  62. FIELD_SET(*this, FIX::PriceUnitOfMeasure);
  63. FIELD_SET(*this, FIX::PriceUnitOfMeasureQty);
  64. FIELD_SET(*this, FIX::SettlMethod);
  65. FIELD_SET(*this, FIX::ExerciseStyle);
  66. FIELD_SET(*this, FIX::OptPayAmount);
  67. FIELD_SET(*this, FIX::PriceQuoteMethod);
  68. FIELD_SET(*this, FIX::FuturesValuationMethod);
  69. FIELD_SET(*this, FIX::ListMethod);
  70. FIELD_SET(*this, FIX::CapPrice);
  71. FIELD_SET(*this, FIX::FloorPrice);
  72. FIELD_SET(*this, FIX::PutOrCall);
  73. FIELD_SET(*this, FIX::FlexibleIndicator);
  74. FIELD_SET(*this, FIX::FlexProductEligibilityIndicator);
  75. FIELD_SET(*this, FIX::TimeUnit);
  76. FIELD_SET(*this, FIX::CouponRate);
  77. FIELD_SET(*this, FIX::SecurityExchange);
  78. FIELD_SET(*this, FIX::PositionLimit);
  79. FIELD_SET(*this, FIX::NTPositionLimit);
  80. FIELD_SET(*this, FIX::Issuer);
  81. FIELD_SET(*this, FIX::EncodedIssuerLen);
  82. FIELD_SET(*this, FIX::EncodedIssuer);
  83. FIELD_SET(*this, FIX::SecurityDesc);
  84. FIELD_SET(*this, FIX::EncodedSecurityDescLen);
  85. FIELD_SET(*this, FIX::EncodedSecurityDesc);
  86. FIELD_SET(*this, FIX::Pool);
  87. FIELD_SET(*this, FIX::ContractSettlMonth);
  88. FIELD_SET(*this, FIX::CPProgram);
  89. FIELD_SET(*this, FIX::CPRegType);
  90. FIELD_SET(*this, FIX::DatedDate);
  91. FIELD_SET(*this, FIX::InterestAccrualDate);
  92. FIELD_SET(*this, FIX::DeliveryForm);
  93. FIELD_SET(*this, FIX::PctAtRisk);
  94. FIELD_SET(*this, FIX::NoUnderlyings);
  95. class NoUnderlyings: public FIX::Group
  96. {
  97. public:
  98. 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)) {}
  99. FIELD_SET(*this, FIX::UnderlyingSymbol);
  100. FIELD_SET(*this, FIX::UnderlyingSymbolSfx);
  101. FIELD_SET(*this, FIX::UnderlyingSecurityID);
  102. FIELD_SET(*this, FIX::UnderlyingSecurityIDSource);
  103. FIELD_SET(*this, FIX::UnderlyingProduct);
  104. FIELD_SET(*this, FIX::UnderlyingCFICode);
  105. FIELD_SET(*this, FIX::UnderlyingSecurityType);
  106. FIELD_SET(*this, FIX::UnderlyingSecuritySubType);
  107. FIELD_SET(*this, FIX::UnderlyingMaturityMonthYear);
  108. FIELD_SET(*this, FIX::UnderlyingMaturityDate);
  109. FIELD_SET(*this, FIX::UnderlyingMaturityTime);
  110. FIELD_SET(*this, FIX::UnderlyingCouponPaymentDate);
  111. FIELD_SET(*this, FIX::UnderlyingIssueDate);
  112. FIELD_SET(*this, FIX::UnderlyingRepoCollateralSecurityType);
  113. FIELD_SET(*this, FIX::UnderlyingRepurchaseTerm);
  114. FIELD_SET(*this, FIX::UnderlyingRepurchaseRate);
  115. FIELD_SET(*this, FIX::UnderlyingFactor);
  116. FIELD_SET(*this, FIX::UnderlyingCreditRating);
  117. FIELD_SET(*this, FIX::UnderlyingInstrRegistry);
  118. FIELD_SET(*this, FIX::UnderlyingCountryOfIssue);
  119. FIELD_SET(*this, FIX::UnderlyingStateOrProvinceOfIssue);
  120. FIELD_SET(*this, FIX::UnderlyingLocaleOfIssue);
  121. FIELD_SET(*this, FIX::UnderlyingRedemptionDate);
  122. FIELD_SET(*this, FIX::UnderlyingStrikePrice);
  123. FIELD_SET(*this, FIX::UnderlyingStrikeCurrency);
  124. FIELD_SET(*this, FIX::UnderlyingOptAttribute);
  125. FIELD_SET(*this, FIX::UnderlyingContractMultiplier);
  126. FIELD_SET(*this, FIX::UnderlyingUnitOfMeasure);
  127. FIELD_SET(*this, FIX::UnderlyingUnitOfMeasureQty);
  128. FIELD_SET(*this, FIX::UnderlyingPriceUnitOfMeasure);
  129. FIELD_SET(*this, FIX::UnderlyingPriceUnitOfMeasureQty);
  130. FIELD_SET(*this, FIX::UnderlyingTimeUnit);
  131. FIELD_SET(*this, FIX::UnderlyingExerciseStyle);
  132. FIELD_SET(*this, FIX::UnderlyingCouponRate);
  133. FIELD_SET(*this, FIX::UnderlyingSecurityExchange);
  134. FIELD_SET(*this, FIX::UnderlyingIssuer);
  135. FIELD_SET(*this, FIX::EncodedUnderlyingIssuerLen);
  136. FIELD_SET(*this, FIX::EncodedUnderlyingIssuer);
  137. FIELD_SET(*this, FIX::UnderlyingSecurityDesc);
  138. FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDescLen);
  139. FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDesc);
  140. FIELD_SET(*this, FIX::UnderlyingCPProgram);
  141. FIELD_SET(*this, FIX::UnderlyingCPRegType);
  142. FIELD_SET(*this, FIX::UnderlyingAllocationPercent);
  143. FIELD_SET(*this, FIX::UnderlyingCurrency);
  144. FIELD_SET(*this, FIX::UnderlyingQty);
  145. FIELD_SET(*this, FIX::UnderlyingSettlementType);
  146. FIELD_SET(*this, FIX::UnderlyingCashAmount);
  147. FIELD_SET(*this, FIX::UnderlyingCashType);
  148. FIELD_SET(*this, FIX::UnderlyingPx);
  149. FIELD_SET(*this, FIX::UnderlyingDirtyPrice);
  150. FIELD_SET(*this, FIX::UnderlyingEndPrice);
  151. FIELD_SET(*this, FIX::UnderlyingStartValue);
  152. FIELD_SET(*this, FIX::UnderlyingCurrentValue);
  153. FIELD_SET(*this, FIX::UnderlyingEndValue);
  154. FIELD_SET(*this, FIX::UnderlyingAdjustedQuantity);
  155. FIELD_SET(*this, FIX::UnderlyingFXRate);
  156. FIELD_SET(*this, FIX::UnderlyingFXRateCalc);
  157. FIELD_SET(*this, FIX::UnderlyingCapValue);
  158. FIELD_SET(*this, FIX::UnderlyingSettlMethod);
  159. FIELD_SET(*this, FIX::UnderlyingPutOrCall);
  160. };
  161. FIELD_SET(*this, FIX::Currency);
  162. FIELD_SET(*this, FIX::Text);
  163. FIELD_SET(*this, FIX::EncodedTextLen);
  164. FIELD_SET(*this, FIX::EncodedText);
  165. FIELD_SET(*this, FIX::NoStipulations);
  166. class NoStipulations: public FIX::Group
  167. {
  168. public:
  169. NoStipulations() : FIX::Group(232,233,FIX::message_order(233,234,0)) {}
  170. FIELD_SET(*this, FIX::StipulationType);
  171. FIELD_SET(*this, FIX::StipulationValue);
  172. };
  173. FIELD_SET(*this, FIX::NoLegs);
  174. class NoLegs: public FIX::Group
  175. {
  176. public:
  177. NoLegs() : FIX::Group(555,600,FIX::message_order(600,601,602,603,607,608,609,764,610,611,1212,248,249,250,251,252,253,257,599,596,597,598,254,612,942,613,614,999,1224,1421,1422,1001,1420,615,616,617,618,619,620,621,622,623,624,556,740,739,955,956,1358,1017,0)) {}
  178. FIELD_SET(*this, FIX::LegSymbol);
  179. FIELD_SET(*this, FIX::LegSymbolSfx);
  180. FIELD_SET(*this, FIX::LegSecurityID);
  181. FIELD_SET(*this, FIX::LegSecurityIDSource);
  182. FIELD_SET(*this, FIX::LegProduct);
  183. FIELD_SET(*this, FIX::LegCFICode);
  184. FIELD_SET(*this, FIX::LegSecurityType);
  185. FIELD_SET(*this, FIX::LegSecuritySubType);
  186. FIELD_SET(*this, FIX::LegMaturityMonthYear);
  187. FIELD_SET(*this, FIX::LegMaturityDate);
  188. FIELD_SET(*this, FIX::LegMaturityTime);
  189. FIELD_SET(*this, FIX::LegCouponPaymentDate);
  190. FIELD_SET(*this, FIX::LegIssueDate);
  191. FIELD_SET(*this, FIX::LegRepoCollateralSecurityType);
  192. FIELD_SET(*this, FIX::LegRepurchaseTerm);
  193. FIELD_SET(*this, FIX::LegRepurchaseRate);
  194. FIELD_SET(*this, FIX::LegFactor);
  195. FIELD_SET(*this, FIX::LegCreditRating);
  196. FIELD_SET(*this, FIX::LegInstrRegistry);
  197. FIELD_SET(*this, FIX::LegCountryOfIssue);
  198. FIELD_SET(*this, FIX::LegStateOrProvinceOfIssue);
  199. FIELD_SET(*this, FIX::LegLocaleOfIssue);
  200. FIELD_SET(*this, FIX::LegRedemptionDate);
  201. FIELD_SET(*this, FIX::LegStrikePrice);
  202. FIELD_SET(*this, FIX::LegStrikeCurrency);
  203. FIELD_SET(*this, FIX::LegOptAttribute);
  204. FIELD_SET(*this, FIX::LegContractMultiplier);
  205. FIELD_SET(*this, FIX::LegUnitOfMeasure);
  206. FIELD_SET(*this, FIX::LegUnitOfMeasureQty);
  207. FIELD_SET(*this, FIX::LegPriceUnitOfMeasure);
  208. FIELD_SET(*this, FIX::LegPriceUnitOfMeasureQty);
  209. FIELD_SET(*this, FIX::LegTimeUnit);
  210. FIELD_SET(*this, FIX::LegExerciseStyle);
  211. FIELD_SET(*this, FIX::LegCouponRate);
  212. FIELD_SET(*this, FIX::LegSecurityExchange);
  213. FIELD_SET(*this, FIX::LegIssuer);
  214. FIELD_SET(*this, FIX::EncodedLegIssuerLen);
  215. FIELD_SET(*this, FIX::EncodedLegIssuer);
  216. FIELD_SET(*this, FIX::LegSecurityDesc);
  217. FIELD_SET(*this, FIX::EncodedLegSecurityDescLen);
  218. FIELD_SET(*this, FIX::EncodedLegSecurityDesc);
  219. FIELD_SET(*this, FIX::LegRatioQty);
  220. FIELD_SET(*this, FIX::LegSide);
  221. FIELD_SET(*this, FIX::LegCurrency);
  222. FIELD_SET(*this, FIX::LegPool);
  223. FIELD_SET(*this, FIX::LegDatedDate);
  224. FIELD_SET(*this, FIX::LegContractSettlMonth);
  225. FIELD_SET(*this, FIX::LegInterestAccrualDate);
  226. FIELD_SET(*this, FIX::LegPutOrCall);
  227. FIELD_SET(*this, FIX::LegOptionRatio);
  228. };
  229. FIELD_SET(*this, FIX::Spread);
  230. FIELD_SET(*this, FIX::BenchmarkCurveCurrency);
  231. FIELD_SET(*this, FIX::BenchmarkCurveName);
  232. FIELD_SET(*this, FIX::BenchmarkCurvePoint);
  233. FIELD_SET(*this, FIX::BenchmarkPrice);
  234. FIELD_SET(*this, FIX::BenchmarkPriceType);
  235. FIELD_SET(*this, FIX::BenchmarkSecurityID);
  236. FIELD_SET(*this, FIX::BenchmarkSecurityIDSource);
  237. FIELD_SET(*this, FIX::YieldType);
  238. FIELD_SET(*this, FIX::Yield);
  239. FIELD_SET(*this, FIX::YieldCalcDate);
  240. FIELD_SET(*this, FIX::YieldRedemptionDate);
  241. FIELD_SET(*this, FIX::YieldRedemptionPrice);
  242. FIELD_SET(*this, FIX::YieldRedemptionPriceType);
  243. FIELD_SET(*this, FIX::NoMarketSegments);
  244. class NoMarketSegments: public FIX::Group
  245. {
  246. public:
  247. NoMarketSegments() : FIX::Group(1310,1301,FIX::message_order(1301,1300,1201,0)) {}
  248. FIELD_SET(*this, FIX::MarketID);
  249. FIELD_SET(*this, FIX::MarketSegmentID);
  250. FIELD_SET(*this, FIX::NoStrikeRules);
  251. class NoStrikeRules: public FIX::Group
  252. {
  253. public:
  254. NoStrikeRules() : FIX::Group(1201,1223,FIX::message_order(1223,1202,1203,1204,1304,1236,0)) {}
  255. FIELD_SET(*this, FIX::StrikeRuleID);
  256. FIELD_SET(*this, FIX::StartStrikePxRange);
  257. FIELD_SET(*this, FIX::EndStrikePxRange);
  258. FIELD_SET(*this, FIX::StrikeIncrement);
  259. FIELD_SET(*this, FIX::StrikeExerciseStyle);
  260. FIELD_SET(*this, FIX::NoMaturityRules);
  261. class NoMaturityRules: public FIX::Group
  262. {
  263. public:
  264. NoMaturityRules() : FIX::Group(1236,1222,FIX::message_order(1222,1303,1302,1241,1226,1229,0)) {}
  265. FIELD_SET(*this, FIX::MaturityRuleID);
  266. FIELD_SET(*this, FIX::MaturityMonthYearFormat);
  267. FIELD_SET(*this, FIX::MaturityMonthYearIncrementUnits);
  268. FIELD_SET(*this, FIX::StartMaturityMonthYear);
  269. FIELD_SET(*this, FIX::EndMaturityMonthYear);
  270. FIELD_SET(*this, FIX::MaturityMonthYearIncrement);
  271. };
  272. };
  273. };
  274. };
  275. }
  276. #endif