DontKnowTrade.h 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. #ifndef FIX42_DONTKNOWTRADE_H
  2. #define FIX42_DONTKNOWTRADE_H
  3. #include "Message.h"
  4. namespace FIX42
  5. {
  6. class DontKnowTrade : public Message
  7. {
  8. public:
  9. DontKnowTrade() : Message(MsgType()) {}
  10. DontKnowTrade(const FIX::Message& m) : Message(m) {}
  11. DontKnowTrade(const Message& m) : Message(m) {}
  12. DontKnowTrade(const DontKnowTrade& m) : Message(m) {}
  13. static FIX::MsgType MsgType() { return FIX::MsgType("Q"); }
  14. DontKnowTrade(
  15. const FIX::OrderID& aOrderID,
  16. const FIX::ExecID& aExecID,
  17. const FIX::DKReason& aDKReason,
  18. const FIX::Symbol& aSymbol,
  19. const FIX::Side& aSide )
  20. : Message(MsgType())
  21. {
  22. set(aOrderID);
  23. set(aExecID);
  24. set(aDKReason);
  25. set(aSymbol);
  26. set(aSide);
  27. }
  28. FIELD_SET(*this, FIX::OrderID);
  29. FIELD_SET(*this, FIX::ExecID);
  30. FIELD_SET(*this, FIX::DKReason);
  31. FIELD_SET(*this, FIX::Symbol);
  32. FIELD_SET(*this, FIX::SymbolSfx);
  33. FIELD_SET(*this, FIX::SecurityID);
  34. FIELD_SET(*this, FIX::IDSource);
  35. FIELD_SET(*this, FIX::SecurityType);
  36. FIELD_SET(*this, FIX::MaturityMonthYear);
  37. FIELD_SET(*this, FIX::MaturityDay);
  38. FIELD_SET(*this, FIX::PutOrCall);
  39. FIELD_SET(*this, FIX::StrikePrice);
  40. FIELD_SET(*this, FIX::OptAttribute);
  41. FIELD_SET(*this, FIX::ContractMultiplier);
  42. FIELD_SET(*this, FIX::CouponRate);
  43. FIELD_SET(*this, FIX::SecurityExchange);
  44. FIELD_SET(*this, FIX::Issuer);
  45. FIELD_SET(*this, FIX::EncodedIssuerLen);
  46. FIELD_SET(*this, FIX::EncodedIssuer);
  47. FIELD_SET(*this, FIX::SecurityDesc);
  48. FIELD_SET(*this, FIX::EncodedSecurityDescLen);
  49. FIELD_SET(*this, FIX::EncodedSecurityDesc);
  50. FIELD_SET(*this, FIX::Side);
  51. FIELD_SET(*this, FIX::OrderQty);
  52. FIELD_SET(*this, FIX::CashOrderQty);
  53. FIELD_SET(*this, FIX::LastShares);
  54. FIELD_SET(*this, FIX::LastPx);
  55. FIELD_SET(*this, FIX::Text);
  56. FIELD_SET(*this, FIX::EncodedTextLen);
  57. FIELD_SET(*this, FIX::EncodedText);
  58. };
  59. }
  60. #endif