OrderCancelRequest.h 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. #ifndef FIX40_ORDERCANCELREQUEST_H
  2. #define FIX40_ORDERCANCELREQUEST_H
  3. #include "Message.h"
  4. namespace FIX40
  5. {
  6. class OrderCancelRequest : public Message
  7. {
  8. public:
  9. OrderCancelRequest() : Message(MsgType()) {}
  10. OrderCancelRequest(const FIX::Message& m) : Message(m) {}
  11. OrderCancelRequest(const Message& m) : Message(m) {}
  12. OrderCancelRequest(const OrderCancelRequest& m) : Message(m) {}
  13. static FIX::MsgType MsgType() { return FIX::MsgType("F"); }
  14. OrderCancelRequest(
  15. const FIX::OrigClOrdID& aOrigClOrdID,
  16. const FIX::ClOrdID& aClOrdID,
  17. const FIX::CxlType& aCxlType,
  18. const FIX::Symbol& aSymbol,
  19. const FIX::Side& aSide,
  20. const FIX::OrderQty& aOrderQty )
  21. : Message(MsgType())
  22. {
  23. set(aOrigClOrdID);
  24. set(aClOrdID);
  25. set(aCxlType);
  26. set(aSymbol);
  27. set(aSide);
  28. set(aOrderQty);
  29. }
  30. FIELD_SET(*this, FIX::OrigClOrdID);
  31. FIELD_SET(*this, FIX::OrderID);
  32. FIELD_SET(*this, FIX::ClOrdID);
  33. FIELD_SET(*this, FIX::ListID);
  34. FIELD_SET(*this, FIX::CxlType);
  35. FIELD_SET(*this, FIX::ClientID);
  36. FIELD_SET(*this, FIX::ExecBroker);
  37. FIELD_SET(*this, FIX::Symbol);
  38. FIELD_SET(*this, FIX::SymbolSfx);
  39. FIELD_SET(*this, FIX::SecurityID);
  40. FIELD_SET(*this, FIX::IDSource);
  41. FIELD_SET(*this, FIX::Issuer);
  42. FIELD_SET(*this, FIX::SecurityDesc);
  43. FIELD_SET(*this, FIX::Side);
  44. FIELD_SET(*this, FIX::OrderQty);
  45. FIELD_SET(*this, FIX::Text);
  46. };
  47. }
  48. #endif