MarketDataRequest.h 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102
  1. #ifndef FIX43_MARKETDATAREQUEST_H
  2. #define FIX43_MARKETDATAREQUEST_H
  3. #include "Message.h"
  4. namespace FIX43
  5. {
  6. class MarketDataRequest : public Message
  7. {
  8. public:
  9. MarketDataRequest() : Message(MsgType()) {}
  10. MarketDataRequest(const FIX::Message& m) : Message(m) {}
  11. MarketDataRequest(const Message& m) : Message(m) {}
  12. MarketDataRequest(const MarketDataRequest& m) : Message(m) {}
  13. static FIX::MsgType MsgType() { return FIX::MsgType("V"); }
  14. MarketDataRequest(
  15. const FIX::MDReqID& aMDReqID,
  16. const FIX::SubscriptionRequestType& aSubscriptionRequestType,
  17. const FIX::MarketDepth& aMarketDepth )
  18. : Message(MsgType())
  19. {
  20. set(aMDReqID);
  21. set(aSubscriptionRequestType);
  22. set(aMarketDepth);
  23. }
  24. FIELD_SET(*this, FIX::MDReqID);
  25. FIELD_SET(*this, FIX::SubscriptionRequestType);
  26. FIELD_SET(*this, FIX::MarketDepth);
  27. FIELD_SET(*this, FIX::MDUpdateType);
  28. FIELD_SET(*this, FIX::AggregatedBook);
  29. FIELD_SET(*this, FIX::OpenCloseSettleFlag);
  30. FIELD_SET(*this, FIX::Scope);
  31. FIELD_SET(*this, FIX::MDImplicitDelete);
  32. FIELD_SET(*this, FIX::NoMDEntryTypes);
  33. class NoMDEntryTypes: public FIX::Group
  34. {
  35. public:
  36. NoMDEntryTypes() : FIX::Group(267,269,FIX::message_order(269,0)) {}
  37. FIELD_SET(*this, FIX::MDEntryType);
  38. };
  39. FIELD_SET(*this, FIX::NoRelatedSym);
  40. class NoRelatedSym: public FIX::Group
  41. {
  42. public:
  43. NoRelatedSym() : FIX::Group(146,55,FIX::message_order(55,65,48,22,454,460,461,167,200,541,224,225,239,226,227,228,255,543,470,471,472,240,202,206,231,223,207,106,348,349,107,350,351,0)) {}
  44. FIELD_SET(*this, FIX::Symbol);
  45. FIELD_SET(*this, FIX::SymbolSfx);
  46. FIELD_SET(*this, FIX::SecurityID);
  47. FIELD_SET(*this, FIX::SecurityIDSource);
  48. FIELD_SET(*this, FIX::Product);
  49. FIELD_SET(*this, FIX::CFICode);
  50. FIELD_SET(*this, FIX::SecurityType);
  51. FIELD_SET(*this, FIX::MaturityMonthYear);
  52. FIELD_SET(*this, FIX::MaturityDate);
  53. FIELD_SET(*this, FIX::CouponPaymentDate);
  54. FIELD_SET(*this, FIX::IssueDate);
  55. FIELD_SET(*this, FIX::RepoCollateralSecurityType);
  56. FIELD_SET(*this, FIX::RepurchaseTerm);
  57. FIELD_SET(*this, FIX::RepurchaseRate);
  58. FIELD_SET(*this, FIX::Factor);
  59. FIELD_SET(*this, FIX::CreditRating);
  60. FIELD_SET(*this, FIX::InstrRegistry);
  61. FIELD_SET(*this, FIX::CountryOfIssue);
  62. FIELD_SET(*this, FIX::StateOrProvinceOfIssue);
  63. FIELD_SET(*this, FIX::LocaleOfIssue);
  64. FIELD_SET(*this, FIX::RedemptionDate);
  65. FIELD_SET(*this, FIX::StrikePrice);
  66. FIELD_SET(*this, FIX::OptAttribute);
  67. FIELD_SET(*this, FIX::ContractMultiplier);
  68. FIELD_SET(*this, FIX::CouponRate);
  69. FIELD_SET(*this, FIX::SecurityExchange);
  70. FIELD_SET(*this, FIX::Issuer);
  71. FIELD_SET(*this, FIX::EncodedIssuerLen);
  72. FIELD_SET(*this, FIX::EncodedIssuer);
  73. FIELD_SET(*this, FIX::SecurityDesc);
  74. FIELD_SET(*this, FIX::EncodedSecurityDescLen);
  75. FIELD_SET(*this, FIX::EncodedSecurityDesc);
  76. FIELD_SET(*this, FIX::NoSecurityAltID);
  77. class NoSecurityAltID: public FIX::Group
  78. {
  79. public:
  80. NoSecurityAltID() : FIX::Group(454,455,FIX::message_order(455,456,0)) {}
  81. FIELD_SET(*this, FIX::SecurityAltID);
  82. FIELD_SET(*this, FIX::SecurityAltIDSource);
  83. };
  84. };
  85. FIELD_SET(*this, FIX::NoTradingSessions);
  86. class NoTradingSessions: public FIX::Group
  87. {
  88. public:
  89. NoTradingSessions() : FIX::Group(386,336,FIX::message_order(336,625,0)) {}
  90. FIELD_SET(*this, FIX::TradingSessionID);
  91. FIELD_SET(*this, FIX::TradingSessionSubID);
  92. };
  93. };
  94. }
  95. #endif