Advertisement.h 2.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  1. #ifndef FIX43_ADVERTISEMENT_H
  2. #define FIX43_ADVERTISEMENT_H
  3. #include "Message.h"
  4. namespace FIX43
  5. {
  6. class Advertisement : public Message
  7. {
  8. public:
  9. Advertisement() : Message(MsgType()) {}
  10. Advertisement(const FIX::Message& m) : Message(m) {}
  11. Advertisement(const Message& m) : Message(m) {}
  12. Advertisement(const Advertisement& m) : Message(m) {}
  13. static FIX::MsgType MsgType() { return FIX::MsgType("7"); }
  14. Advertisement(
  15. const FIX::AdvId& aAdvId,
  16. const FIX::AdvTransType& aAdvTransType,
  17. const FIX::AdvSide& aAdvSide,
  18. const FIX::Quantity& aQuantity )
  19. : Message(MsgType())
  20. {
  21. set(aAdvId);
  22. set(aAdvTransType);
  23. set(aAdvSide);
  24. set(aQuantity);
  25. }
  26. FIELD_SET(*this, FIX::AdvId);
  27. FIELD_SET(*this, FIX::AdvTransType);
  28. FIELD_SET(*this, FIX::AdvRefID);
  29. FIELD_SET(*this, FIX::Symbol);
  30. FIELD_SET(*this, FIX::SymbolSfx);
  31. FIELD_SET(*this, FIX::SecurityID);
  32. FIELD_SET(*this, FIX::SecurityIDSource);
  33. FIELD_SET(*this, FIX::Product);
  34. FIELD_SET(*this, FIX::CFICode);
  35. FIELD_SET(*this, FIX::SecurityType);
  36. FIELD_SET(*this, FIX::MaturityMonthYear);
  37. FIELD_SET(*this, FIX::MaturityDate);
  38. FIELD_SET(*this, FIX::CouponPaymentDate);
  39. FIELD_SET(*this, FIX::IssueDate);
  40. FIELD_SET(*this, FIX::RepoCollateralSecurityType);
  41. FIELD_SET(*this, FIX::RepurchaseTerm);
  42. FIELD_SET(*this, FIX::RepurchaseRate);
  43. FIELD_SET(*this, FIX::Factor);
  44. FIELD_SET(*this, FIX::CreditRating);
  45. FIELD_SET(*this, FIX::InstrRegistry);
  46. FIELD_SET(*this, FIX::CountryOfIssue);
  47. FIELD_SET(*this, FIX::StateOrProvinceOfIssue);
  48. FIELD_SET(*this, FIX::LocaleOfIssue);
  49. FIELD_SET(*this, FIX::RedemptionDate);
  50. FIELD_SET(*this, FIX::StrikePrice);
  51. FIELD_SET(*this, FIX::OptAttribute);
  52. FIELD_SET(*this, FIX::ContractMultiplier);
  53. FIELD_SET(*this, FIX::CouponRate);
  54. FIELD_SET(*this, FIX::SecurityExchange);
  55. FIELD_SET(*this, FIX::Issuer);
  56. FIELD_SET(*this, FIX::EncodedIssuerLen);
  57. FIELD_SET(*this, FIX::EncodedIssuer);
  58. FIELD_SET(*this, FIX::SecurityDesc);
  59. FIELD_SET(*this, FIX::EncodedSecurityDescLen);
  60. FIELD_SET(*this, FIX::EncodedSecurityDesc);
  61. FIELD_SET(*this, FIX::NoSecurityAltID);
  62. class NoSecurityAltID: public FIX::Group
  63. {
  64. public:
  65. NoSecurityAltID() : FIX::Group(454,455,FIX::message_order(455,456,0)) {}
  66. FIELD_SET(*this, FIX::SecurityAltID);
  67. FIELD_SET(*this, FIX::SecurityAltIDSource);
  68. };
  69. FIELD_SET(*this, FIX::AdvSide);
  70. FIELD_SET(*this, FIX::Quantity);
  71. FIELD_SET(*this, FIX::Price);
  72. FIELD_SET(*this, FIX::Currency);
  73. FIELD_SET(*this, FIX::TradeDate);
  74. FIELD_SET(*this, FIX::TransactTime);
  75. FIELD_SET(*this, FIX::Text);
  76. FIELD_SET(*this, FIX::EncodedTextLen);
  77. FIELD_SET(*this, FIX::EncodedText);
  78. FIELD_SET(*this, FIX::URLLink);
  79. FIELD_SET(*this, FIX::LastMkt);
  80. FIELD_SET(*this, FIX::TradingSessionID);
  81. FIELD_SET(*this, FIX::TradingSessionSubID);
  82. };
  83. }
  84. #endif