OrderCancelReplaceRequest.h 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124
  1. #ifndef FIX42_ORDERCANCELREPLACEREQUEST_H
  2. #define FIX42_ORDERCANCELREPLACEREQUEST_H
  3. #include "Message.h"
  4. namespace FIX42
  5. {
  6. class OrderCancelReplaceRequest : public Message
  7. {
  8. public:
  9. OrderCancelReplaceRequest() : Message(MsgType()) {}
  10. OrderCancelReplaceRequest(const FIX::Message& m) : Message(m) {}
  11. OrderCancelReplaceRequest(const Message& m) : Message(m) {}
  12. OrderCancelReplaceRequest(const OrderCancelReplaceRequest& m) : Message(m) {}
  13. static FIX::MsgType MsgType() { return FIX::MsgType("G"); }
  14. OrderCancelReplaceRequest(
  15. const FIX::OrigClOrdID& aOrigClOrdID,
  16. const FIX::ClOrdID& aClOrdID,
  17. const FIX::HandlInst& aHandlInst,
  18. const FIX::Symbol& aSymbol,
  19. const FIX::Side& aSide,
  20. const FIX::TransactTime& aTransactTime,
  21. const FIX::OrdType& aOrdType )
  22. : Message(MsgType())
  23. {
  24. set(aOrigClOrdID);
  25. set(aClOrdID);
  26. set(aHandlInst);
  27. set(aSymbol);
  28. set(aSide);
  29. set(aTransactTime);
  30. set(aOrdType);
  31. }
  32. FIELD_SET(*this, FIX::OrderID);
  33. FIELD_SET(*this, FIX::ClientID);
  34. FIELD_SET(*this, FIX::ExecBroker);
  35. FIELD_SET(*this, FIX::OrigClOrdID);
  36. FIELD_SET(*this, FIX::ClOrdID);
  37. FIELD_SET(*this, FIX::ListID);
  38. FIELD_SET(*this, FIX::Account);
  39. FIELD_SET(*this, FIX::SettlmntTyp);
  40. FIELD_SET(*this, FIX::FutSettDate);
  41. FIELD_SET(*this, FIX::HandlInst);
  42. FIELD_SET(*this, FIX::ExecInst);
  43. FIELD_SET(*this, FIX::MinQty);
  44. FIELD_SET(*this, FIX::MaxFloor);
  45. FIELD_SET(*this, FIX::ExDestination);
  46. FIELD_SET(*this, FIX::Symbol);
  47. FIELD_SET(*this, FIX::SymbolSfx);
  48. FIELD_SET(*this, FIX::SecurityID);
  49. FIELD_SET(*this, FIX::IDSource);
  50. FIELD_SET(*this, FIX::SecurityType);
  51. FIELD_SET(*this, FIX::MaturityMonthYear);
  52. FIELD_SET(*this, FIX::MaturityDay);
  53. FIELD_SET(*this, FIX::PutOrCall);
  54. FIELD_SET(*this, FIX::StrikePrice);
  55. FIELD_SET(*this, FIX::OptAttribute);
  56. FIELD_SET(*this, FIX::ContractMultiplier);
  57. FIELD_SET(*this, FIX::CouponRate);
  58. FIELD_SET(*this, FIX::SecurityExchange);
  59. FIELD_SET(*this, FIX::Issuer);
  60. FIELD_SET(*this, FIX::EncodedIssuerLen);
  61. FIELD_SET(*this, FIX::EncodedIssuer);
  62. FIELD_SET(*this, FIX::SecurityDesc);
  63. FIELD_SET(*this, FIX::EncodedSecurityDescLen);
  64. FIELD_SET(*this, FIX::EncodedSecurityDesc);
  65. FIELD_SET(*this, FIX::Side);
  66. FIELD_SET(*this, FIX::TransactTime);
  67. FIELD_SET(*this, FIX::OrderQty);
  68. FIELD_SET(*this, FIX::CashOrderQty);
  69. FIELD_SET(*this, FIX::OrdType);
  70. FIELD_SET(*this, FIX::Price);
  71. FIELD_SET(*this, FIX::StopPx);
  72. FIELD_SET(*this, FIX::PegDifference);
  73. FIELD_SET(*this, FIX::DiscretionInst);
  74. FIELD_SET(*this, FIX::DiscretionOffset);
  75. FIELD_SET(*this, FIX::ComplianceID);
  76. FIELD_SET(*this, FIX::SolicitedFlag);
  77. FIELD_SET(*this, FIX::Currency);
  78. FIELD_SET(*this, FIX::TimeInForce);
  79. FIELD_SET(*this, FIX::EffectiveTime);
  80. FIELD_SET(*this, FIX::ExpireDate);
  81. FIELD_SET(*this, FIX::ExpireTime);
  82. FIELD_SET(*this, FIX::GTBookingInst);
  83. FIELD_SET(*this, FIX::Commission);
  84. FIELD_SET(*this, FIX::CommType);
  85. FIELD_SET(*this, FIX::Rule80A);
  86. FIELD_SET(*this, FIX::ForexReq);
  87. FIELD_SET(*this, FIX::SettlCurrency);
  88. FIELD_SET(*this, FIX::Text);
  89. FIELD_SET(*this, FIX::EncodedTextLen);
  90. FIELD_SET(*this, FIX::EncodedText);
  91. FIELD_SET(*this, FIX::FutSettDate2);
  92. FIELD_SET(*this, FIX::OrderQty2);
  93. FIELD_SET(*this, FIX::OpenClose);
  94. FIELD_SET(*this, FIX::CoveredOrUncovered);
  95. FIELD_SET(*this, FIX::CustomerOrFirm);
  96. FIELD_SET(*this, FIX::MaxShow);
  97. FIELD_SET(*this, FIX::LocateReqd);
  98. FIELD_SET(*this, FIX::ClearingFirm);
  99. FIELD_SET(*this, FIX::ClearingAccount);
  100. FIELD_SET(*this, FIX::NoAllocs);
  101. class NoAllocs: public FIX::Group
  102. {
  103. public:
  104. NoAllocs() : FIX::Group(78,79,FIX::message_order(79,80,0)) {}
  105. FIELD_SET(*this, FIX::AllocAccount);
  106. FIELD_SET(*this, FIX::AllocShares);
  107. };
  108. FIELD_SET(*this, FIX::NoTradingSessions);
  109. class NoTradingSessions: public FIX::Group
  110. {
  111. public:
  112. NoTradingSessions() : FIX::Group(386,336,FIX::message_order(336,0)) {}
  113. FIELD_SET(*this, FIX::TradingSessionID);
  114. };
  115. };
  116. }
  117. #endif