SecurityDefinition.h 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133
  1. #ifndef FIX43_SECURITYDEFINITION_H
  2. #define FIX43_SECURITYDEFINITION_H
  3. #include "Message.h"
  4. namespace FIX43
  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. SecurityDefinition(
  15. const FIX::SecurityReqID& aSecurityReqID,
  16. const FIX::SecurityResponseID& aSecurityResponseID,
  17. const FIX::SecurityResponseType& aSecurityResponseType )
  18. : Message(MsgType())
  19. {
  20. set(aSecurityReqID);
  21. set(aSecurityResponseID);
  22. set(aSecurityResponseType);
  23. }
  24. FIELD_SET(*this, FIX::SecurityReqID);
  25. FIELD_SET(*this, FIX::SecurityResponseID);
  26. FIELD_SET(*this, FIX::SecurityResponseType);
  27. FIELD_SET(*this, FIX::Symbol);
  28. FIELD_SET(*this, FIX::SymbolSfx);
  29. FIELD_SET(*this, FIX::SecurityID);
  30. FIELD_SET(*this, FIX::SecurityIDSource);
  31. FIELD_SET(*this, FIX::Product);
  32. FIELD_SET(*this, FIX::CFICode);
  33. FIELD_SET(*this, FIX::SecurityType);
  34. FIELD_SET(*this, FIX::MaturityMonthYear);
  35. FIELD_SET(*this, FIX::MaturityDate);
  36. FIELD_SET(*this, FIX::CouponPaymentDate);
  37. FIELD_SET(*this, FIX::IssueDate);
  38. FIELD_SET(*this, FIX::RepoCollateralSecurityType);
  39. FIELD_SET(*this, FIX::RepurchaseTerm);
  40. FIELD_SET(*this, FIX::RepurchaseRate);
  41. FIELD_SET(*this, FIX::Factor);
  42. FIELD_SET(*this, FIX::CreditRating);
  43. FIELD_SET(*this, FIX::InstrRegistry);
  44. FIELD_SET(*this, FIX::CountryOfIssue);
  45. FIELD_SET(*this, FIX::StateOrProvinceOfIssue);
  46. FIELD_SET(*this, FIX::LocaleOfIssue);
  47. FIELD_SET(*this, FIX::RedemptionDate);
  48. FIELD_SET(*this, FIX::StrikePrice);
  49. FIELD_SET(*this, FIX::OptAttribute);
  50. FIELD_SET(*this, FIX::ContractMultiplier);
  51. FIELD_SET(*this, FIX::CouponRate);
  52. FIELD_SET(*this, FIX::SecurityExchange);
  53. FIELD_SET(*this, FIX::Issuer);
  54. FIELD_SET(*this, FIX::EncodedIssuerLen);
  55. FIELD_SET(*this, FIX::EncodedIssuer);
  56. FIELD_SET(*this, FIX::SecurityDesc);
  57. FIELD_SET(*this, FIX::EncodedSecurityDescLen);
  58. FIELD_SET(*this, FIX::EncodedSecurityDesc);
  59. FIELD_SET(*this, FIX::NoSecurityAltID);
  60. class NoSecurityAltID: public FIX::Group
  61. {
  62. public:
  63. NoSecurityAltID() : FIX::Group(454,455,FIX::message_order(455,456,0)) {}
  64. FIELD_SET(*this, FIX::SecurityAltID);
  65. FIELD_SET(*this, FIX::SecurityAltIDSource);
  66. };
  67. FIELD_SET(*this, FIX::Currency);
  68. FIELD_SET(*this, FIX::TradingSessionID);
  69. FIELD_SET(*this, FIX::TradingSessionSubID);
  70. FIELD_SET(*this, FIX::Text);
  71. FIELD_SET(*this, FIX::EncodedTextLen);
  72. FIELD_SET(*this, FIX::EncodedText);
  73. FIELD_SET(*this, FIX::RoundLot);
  74. FIELD_SET(*this, FIX::MinTradeVol);
  75. FIELD_SET(*this, FIX::NoLegs);
  76. class NoLegs: public FIX::Group
  77. {
  78. public:
  79. NoLegs() : FIX::Group(555,600,FIX::message_order(600,601,602,603,604,607,608,609,610,611,248,249,250,251,252,253,257,599,596,597,598,254,612,613,614,615,616,617,618,619,620,621,622,623,624,556,0)) {}
  80. FIELD_SET(*this, FIX::LegSymbol);
  81. FIELD_SET(*this, FIX::LegSymbolSfx);
  82. FIELD_SET(*this, FIX::LegSecurityID);
  83. FIELD_SET(*this, FIX::LegSecurityIDSource);
  84. FIELD_SET(*this, FIX::LegProduct);
  85. FIELD_SET(*this, FIX::LegCFICode);
  86. FIELD_SET(*this, FIX::LegSecurityType);
  87. FIELD_SET(*this, FIX::LegMaturityMonthYear);
  88. FIELD_SET(*this, FIX::LegMaturityDate);
  89. FIELD_SET(*this, FIX::LegCouponPaymentDate);
  90. FIELD_SET(*this, FIX::LegIssueDate);
  91. FIELD_SET(*this, FIX::LegRepoCollateralSecurityType);
  92. FIELD_SET(*this, FIX::LegRepurchaseTerm);
  93. FIELD_SET(*this, FIX::LegRepurchaseRate);
  94. FIELD_SET(*this, FIX::LegFactor);
  95. FIELD_SET(*this, FIX::LegCreditRating);
  96. FIELD_SET(*this, FIX::LegInstrRegistry);
  97. FIELD_SET(*this, FIX::LegCountryOfIssue);
  98. FIELD_SET(*this, FIX::LegStateOrProvinceOfIssue);
  99. FIELD_SET(*this, FIX::LegLocaleOfIssue);
  100. FIELD_SET(*this, FIX::LegRedemptionDate);
  101. FIELD_SET(*this, FIX::LegStrikePrice);
  102. FIELD_SET(*this, FIX::LegOptAttribute);
  103. FIELD_SET(*this, FIX::LegContractMultiplier);
  104. FIELD_SET(*this, FIX::LegCouponRate);
  105. FIELD_SET(*this, FIX::LegSecurityExchange);
  106. FIELD_SET(*this, FIX::LegIssuer);
  107. FIELD_SET(*this, FIX::EncodedLegIssuerLen);
  108. FIELD_SET(*this, FIX::EncodedLegIssuer);
  109. FIELD_SET(*this, FIX::LegSecurityDesc);
  110. FIELD_SET(*this, FIX::EncodedLegSecurityDescLen);
  111. FIELD_SET(*this, FIX::EncodedLegSecurityDesc);
  112. FIELD_SET(*this, FIX::LegRatioQty);
  113. FIELD_SET(*this, FIX::LegSide);
  114. FIELD_SET(*this, FIX::NoLegSecurityAltID);
  115. class NoLegSecurityAltID: public FIX::Group
  116. {
  117. public:
  118. NoLegSecurityAltID() : FIX::Group(604,605,FIX::message_order(605,606,0)) {}
  119. FIELD_SET(*this, FIX::LegSecurityAltID);
  120. FIELD_SET(*this, FIX::LegSecurityAltIDSource);
  121. };
  122. FIELD_SET(*this, FIX::LegCurrency);
  123. };
  124. };
  125. }
  126. #endif