NewOrderSingle.h 2.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  1. #ifndef FIX41_NEWORDERSINGLE_H
  2. #define FIX41_NEWORDERSINGLE_H
  3. #include "Message.h"
  4. namespace FIX41
  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::OrdType& aOrdType )
  20. : Message(MsgType())
  21. {
  22. set(aClOrdID);
  23. set(aHandlInst);
  24. set(aSymbol);
  25. set(aSide);
  26. set(aOrdType);
  27. }
  28. FIELD_SET(*this, FIX::ClOrdID);
  29. FIELD_SET(*this, FIX::ClientID);
  30. FIELD_SET(*this, FIX::ExecBroker);
  31. FIELD_SET(*this, FIX::Account);
  32. FIELD_SET(*this, FIX::SettlmntTyp);
  33. FIELD_SET(*this, FIX::FutSettDate);
  34. FIELD_SET(*this, FIX::HandlInst);
  35. FIELD_SET(*this, FIX::ExecInst);
  36. FIELD_SET(*this, FIX::MinQty);
  37. FIELD_SET(*this, FIX::MaxFloor);
  38. FIELD_SET(*this, FIX::ExDestination);
  39. FIELD_SET(*this, FIX::ProcessCode);
  40. FIELD_SET(*this, FIX::Symbol);
  41. FIELD_SET(*this, FIX::SymbolSfx);
  42. FIELD_SET(*this, FIX::SecurityID);
  43. FIELD_SET(*this, FIX::IDSource);
  44. FIELD_SET(*this, FIX::SecurityType);
  45. FIELD_SET(*this, FIX::MaturityMonthYear);
  46. FIELD_SET(*this, FIX::MaturityDay);
  47. FIELD_SET(*this, FIX::PutOrCall);
  48. FIELD_SET(*this, FIX::StrikePrice);
  49. FIELD_SET(*this, FIX::OptAttribute);
  50. FIELD_SET(*this, FIX::SecurityExchange);
  51. FIELD_SET(*this, FIX::Issuer);
  52. FIELD_SET(*this, FIX::SecurityDesc);
  53. FIELD_SET(*this, FIX::PrevClosePx);
  54. FIELD_SET(*this, FIX::Side);
  55. FIELD_SET(*this, FIX::LocateReqd);
  56. FIELD_SET(*this, FIX::OrderQty);
  57. FIELD_SET(*this, FIX::CashOrderQty);
  58. FIELD_SET(*this, FIX::OrdType);
  59. FIELD_SET(*this, FIX::Price);
  60. FIELD_SET(*this, FIX::StopPx);
  61. FIELD_SET(*this, FIX::Currency);
  62. FIELD_SET(*this, FIX::IOIid);
  63. FIELD_SET(*this, FIX::QuoteID);
  64. FIELD_SET(*this, FIX::TimeInForce);
  65. FIELD_SET(*this, FIX::ExpireTime);
  66. FIELD_SET(*this, FIX::Commission);
  67. FIELD_SET(*this, FIX::CommType);
  68. FIELD_SET(*this, FIX::Rule80A);
  69. FIELD_SET(*this, FIX::ForexReq);
  70. FIELD_SET(*this, FIX::SettlCurrency);
  71. FIELD_SET(*this, FIX::Text);
  72. FIELD_SET(*this, FIX::FutSettDate2);
  73. FIELD_SET(*this, FIX::OrderQty2);
  74. FIELD_SET(*this, FIX::OpenClose);
  75. FIELD_SET(*this, FIX::CoveredOrUncovered);
  76. FIELD_SET(*this, FIX::CustomerOrFirm);
  77. FIELD_SET(*this, FIX::MaxShow);
  78. FIELD_SET(*this, FIX::PegDifference);
  79. };
  80. }
  81. #endif