NewOrderSingle.h 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. #ifndef FIX40_NEWORDERSINGLE_H
  2. #define FIX40_NEWORDERSINGLE_H
  3. #include "Message.h"
  4. namespace FIX40
  5. {
  6. class NewOrderSingle : public Message
  7. {
  8. public:
  9. NewOrderSingle() : Message(MsgType()) {}
  10. NewOrderSingle(const FIX::Message& m) : Message(m) {}
  11. NewOrderSingle(const Message& m) : Message(m) {}
  12. NewOrderSingle(const NewOrderSingle& m) : Message(m) {}
  13. static FIX::MsgType MsgType() { return FIX::MsgType("D"); }
  14. NewOrderSingle(
  15. const FIX::ClOrdID& aClOrdID,
  16. const FIX::HandlInst& aHandlInst,
  17. const FIX::Symbol& aSymbol,
  18. const FIX::Side& aSide,
  19. const FIX::OrderQty& aOrderQty,
  20. const FIX::OrdType& aOrdType )
  21. : Message(MsgType())
  22. {
  23. set(aClOrdID);
  24. set(aHandlInst);
  25. set(aSymbol);
  26. set(aSide);
  27. set(aOrderQty);
  28. set(aOrdType);
  29. }
  30. FIELD_SET(*this, FIX::ClOrdID);
  31. FIELD_SET(*this, FIX::ClientID);
  32. FIELD_SET(*this, FIX::ExecBroker);
  33. FIELD_SET(*this, FIX::Account);
  34. FIELD_SET(*this, FIX::SettlmntTyp);
  35. FIELD_SET(*this, FIX::FutSettDate);
  36. FIELD_SET(*this, FIX::HandlInst);
  37. FIELD_SET(*this, FIX::ExecInst);
  38. FIELD_SET(*this, FIX::MinQty);
  39. FIELD_SET(*this, FIX::MaxFloor);
  40. FIELD_SET(*this, FIX::ExDestination);
  41. FIELD_SET(*this, FIX::ProcessCode);
  42. FIELD_SET(*this, FIX::Symbol);
  43. FIELD_SET(*this, FIX::SymbolSfx);
  44. FIELD_SET(*this, FIX::SecurityID);
  45. FIELD_SET(*this, FIX::IDSource);
  46. FIELD_SET(*this, FIX::Issuer);
  47. FIELD_SET(*this, FIX::SecurityDesc);
  48. FIELD_SET(*this, FIX::PrevClosePx);
  49. FIELD_SET(*this, FIX::Side);
  50. FIELD_SET(*this, FIX::LocateReqd);
  51. FIELD_SET(*this, FIX::OrderQty);
  52. FIELD_SET(*this, FIX::OrdType);
  53. FIELD_SET(*this, FIX::Price);
  54. FIELD_SET(*this, FIX::StopPx);
  55. FIELD_SET(*this, FIX::Currency);
  56. FIELD_SET(*this, FIX::IOIid);
  57. FIELD_SET(*this, FIX::QuoteID);
  58. FIELD_SET(*this, FIX::TimeInForce);
  59. FIELD_SET(*this, FIX::ExpireTime);
  60. FIELD_SET(*this, FIX::Commission);
  61. FIELD_SET(*this, FIX::CommType);
  62. FIELD_SET(*this, FIX::Rule80A);
  63. FIELD_SET(*this, FIX::ForexReq);
  64. FIELD_SET(*this, FIX::SettlCurrency);
  65. FIELD_SET(*this, FIX::Text);
  66. };
  67. }
  68. #endif