TradingSessionList.h 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. #ifndef FIX50_TRADINGSESSIONLIST_H
  2. #define FIX50_TRADINGSESSIONLIST_H
  3. #include "Message.h"
  4. namespace FIX50
  5. {
  6. class TradingSessionList : public Message
  7. {
  8. public:
  9. TradingSessionList() : Message(MsgType()) {}
  10. TradingSessionList(const FIX::Message& m) : Message(m) {}
  11. TradingSessionList(const Message& m) : Message(m) {}
  12. TradingSessionList(const TradingSessionList& m) : Message(m) {}
  13. static FIX::MsgType MsgType() { return FIX::MsgType("BJ"); }
  14. FIELD_SET(*this, FIX::TradSesReqID);
  15. FIELD_SET(*this, FIX::NoTradingSessions);
  16. class NoTradingSessions: public FIX::Group
  17. {
  18. public:
  19. NoTradingSessions() : FIX::Group(386,336,FIX::message_order(336,625,207,338,339,325,340,567,341,342,343,344,345,387,58,354,355,0)) {}
  20. FIELD_SET(*this, FIX::TradingSessionID);
  21. FIELD_SET(*this, FIX::TradingSessionSubID);
  22. FIELD_SET(*this, FIX::SecurityExchange);
  23. FIELD_SET(*this, FIX::TradSesMethod);
  24. FIELD_SET(*this, FIX::TradSesMode);
  25. FIELD_SET(*this, FIX::UnsolicitedIndicator);
  26. FIELD_SET(*this, FIX::TradSesStatus);
  27. FIELD_SET(*this, FIX::TradSesStatusRejReason);
  28. FIELD_SET(*this, FIX::TradSesStartTime);
  29. FIELD_SET(*this, FIX::TradSesOpenTime);
  30. FIELD_SET(*this, FIX::TradSesPreCloseTime);
  31. FIELD_SET(*this, FIX::TradSesCloseTime);
  32. FIELD_SET(*this, FIX::TradSesEndTime);
  33. FIELD_SET(*this, FIX::TotalVolumeTraded);
  34. FIELD_SET(*this, FIX::Text);
  35. FIELD_SET(*this, FIX::EncodedTextLen);
  36. FIELD_SET(*this, FIX::EncodedText);
  37. };
  38. };
  39. }
  40. #endif