Quote.h 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. #ifndef FIX41_QUOTE_H
  2. #define FIX41_QUOTE_H
  3. #include "Message.h"
  4. namespace FIX41
  5. {
  6. class Quote : public Message
  7. {
  8. public:
  9. Quote() : Message(MsgType()) {}
  10. Quote(const FIX::Message& m) : Message(m) {}
  11. Quote(const Message& m) : Message(m) {}
  12. Quote(const Quote& m) : Message(m) {}
  13. static FIX::MsgType MsgType() { return FIX::MsgType("S"); }
  14. Quote(
  15. const FIX::QuoteID& aQuoteID,
  16. const FIX::Symbol& aSymbol )
  17. : Message(MsgType())
  18. {
  19. set(aQuoteID);
  20. set(aSymbol);
  21. }
  22. FIELD_SET(*this, FIX::QuoteReqID);
  23. FIELD_SET(*this, FIX::QuoteID);
  24. FIELD_SET(*this, FIX::Symbol);
  25. FIELD_SET(*this, FIX::SymbolSfx);
  26. FIELD_SET(*this, FIX::SecurityID);
  27. FIELD_SET(*this, FIX::IDSource);
  28. FIELD_SET(*this, FIX::SecurityType);
  29. FIELD_SET(*this, FIX::MaturityMonthYear);
  30. FIELD_SET(*this, FIX::MaturityDay);
  31. FIELD_SET(*this, FIX::PutOrCall);
  32. FIELD_SET(*this, FIX::StrikePrice);
  33. FIELD_SET(*this, FIX::OptAttribute);
  34. FIELD_SET(*this, FIX::SecurityExchange);
  35. FIELD_SET(*this, FIX::Issuer);
  36. FIELD_SET(*this, FIX::SecurityDesc);
  37. FIELD_SET(*this, FIX::BidPx);
  38. FIELD_SET(*this, FIX::OfferPx);
  39. FIELD_SET(*this, FIX::BidSize);
  40. FIELD_SET(*this, FIX::OfferSize);
  41. FIELD_SET(*this, FIX::ValidUntilTime);
  42. FIELD_SET(*this, FIX::BidSpotRate);
  43. FIELD_SET(*this, FIX::OfferSpotRate);
  44. FIELD_SET(*this, FIX::BidForwardPoints);
  45. FIELD_SET(*this, FIX::OfferForwardPoints);
  46. FIELD_SET(*this, FIX::TransactTime);
  47. FIELD_SET(*this, FIX::FutSettDate);
  48. FIELD_SET(*this, FIX::OrdType);
  49. FIELD_SET(*this, FIX::FutSettDate2);
  50. FIELD_SET(*this, FIX::OrderQty2);
  51. };
  52. }
  53. #endif