MultilegOrderCancelReplaceRequest.h 9.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239
  1. #ifndef FIX43_MULTILEGORDERCANCELREPLACEREQUEST_H
  2. #define FIX43_MULTILEGORDERCANCELREPLACEREQUEST_H
  3. #include "Message.h"
  4. namespace FIX43
  5. {
  6. class MultilegOrderCancelReplaceRequest : public Message
  7. {
  8. public:
  9. MultilegOrderCancelReplaceRequest() : Message(MsgType()) {}
  10. MultilegOrderCancelReplaceRequest(const FIX::Message& m) : Message(m) {}
  11. MultilegOrderCancelReplaceRequest(const Message& m) : Message(m) {}
  12. MultilegOrderCancelReplaceRequest(const MultilegOrderCancelReplaceRequest& m) : Message(m) {}
  13. static FIX::MsgType MsgType() { return FIX::MsgType("AC"); }
  14. MultilegOrderCancelReplaceRequest(
  15. const FIX::OrigClOrdID& aOrigClOrdID,
  16. const FIX::ClOrdID& aClOrdID,
  17. const FIX::HandlInst& aHandlInst,
  18. const FIX::Side& aSide,
  19. const FIX::TransactTime& aTransactTime,
  20. const FIX::OrdType& aOrdType )
  21. : Message(MsgType())
  22. {
  23. set(aOrigClOrdID);
  24. set(aClOrdID);
  25. set(aHandlInst);
  26. set(aSide);
  27. set(aTransactTime);
  28. set(aOrdType);
  29. }
  30. FIELD_SET(*this, FIX::OrderID);
  31. FIELD_SET(*this, FIX::OrigClOrdID);
  32. FIELD_SET(*this, FIX::ClOrdID);
  33. FIELD_SET(*this, FIX::SecondaryClOrdID);
  34. FIELD_SET(*this, FIX::ClOrdLinkID);
  35. FIELD_SET(*this, FIX::OrigOrdModTime);
  36. FIELD_SET(*this, FIX::NoPartyIDs);
  37. class NoPartyIDs: public FIX::Group
  38. {
  39. public:
  40. NoPartyIDs() : FIX::Group(453,448,FIX::message_order(448,447,452,523,0)) {}
  41. FIELD_SET(*this, FIX::PartyID);
  42. FIELD_SET(*this, FIX::PartyIDSource);
  43. FIELD_SET(*this, FIX::PartyRole);
  44. FIELD_SET(*this, FIX::PartySubID);
  45. };
  46. FIELD_SET(*this, FIX::Account);
  47. FIELD_SET(*this, FIX::AccountType);
  48. FIELD_SET(*this, FIX::DayBookingInst);
  49. FIELD_SET(*this, FIX::BookingUnit);
  50. FIELD_SET(*this, FIX::PreallocMethod);
  51. FIELD_SET(*this, FIX::SettlmntTyp);
  52. FIELD_SET(*this, FIX::FutSettDate);
  53. FIELD_SET(*this, FIX::CashMargin);
  54. FIELD_SET(*this, FIX::ClearingFeeIndicator);
  55. FIELD_SET(*this, FIX::HandlInst);
  56. FIELD_SET(*this, FIX::ExecInst);
  57. FIELD_SET(*this, FIX::MinQty);
  58. FIELD_SET(*this, FIX::MaxFloor);
  59. FIELD_SET(*this, FIX::ExDestination);
  60. FIELD_SET(*this, FIX::ProcessCode);
  61. FIELD_SET(*this, FIX::Side);
  62. FIELD_SET(*this, FIX::Symbol);
  63. FIELD_SET(*this, FIX::SymbolSfx);
  64. FIELD_SET(*this, FIX::SecurityID);
  65. FIELD_SET(*this, FIX::SecurityIDSource);
  66. FIELD_SET(*this, FIX::Product);
  67. FIELD_SET(*this, FIX::CFICode);
  68. FIELD_SET(*this, FIX::SecurityType);
  69. FIELD_SET(*this, FIX::MaturityMonthYear);
  70. FIELD_SET(*this, FIX::MaturityDate);
  71. FIELD_SET(*this, FIX::CouponPaymentDate);
  72. FIELD_SET(*this, FIX::IssueDate);
  73. FIELD_SET(*this, FIX::RepoCollateralSecurityType);
  74. FIELD_SET(*this, FIX::RepurchaseTerm);
  75. FIELD_SET(*this, FIX::RepurchaseRate);
  76. FIELD_SET(*this, FIX::Factor);
  77. FIELD_SET(*this, FIX::CreditRating);
  78. FIELD_SET(*this, FIX::InstrRegistry);
  79. FIELD_SET(*this, FIX::CountryOfIssue);
  80. FIELD_SET(*this, FIX::StateOrProvinceOfIssue);
  81. FIELD_SET(*this, FIX::LocaleOfIssue);
  82. FIELD_SET(*this, FIX::RedemptionDate);
  83. FIELD_SET(*this, FIX::StrikePrice);
  84. FIELD_SET(*this, FIX::OptAttribute);
  85. FIELD_SET(*this, FIX::ContractMultiplier);
  86. FIELD_SET(*this, FIX::CouponRate);
  87. FIELD_SET(*this, FIX::SecurityExchange);
  88. FIELD_SET(*this, FIX::Issuer);
  89. FIELD_SET(*this, FIX::EncodedIssuerLen);
  90. FIELD_SET(*this, FIX::EncodedIssuer);
  91. FIELD_SET(*this, FIX::SecurityDesc);
  92. FIELD_SET(*this, FIX::EncodedSecurityDescLen);
  93. FIELD_SET(*this, FIX::EncodedSecurityDesc);
  94. FIELD_SET(*this, FIX::NoSecurityAltID);
  95. class NoSecurityAltID: public FIX::Group
  96. {
  97. public:
  98. NoSecurityAltID() : FIX::Group(454,455,FIX::message_order(455,456,0)) {}
  99. FIELD_SET(*this, FIX::SecurityAltID);
  100. FIELD_SET(*this, FIX::SecurityAltIDSource);
  101. };
  102. FIELD_SET(*this, FIX::PrevClosePx);
  103. FIELD_SET(*this, FIX::LocateReqd);
  104. FIELD_SET(*this, FIX::TransactTime);
  105. FIELD_SET(*this, FIX::QuantityType);
  106. FIELD_SET(*this, FIX::OrderQty);
  107. FIELD_SET(*this, FIX::CashOrderQty);
  108. FIELD_SET(*this, FIX::OrderPercent);
  109. FIELD_SET(*this, FIX::RoundingDirection);
  110. FIELD_SET(*this, FIX::RoundingModulus);
  111. FIELD_SET(*this, FIX::OrdType);
  112. FIELD_SET(*this, FIX::PriceType);
  113. FIELD_SET(*this, FIX::Price);
  114. FIELD_SET(*this, FIX::StopPx);
  115. FIELD_SET(*this, FIX::Currency);
  116. FIELD_SET(*this, FIX::ComplianceID);
  117. FIELD_SET(*this, FIX::SolicitedFlag);
  118. FIELD_SET(*this, FIX::IOIid);
  119. FIELD_SET(*this, FIX::QuoteID);
  120. FIELD_SET(*this, FIX::TimeInForce);
  121. FIELD_SET(*this, FIX::EffectiveTime);
  122. FIELD_SET(*this, FIX::ExpireDate);
  123. FIELD_SET(*this, FIX::ExpireTime);
  124. FIELD_SET(*this, FIX::GTBookingInst);
  125. FIELD_SET(*this, FIX::Commission);
  126. FIELD_SET(*this, FIX::CommType);
  127. FIELD_SET(*this, FIX::CommCurrency);
  128. FIELD_SET(*this, FIX::FundRenewWaiv);
  129. FIELD_SET(*this, FIX::OrderCapacity);
  130. FIELD_SET(*this, FIX::OrderRestrictions);
  131. FIELD_SET(*this, FIX::CustOrderCapacity);
  132. FIELD_SET(*this, FIX::ForexReq);
  133. FIELD_SET(*this, FIX::SettlCurrency);
  134. FIELD_SET(*this, FIX::Text);
  135. FIELD_SET(*this, FIX::EncodedTextLen);
  136. FIELD_SET(*this, FIX::EncodedText);
  137. FIELD_SET(*this, FIX::PositionEffect);
  138. FIELD_SET(*this, FIX::CoveredOrUncovered);
  139. FIELD_SET(*this, FIX::MaxShow);
  140. FIELD_SET(*this, FIX::PegDifference);
  141. FIELD_SET(*this, FIX::DiscretionInst);
  142. FIELD_SET(*this, FIX::DiscretionOffset);
  143. FIELD_SET(*this, FIX::CancellationRights);
  144. FIELD_SET(*this, FIX::MoneyLaunderingStatus);
  145. FIELD_SET(*this, FIX::RegistID);
  146. FIELD_SET(*this, FIX::Designation);
  147. FIELD_SET(*this, FIX::MultiLegRptTypeReq);
  148. FIELD_SET(*this, FIX::NetMoney);
  149. FIELD_SET(*this, FIX::NoAllocs);
  150. class NoAllocs: public FIX::Group
  151. {
  152. public:
  153. NoAllocs() : FIX::Group(78,79,FIX::message_order(79,467,80,0)) {}
  154. FIELD_SET(*this, FIX::AllocAccount);
  155. FIELD_SET(*this, FIX::IndividualAllocID);
  156. FIELD_SET(*this, FIX::AllocQty);
  157. };
  158. FIELD_SET(*this, FIX::NoTradingSessions);
  159. class NoTradingSessions: public FIX::Group
  160. {
  161. public:
  162. NoTradingSessions() : FIX::Group(386,336,FIX::message_order(336,625,0)) {}
  163. FIELD_SET(*this, FIX::TradingSessionID);
  164. FIELD_SET(*this, FIX::TradingSessionSubID);
  165. };
  166. FIELD_SET(*this, FIX::NoLegs);
  167. class NoLegs: public FIX::Group
  168. {
  169. public:
  170. NoLegs() : FIX::Group(555,600,FIX::message_order(600,601,602,603,604,607,608,609,610,611,248,249,250,251,252,253,257,599,596,597,598,254,612,613,614,615,616,617,618,619,620,621,622,623,624,564,565,539,654,566,587,588,0)) {}
  171. FIELD_SET(*this, FIX::LegSymbol);
  172. FIELD_SET(*this, FIX::LegSymbolSfx);
  173. FIELD_SET(*this, FIX::LegSecurityID);
  174. FIELD_SET(*this, FIX::LegSecurityIDSource);
  175. FIELD_SET(*this, FIX::LegProduct);
  176. FIELD_SET(*this, FIX::LegCFICode);
  177. FIELD_SET(*this, FIX::LegSecurityType);
  178. FIELD_SET(*this, FIX::LegMaturityMonthYear);
  179. FIELD_SET(*this, FIX::LegMaturityDate);
  180. FIELD_SET(*this, FIX::LegCouponPaymentDate);
  181. FIELD_SET(*this, FIX::LegIssueDate);
  182. FIELD_SET(*this, FIX::LegRepoCollateralSecurityType);
  183. FIELD_SET(*this, FIX::LegRepurchaseTerm);
  184. FIELD_SET(*this, FIX::LegRepurchaseRate);
  185. FIELD_SET(*this, FIX::LegFactor);
  186. FIELD_SET(*this, FIX::LegCreditRating);
  187. FIELD_SET(*this, FIX::LegInstrRegistry);
  188. FIELD_SET(*this, FIX::LegCountryOfIssue);
  189. FIELD_SET(*this, FIX::LegStateOrProvinceOfIssue);
  190. FIELD_SET(*this, FIX::LegLocaleOfIssue);
  191. FIELD_SET(*this, FIX::LegRedemptionDate);
  192. FIELD_SET(*this, FIX::LegStrikePrice);
  193. FIELD_SET(*this, FIX::LegOptAttribute);
  194. FIELD_SET(*this, FIX::LegContractMultiplier);
  195. FIELD_SET(*this, FIX::LegCouponRate);
  196. FIELD_SET(*this, FIX::LegSecurityExchange);
  197. FIELD_SET(*this, FIX::LegIssuer);
  198. FIELD_SET(*this, FIX::EncodedLegIssuerLen);
  199. FIELD_SET(*this, FIX::EncodedLegIssuer);
  200. FIELD_SET(*this, FIX::LegSecurityDesc);
  201. FIELD_SET(*this, FIX::EncodedLegSecurityDescLen);
  202. FIELD_SET(*this, FIX::EncodedLegSecurityDesc);
  203. FIELD_SET(*this, FIX::LegRatioQty);
  204. FIELD_SET(*this, FIX::LegSide);
  205. FIELD_SET(*this, FIX::NoLegSecurityAltID);
  206. class NoLegSecurityAltID: public FIX::Group
  207. {
  208. public:
  209. NoLegSecurityAltID() : FIX::Group(604,605,FIX::message_order(605,606,0)) {}
  210. FIELD_SET(*this, FIX::LegSecurityAltID);
  211. FIELD_SET(*this, FIX::LegSecurityAltIDSource);
  212. };
  213. FIELD_SET(*this, FIX::LegPositionEffect);
  214. FIELD_SET(*this, FIX::LegCoveredOrUncovered);
  215. FIELD_SET(*this, FIX::NoNestedPartyIDs);
  216. class NoNestedPartyIDs: public FIX::Group
  217. {
  218. public:
  219. NoNestedPartyIDs() : FIX::Group(539,524,FIX::message_order(524,525,538,545,0)) {}
  220. FIELD_SET(*this, FIX::NestedPartyID);
  221. FIELD_SET(*this, FIX::NestedPartyIDSource);
  222. FIELD_SET(*this, FIX::NestedPartyRole);
  223. FIELD_SET(*this, FIX::NestedPartySubID);
  224. };
  225. FIELD_SET(*this, FIX::LegRefID);
  226. FIELD_SET(*this, FIX::LegPrice);
  227. FIELD_SET(*this, FIX::LegSettlmntTyp);
  228. FIELD_SET(*this, FIX::LegFutSettDate);
  229. };
  230. };
  231. }
  232. #endif