CrossOrderCancelReplaceRequest.h 8.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214
  1. #ifndef FIX43_CROSSORDERCANCELREPLACEREQUEST_H
  2. #define FIX43_CROSSORDERCANCELREPLACEREQUEST_H
  3. #include "Message.h"
  4. namespace FIX43
  5. {
  6. class CrossOrderCancelReplaceRequest : public Message
  7. {
  8. public:
  9. CrossOrderCancelReplaceRequest() : Message(MsgType()) {}
  10. CrossOrderCancelReplaceRequest(const FIX::Message& m) : Message(m) {}
  11. CrossOrderCancelReplaceRequest(const Message& m) : Message(m) {}
  12. CrossOrderCancelReplaceRequest(const CrossOrderCancelReplaceRequest& m) : Message(m) {}
  13. static FIX::MsgType MsgType() { return FIX::MsgType("t"); }
  14. CrossOrderCancelReplaceRequest(
  15. const FIX::CrossID& aCrossID,
  16. const FIX::OrigCrossID& aOrigCrossID,
  17. const FIX::CrossType& aCrossType,
  18. const FIX::CrossPrioritization& aCrossPrioritization,
  19. const FIX::HandlInst& aHandlInst,
  20. const FIX::TransactTime& aTransactTime,
  21. const FIX::OrdType& aOrdType )
  22. : Message(MsgType())
  23. {
  24. set(aCrossID);
  25. set(aOrigCrossID);
  26. set(aCrossType);
  27. set(aCrossPrioritization);
  28. set(aHandlInst);
  29. set(aTransactTime);
  30. set(aOrdType);
  31. }
  32. FIELD_SET(*this, FIX::OrderID);
  33. FIELD_SET(*this, FIX::CrossID);
  34. FIELD_SET(*this, FIX::OrigCrossID);
  35. FIELD_SET(*this, FIX::CrossType);
  36. FIELD_SET(*this, FIX::CrossPrioritization);
  37. FIELD_SET(*this, FIX::Symbol);
  38. FIELD_SET(*this, FIX::SymbolSfx);
  39. FIELD_SET(*this, FIX::SecurityID);
  40. FIELD_SET(*this, FIX::SecurityIDSource);
  41. FIELD_SET(*this, FIX::Product);
  42. FIELD_SET(*this, FIX::CFICode);
  43. FIELD_SET(*this, FIX::SecurityType);
  44. FIELD_SET(*this, FIX::MaturityMonthYear);
  45. FIELD_SET(*this, FIX::MaturityDate);
  46. FIELD_SET(*this, FIX::CouponPaymentDate);
  47. FIELD_SET(*this, FIX::IssueDate);
  48. FIELD_SET(*this, FIX::RepoCollateralSecurityType);
  49. FIELD_SET(*this, FIX::RepurchaseTerm);
  50. FIELD_SET(*this, FIX::RepurchaseRate);
  51. FIELD_SET(*this, FIX::Factor);
  52. FIELD_SET(*this, FIX::CreditRating);
  53. FIELD_SET(*this, FIX::InstrRegistry);
  54. FIELD_SET(*this, FIX::CountryOfIssue);
  55. FIELD_SET(*this, FIX::StateOrProvinceOfIssue);
  56. FIELD_SET(*this, FIX::LocaleOfIssue);
  57. FIELD_SET(*this, FIX::RedemptionDate);
  58. FIELD_SET(*this, FIX::StrikePrice);
  59. FIELD_SET(*this, FIX::OptAttribute);
  60. FIELD_SET(*this, FIX::ContractMultiplier);
  61. FIELD_SET(*this, FIX::CouponRate);
  62. FIELD_SET(*this, FIX::SecurityExchange);
  63. FIELD_SET(*this, FIX::Issuer);
  64. FIELD_SET(*this, FIX::EncodedIssuerLen);
  65. FIELD_SET(*this, FIX::EncodedIssuer);
  66. FIELD_SET(*this, FIX::SecurityDesc);
  67. FIELD_SET(*this, FIX::EncodedSecurityDescLen);
  68. FIELD_SET(*this, FIX::EncodedSecurityDesc);
  69. FIELD_SET(*this, FIX::NoSecurityAltID);
  70. class NoSecurityAltID: public FIX::Group
  71. {
  72. public:
  73. NoSecurityAltID() : FIX::Group(454,455,FIX::message_order(455,456,0)) {}
  74. FIELD_SET(*this, FIX::SecurityAltID);
  75. FIELD_SET(*this, FIX::SecurityAltIDSource);
  76. };
  77. FIELD_SET(*this, FIX::SettlmntTyp);
  78. FIELD_SET(*this, FIX::FutSettDate);
  79. FIELD_SET(*this, FIX::HandlInst);
  80. FIELD_SET(*this, FIX::ExecInst);
  81. FIELD_SET(*this, FIX::MinQty);
  82. FIELD_SET(*this, FIX::MaxFloor);
  83. FIELD_SET(*this, FIX::ExDestination);
  84. FIELD_SET(*this, FIX::ProcessCode);
  85. FIELD_SET(*this, FIX::PrevClosePx);
  86. FIELD_SET(*this, FIX::LocateReqd);
  87. FIELD_SET(*this, FIX::TransactTime);
  88. FIELD_SET(*this, FIX::NoStipulations);
  89. class NoStipulations: public FIX::Group
  90. {
  91. public:
  92. NoStipulations() : FIX::Group(232,233,FIX::message_order(233,234,0)) {}
  93. FIELD_SET(*this, FIX::StipulationType);
  94. FIELD_SET(*this, FIX::StipulationValue);
  95. };
  96. FIELD_SET(*this, FIX::OrdType);
  97. FIELD_SET(*this, FIX::PriceType);
  98. FIELD_SET(*this, FIX::Price);
  99. FIELD_SET(*this, FIX::StopPx);
  100. FIELD_SET(*this, FIX::Spread);
  101. FIELD_SET(*this, FIX::BenchmarkCurveCurrency);
  102. FIELD_SET(*this, FIX::BenchmarkCurveName);
  103. FIELD_SET(*this, FIX::BenchmarkCurvePoint);
  104. FIELD_SET(*this, FIX::YieldType);
  105. FIELD_SET(*this, FIX::Yield);
  106. FIELD_SET(*this, FIX::Currency);
  107. FIELD_SET(*this, FIX::ComplianceID);
  108. FIELD_SET(*this, FIX::IOIid);
  109. FIELD_SET(*this, FIX::QuoteID);
  110. FIELD_SET(*this, FIX::TimeInForce);
  111. FIELD_SET(*this, FIX::EffectiveTime);
  112. FIELD_SET(*this, FIX::ExpireDate);
  113. FIELD_SET(*this, FIX::ExpireTime);
  114. FIELD_SET(*this, FIX::GTBookingInst);
  115. FIELD_SET(*this, FIX::MaxShow);
  116. FIELD_SET(*this, FIX::PegDifference);
  117. FIELD_SET(*this, FIX::DiscretionInst);
  118. FIELD_SET(*this, FIX::DiscretionOffset);
  119. FIELD_SET(*this, FIX::CancellationRights);
  120. FIELD_SET(*this, FIX::MoneyLaunderingStatus);
  121. FIELD_SET(*this, FIX::RegistID);
  122. FIELD_SET(*this, FIX::Designation);
  123. FIELD_SET(*this, FIX::AccruedInterestRate);
  124. FIELD_SET(*this, FIX::AccruedInterestAmt);
  125. FIELD_SET(*this, FIX::NetMoney);
  126. FIELD_SET(*this, FIX::NoSides);
  127. class NoSides: public FIX::Group
  128. {
  129. public:
  130. NoSides() : FIX::Group(552,54,FIX::message_order(54,41,11,526,583,586,453,229,1,581,589,590,591,78,465,38,152,516,468,469,12,13,479,497,528,529,582,121,120,58,354,355,77,203,544,635,377,659,0)) {}
  131. FIELD_SET(*this, FIX::Side);
  132. FIELD_SET(*this, FIX::OrigClOrdID);
  133. FIELD_SET(*this, FIX::ClOrdID);
  134. FIELD_SET(*this, FIX::SecondaryClOrdID);
  135. FIELD_SET(*this, FIX::ClOrdLinkID);
  136. FIELD_SET(*this, FIX::OrigOrdModTime);
  137. FIELD_SET(*this, FIX::NoPartyIDs);
  138. class NoPartyIDs: public FIX::Group
  139. {
  140. public:
  141. NoPartyIDs() : FIX::Group(453,448,FIX::message_order(448,447,452,523,0)) {}
  142. FIELD_SET(*this, FIX::PartyID);
  143. FIELD_SET(*this, FIX::PartyIDSource);
  144. FIELD_SET(*this, FIX::PartyRole);
  145. FIELD_SET(*this, FIX::PartySubID);
  146. };
  147. FIELD_SET(*this, FIX::TradeOriginationDate);
  148. FIELD_SET(*this, FIX::Account);
  149. FIELD_SET(*this, FIX::AccountType);
  150. FIELD_SET(*this, FIX::DayBookingInst);
  151. FIELD_SET(*this, FIX::BookingUnit);
  152. FIELD_SET(*this, FIX::PreallocMethod);
  153. FIELD_SET(*this, FIX::QuantityType);
  154. FIELD_SET(*this, FIX::OrderQty);
  155. FIELD_SET(*this, FIX::CashOrderQty);
  156. FIELD_SET(*this, FIX::OrderPercent);
  157. FIELD_SET(*this, FIX::RoundingDirection);
  158. FIELD_SET(*this, FIX::RoundingModulus);
  159. FIELD_SET(*this, FIX::Commission);
  160. FIELD_SET(*this, FIX::CommType);
  161. FIELD_SET(*this, FIX::CommCurrency);
  162. FIELD_SET(*this, FIX::FundRenewWaiv);
  163. FIELD_SET(*this, FIX::OrderCapacity);
  164. FIELD_SET(*this, FIX::OrderRestrictions);
  165. FIELD_SET(*this, FIX::CustOrderCapacity);
  166. FIELD_SET(*this, FIX::ForexReq);
  167. FIELD_SET(*this, FIX::SettlCurrency);
  168. FIELD_SET(*this, FIX::Text);
  169. FIELD_SET(*this, FIX::EncodedTextLen);
  170. FIELD_SET(*this, FIX::EncodedText);
  171. FIELD_SET(*this, FIX::PositionEffect);
  172. FIELD_SET(*this, FIX::CoveredOrUncovered);
  173. FIELD_SET(*this, FIX::CashMargin);
  174. FIELD_SET(*this, FIX::ClearingFeeIndicator);
  175. FIELD_SET(*this, FIX::SolicitedFlag);
  176. FIELD_SET(*this, FIX::SideComplianceID);
  177. FIELD_SET(*this, FIX::NoAllocs);
  178. class NoAllocs: public FIX::Group
  179. {
  180. public:
  181. NoAllocs() : FIX::Group(78,79,FIX::message_order(79,467,539,80,0)) {}
  182. FIELD_SET(*this, FIX::AllocAccount);
  183. FIELD_SET(*this, FIX::IndividualAllocID);
  184. FIELD_SET(*this, FIX::NoNestedPartyIDs);
  185. class NoNestedPartyIDs: public FIX::Group
  186. {
  187. public:
  188. NoNestedPartyIDs() : FIX::Group(539,524,FIX::message_order(524,525,538,545,0)) {}
  189. FIELD_SET(*this, FIX::NestedPartyID);
  190. FIELD_SET(*this, FIX::NestedPartyIDSource);
  191. FIELD_SET(*this, FIX::NestedPartyRole);
  192. FIELD_SET(*this, FIX::NestedPartySubID);
  193. };
  194. FIELD_SET(*this, FIX::AllocQty);
  195. };
  196. };
  197. FIELD_SET(*this, FIX::NoTradingSessions);
  198. class NoTradingSessions: public FIX::Group
  199. {
  200. public:
  201. NoTradingSessions() : FIX::Group(386,336,FIX::message_order(336,625,0)) {}
  202. FIELD_SET(*this, FIX::TradingSessionID);
  203. FIELD_SET(*this, FIX::TradingSessionSubID);
  204. };
  205. };
  206. }
  207. #endif