MarketDataRequest.h 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. #ifndef FIX42_MARKETDATAREQUEST_H
  2. #define FIX42_MARKETDATAREQUEST_H
  3. #include "Message.h"
  4. namespace FIX42
  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::NoMDEntryTypes);
  30. class NoMDEntryTypes: public FIX::Group
  31. {
  32. public:
  33. NoMDEntryTypes() : FIX::Group(267,269,FIX::message_order(269,0)) {}
  34. FIELD_SET(*this, FIX::MDEntryType);
  35. };
  36. FIELD_SET(*this, FIX::NoRelatedSym);
  37. class NoRelatedSym: public FIX::Group
  38. {
  39. public:
  40. NoRelatedSym() : FIX::Group(146,55,FIX::message_order(55,65,48,22,167,200,205,201,202,206,231,223,207,106,348,349,107,350,351,336,0)) {}
  41. FIELD_SET(*this, FIX::Symbol);
  42. FIELD_SET(*this, FIX::SymbolSfx);
  43. FIELD_SET(*this, FIX::SecurityID);
  44. FIELD_SET(*this, FIX::IDSource);
  45. FIELD_SET(*this, FIX::SecurityType);
  46. FIELD_SET(*this, FIX::MaturityMonthYear);
  47. FIELD_SET(*this, FIX::MaturityDay);
  48. FIELD_SET(*this, FIX::PutOrCall);
  49. FIELD_SET(*this, FIX::StrikePrice);
  50. FIELD_SET(*this, FIX::OptAttribute);
  51. FIELD_SET(*this, FIX::ContractMultiplier);
  52. FIELD_SET(*this, FIX::CouponRate);
  53. FIELD_SET(*this, FIX::SecurityExchange);
  54. FIELD_SET(*this, FIX::Issuer);
  55. FIELD_SET(*this, FIX::EncodedIssuerLen);
  56. FIELD_SET(*this, FIX::EncodedIssuer);
  57. FIELD_SET(*this, FIX::SecurityDesc);
  58. FIELD_SET(*this, FIX::EncodedSecurityDescLen);
  59. FIELD_SET(*this, FIX::EncodedSecurityDesc);
  60. FIELD_SET(*this, FIX::TradingSessionID);
  61. };
  62. };
  63. }
  64. #endif