NewOrderList.h 3.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  1. #ifndef FIX41_NEWORDERLIST_H
  2. #define FIX41_NEWORDERLIST_H
  3. #include "Message.h"
  4. namespace FIX41
  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::SecurityType);
  58. FIELD_SET(*this, FIX::MaturityMonthYear);
  59. FIELD_SET(*this, FIX::MaturityDay);
  60. FIELD_SET(*this, FIX::PutOrCall);
  61. FIELD_SET(*this, FIX::StrikePrice);
  62. FIELD_SET(*this, FIX::OptAttribute);
  63. FIELD_SET(*this, FIX::SecurityExchange);
  64. FIELD_SET(*this, FIX::Issuer);
  65. FIELD_SET(*this, FIX::SecurityDesc);
  66. FIELD_SET(*this, FIX::PrevClosePx);
  67. FIELD_SET(*this, FIX::Side);
  68. FIELD_SET(*this, FIX::LocateReqd);
  69. FIELD_SET(*this, FIX::OrderQty);
  70. FIELD_SET(*this, FIX::OrdType);
  71. FIELD_SET(*this, FIX::Price);
  72. FIELD_SET(*this, FIX::StopPx);
  73. FIELD_SET(*this, FIX::PegDifference);
  74. FIELD_SET(*this, FIX::Currency);
  75. FIELD_SET(*this, FIX::TimeInForce);
  76. FIELD_SET(*this, FIX::ExpireTime);
  77. FIELD_SET(*this, FIX::Commission);
  78. FIELD_SET(*this, FIX::CommType);
  79. FIELD_SET(*this, FIX::Rule80A);
  80. FIELD_SET(*this, FIX::ForexReq);
  81. FIELD_SET(*this, FIX::SettlCurrency);
  82. FIELD_SET(*this, FIX::Text);
  83. FIELD_SET(*this, FIX::FutSettDate2);
  84. FIELD_SET(*this, FIX::OrderQty2);
  85. FIELD_SET(*this, FIX::OpenClose);
  86. FIELD_SET(*this, FIX::CoveredOrUncovered);
  87. FIELD_SET(*this, FIX::CustomerOrFirm);
  88. FIELD_SET(*this, FIX::MaxShow);
  89. };
  90. }
  91. #endif