OrderStatusRequest.h 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. #ifndef FIX42_ORDERSTATUSREQUEST_H
  2. #define FIX42_ORDERSTATUSREQUEST_H
  3. #include "Message.h"
  4. namespace FIX42
  5. {
  6. class OrderStatusRequest : public Message
  7. {
  8. public:
  9. OrderStatusRequest() : Message(MsgType()) {}
  10. OrderStatusRequest(const FIX::Message& m) : Message(m) {}
  11. OrderStatusRequest(const Message& m) : Message(m) {}
  12. OrderStatusRequest(const OrderStatusRequest& m) : Message(m) {}
  13. static FIX::MsgType MsgType() { return FIX::MsgType("H"); }
  14. OrderStatusRequest(
  15. const FIX::ClOrdID& aClOrdID,
  16. const FIX::Symbol& aSymbol,
  17. const FIX::Side& aSide )
  18. : Message(MsgType())
  19. {
  20. set(aClOrdID);
  21. set(aSymbol);
  22. set(aSide);
  23. }
  24. FIELD_SET(*this, FIX::OrderID);
  25. FIELD_SET(*this, FIX::ClOrdID);
  26. FIELD_SET(*this, FIX::ClientID);
  27. FIELD_SET(*this, FIX::Account);
  28. FIELD_SET(*this, FIX::ExecBroker);
  29. FIELD_SET(*this, FIX::Symbol);
  30. FIELD_SET(*this, FIX::SymbolSfx);
  31. FIELD_SET(*this, FIX::SecurityID);
  32. FIELD_SET(*this, FIX::IDSource);
  33. FIELD_SET(*this, FIX::SecurityType);
  34. FIELD_SET(*this, FIX::MaturityMonthYear);
  35. FIELD_SET(*this, FIX::MaturityDay);
  36. FIELD_SET(*this, FIX::PutOrCall);
  37. FIELD_SET(*this, FIX::StrikePrice);
  38. FIELD_SET(*this, FIX::OptAttribute);
  39. FIELD_SET(*this, FIX::ContractMultiplier);
  40. FIELD_SET(*this, FIX::CouponRate);
  41. FIELD_SET(*this, FIX::SecurityExchange);
  42. FIELD_SET(*this, FIX::Issuer);
  43. FIELD_SET(*this, FIX::EncodedIssuerLen);
  44. FIELD_SET(*this, FIX::EncodedIssuer);
  45. FIELD_SET(*this, FIX::SecurityDesc);
  46. FIELD_SET(*this, FIX::EncodedSecurityDescLen);
  47. FIELD_SET(*this, FIX::EncodedSecurityDesc);
  48. FIELD_SET(*this, FIX::Side);
  49. };
  50. }
  51. #endif