NewOrderList.h 2.4 KB

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