CrossOrderCancelReplaceRequest.h 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347
  1. #ifndef FIX44_CROSSORDERCANCELREPLACEREQUEST_H
  2. #define FIX44_CROSSORDERCANCELREPLACEREQUEST_H
  3. #include "Message.h"
  4. namespace FIX44
  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::TransactTime& aTransactTime,
  20. const FIX::OrdType& aOrdType )
  21. : Message(MsgType())
  22. {
  23. set(aCrossID);
  24. set(aOrigCrossID);
  25. set(aCrossType);
  26. set(aCrossPrioritization);
  27. set(aTransactTime);
  28. set(aOrdType);
  29. }
  30. FIELD_SET(*this, FIX::OrderID);
  31. FIELD_SET(*this, FIX::CrossID);
  32. FIELD_SET(*this, FIX::OrigCrossID);
  33. FIELD_SET(*this, FIX::CrossType);
  34. FIELD_SET(*this, FIX::CrossPrioritization);
  35. FIELD_SET(*this, FIX::NoSides);
  36. class NoSides: public FIX::Group
  37. {
  38. public:
  39. NoSides() : FIX::Group(552,54,FIX::message_order(54,11,526,583,453,229,75,1,660,581,589,590,591,70,78,854,38,152,516,468,469,12,13,479,497,528,529,582,121,120,775,58,354,355,77,203,544,635,377,659,0)) {}
  40. FIELD_SET(*this, FIX::Side);
  41. FIELD_SET(*this, FIX::ClOrdID);
  42. FIELD_SET(*this, FIX::SecondaryClOrdID);
  43. FIELD_SET(*this, FIX::ClOrdLinkID);
  44. FIELD_SET(*this, FIX::NoPartyIDs);
  45. class NoPartyIDs: public FIX::Group
  46. {
  47. public:
  48. NoPartyIDs() : FIX::Group(453,448,FIX::message_order(448,447,452,802,0)) {}
  49. FIELD_SET(*this, FIX::PartyID);
  50. FIELD_SET(*this, FIX::PartyIDSource);
  51. FIELD_SET(*this, FIX::PartyRole);
  52. FIELD_SET(*this, FIX::NoPartySubIDs);
  53. class NoPartySubIDs: public FIX::Group
  54. {
  55. public:
  56. NoPartySubIDs() : FIX::Group(802,523,FIX::message_order(523,803,0)) {}
  57. FIELD_SET(*this, FIX::PartySubID);
  58. FIELD_SET(*this, FIX::PartySubIDType);
  59. };
  60. };
  61. FIELD_SET(*this, FIX::TradeOriginationDate);
  62. FIELD_SET(*this, FIX::TradeDate);
  63. FIELD_SET(*this, FIX::Account);
  64. FIELD_SET(*this, FIX::AcctIDSource);
  65. FIELD_SET(*this, FIX::AccountType);
  66. FIELD_SET(*this, FIX::DayBookingInst);
  67. FIELD_SET(*this, FIX::BookingUnit);
  68. FIELD_SET(*this, FIX::PreallocMethod);
  69. FIELD_SET(*this, FIX::AllocID);
  70. FIELD_SET(*this, FIX::NoAllocs);
  71. class NoAllocs: public FIX::Group
  72. {
  73. public:
  74. NoAllocs() : FIX::Group(78,79,FIX::message_order(79,661,736,467,539,80,0)) {}
  75. FIELD_SET(*this, FIX::AllocAccount);
  76. FIELD_SET(*this, FIX::AllocAcctIDSource);
  77. FIELD_SET(*this, FIX::AllocSettlCurrency);
  78. FIELD_SET(*this, FIX::IndividualAllocID);
  79. FIELD_SET(*this, FIX::NoNestedPartyIDs);
  80. class NoNestedPartyIDs: public FIX::Group
  81. {
  82. public:
  83. NoNestedPartyIDs() : FIX::Group(539,524,FIX::message_order(524,525,538,804,0)) {}
  84. FIELD_SET(*this, FIX::NestedPartyID);
  85. FIELD_SET(*this, FIX::NestedPartyIDSource);
  86. FIELD_SET(*this, FIX::NestedPartyRole);
  87. FIELD_SET(*this, FIX::NoNestedPartySubIDs);
  88. class NoNestedPartySubIDs: public FIX::Group
  89. {
  90. public:
  91. NoNestedPartySubIDs() : FIX::Group(804,545,FIX::message_order(545,805,0)) {}
  92. FIELD_SET(*this, FIX::NestedPartySubID);
  93. FIELD_SET(*this, FIX::NestedPartySubIDType);
  94. };
  95. };
  96. FIELD_SET(*this, FIX::AllocQty);
  97. };
  98. FIELD_SET(*this, FIX::QtyType);
  99. FIELD_SET(*this, FIX::OrderQty);
  100. FIELD_SET(*this, FIX::CashOrderQty);
  101. FIELD_SET(*this, FIX::OrderPercent);
  102. FIELD_SET(*this, FIX::RoundingDirection);
  103. FIELD_SET(*this, FIX::RoundingModulus);
  104. FIELD_SET(*this, FIX::Commission);
  105. FIELD_SET(*this, FIX::CommType);
  106. FIELD_SET(*this, FIX::CommCurrency);
  107. FIELD_SET(*this, FIX::FundRenewWaiv);
  108. FIELD_SET(*this, FIX::OrderCapacity);
  109. FIELD_SET(*this, FIX::OrderRestrictions);
  110. FIELD_SET(*this, FIX::CustOrderCapacity);
  111. FIELD_SET(*this, FIX::ForexReq);
  112. FIELD_SET(*this, FIX::SettlCurrency);
  113. FIELD_SET(*this, FIX::BookingType);
  114. FIELD_SET(*this, FIX::Text);
  115. FIELD_SET(*this, FIX::EncodedTextLen);
  116. FIELD_SET(*this, FIX::EncodedText);
  117. FIELD_SET(*this, FIX::PositionEffect);
  118. FIELD_SET(*this, FIX::CoveredOrUncovered);
  119. FIELD_SET(*this, FIX::CashMargin);
  120. FIELD_SET(*this, FIX::ClearingFeeIndicator);
  121. FIELD_SET(*this, FIX::SolicitedFlag);
  122. FIELD_SET(*this, FIX::SideComplianceID);
  123. };
  124. FIELD_SET(*this, FIX::Symbol);
  125. FIELD_SET(*this, FIX::SymbolSfx);
  126. FIELD_SET(*this, FIX::SecurityID);
  127. FIELD_SET(*this, FIX::SecurityIDSource);
  128. FIELD_SET(*this, FIX::Product);
  129. FIELD_SET(*this, FIX::CFICode);
  130. FIELD_SET(*this, FIX::SecurityType);
  131. FIELD_SET(*this, FIX::SecuritySubType);
  132. FIELD_SET(*this, FIX::MaturityMonthYear);
  133. FIELD_SET(*this, FIX::MaturityDate);
  134. FIELD_SET(*this, FIX::PutOrCall);
  135. FIELD_SET(*this, FIX::CouponPaymentDate);
  136. FIELD_SET(*this, FIX::IssueDate);
  137. FIELD_SET(*this, FIX::RepoCollateralSecurityType);
  138. FIELD_SET(*this, FIX::RepurchaseTerm);
  139. FIELD_SET(*this, FIX::RepurchaseRate);
  140. FIELD_SET(*this, FIX::Factor);
  141. FIELD_SET(*this, FIX::CreditRating);
  142. FIELD_SET(*this, FIX::InstrRegistry);
  143. FIELD_SET(*this, FIX::CountryOfIssue);
  144. FIELD_SET(*this, FIX::StateOrProvinceOfIssue);
  145. FIELD_SET(*this, FIX::LocaleOfIssue);
  146. FIELD_SET(*this, FIX::RedemptionDate);
  147. FIELD_SET(*this, FIX::StrikePrice);
  148. FIELD_SET(*this, FIX::StrikeCurrency);
  149. FIELD_SET(*this, FIX::OptAttribute);
  150. FIELD_SET(*this, FIX::ContractMultiplier);
  151. FIELD_SET(*this, FIX::CouponRate);
  152. FIELD_SET(*this, FIX::SecurityExchange);
  153. FIELD_SET(*this, FIX::Issuer);
  154. FIELD_SET(*this, FIX::EncodedIssuerLen);
  155. FIELD_SET(*this, FIX::EncodedIssuer);
  156. FIELD_SET(*this, FIX::SecurityDesc);
  157. FIELD_SET(*this, FIX::EncodedSecurityDescLen);
  158. FIELD_SET(*this, FIX::EncodedSecurityDesc);
  159. FIELD_SET(*this, FIX::Pool);
  160. FIELD_SET(*this, FIX::ContractSettlMonth);
  161. FIELD_SET(*this, FIX::CPProgram);
  162. FIELD_SET(*this, FIX::CPRegType);
  163. FIELD_SET(*this, FIX::DatedDate);
  164. FIELD_SET(*this, FIX::InterestAccrualDate);
  165. FIELD_SET(*this, FIX::NoUnderlyings);
  166. class NoUnderlyings: public FIX::Group
  167. {
  168. public:
  169. NoUnderlyings() : FIX::Group(711,311,FIX::message_order(311,312,309,305,462,463,310,763,313,542,315,241,242,243,244,245,246,256,595,592,593,594,247,316,941,317,436,435,308,306,362,363,307,364,365,877,878,318,879,810,882,883,884,885,886,0)) {}
  170. FIELD_SET(*this, FIX::UnderlyingSymbol);
  171. FIELD_SET(*this, FIX::UnderlyingSymbolSfx);
  172. FIELD_SET(*this, FIX::UnderlyingSecurityID);
  173. FIELD_SET(*this, FIX::UnderlyingSecurityIDSource);
  174. FIELD_SET(*this, FIX::UnderlyingProduct);
  175. FIELD_SET(*this, FIX::UnderlyingCFICode);
  176. FIELD_SET(*this, FIX::UnderlyingSecurityType);
  177. FIELD_SET(*this, FIX::UnderlyingSecuritySubType);
  178. FIELD_SET(*this, FIX::UnderlyingMaturityMonthYear);
  179. FIELD_SET(*this, FIX::UnderlyingMaturityDate);
  180. FIELD_SET(*this, FIX::UnderlyingPutOrCall);
  181. FIELD_SET(*this, FIX::UnderlyingCouponPaymentDate);
  182. FIELD_SET(*this, FIX::UnderlyingIssueDate);
  183. FIELD_SET(*this, FIX::UnderlyingRepoCollateralSecurityType);
  184. FIELD_SET(*this, FIX::UnderlyingRepurchaseTerm);
  185. FIELD_SET(*this, FIX::UnderlyingRepurchaseRate);
  186. FIELD_SET(*this, FIX::UnderlyingFactor);
  187. FIELD_SET(*this, FIX::UnderlyingCreditRating);
  188. FIELD_SET(*this, FIX::UnderlyingInstrRegistry);
  189. FIELD_SET(*this, FIX::UnderlyingCountryOfIssue);
  190. FIELD_SET(*this, FIX::UnderlyingStateOrProvinceOfIssue);
  191. FIELD_SET(*this, FIX::UnderlyingLocaleOfIssue);
  192. FIELD_SET(*this, FIX::UnderlyingRedemptionDate);
  193. FIELD_SET(*this, FIX::UnderlyingStrikePrice);
  194. FIELD_SET(*this, FIX::UnderlyingStrikeCurrency);
  195. FIELD_SET(*this, FIX::UnderlyingOptAttribute);
  196. FIELD_SET(*this, FIX::UnderlyingContractMultiplier);
  197. FIELD_SET(*this, FIX::UnderlyingCouponRate);
  198. FIELD_SET(*this, FIX::UnderlyingSecurityExchange);
  199. FIELD_SET(*this, FIX::UnderlyingIssuer);
  200. FIELD_SET(*this, FIX::EncodedUnderlyingIssuerLen);
  201. FIELD_SET(*this, FIX::EncodedUnderlyingIssuer);
  202. FIELD_SET(*this, FIX::UnderlyingSecurityDesc);
  203. FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDescLen);
  204. FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDesc);
  205. FIELD_SET(*this, FIX::UnderlyingCPProgram);
  206. FIELD_SET(*this, FIX::UnderlyingCPRegType);
  207. FIELD_SET(*this, FIX::UnderlyingCurrency);
  208. FIELD_SET(*this, FIX::UnderlyingQty);
  209. FIELD_SET(*this, FIX::UnderlyingPx);
  210. FIELD_SET(*this, FIX::UnderlyingDirtyPrice);
  211. FIELD_SET(*this, FIX::UnderlyingEndPrice);
  212. FIELD_SET(*this, FIX::UnderlyingStartValue);
  213. FIELD_SET(*this, FIX::UnderlyingCurrentValue);
  214. FIELD_SET(*this, FIX::UnderlyingEndValue);
  215. };
  216. FIELD_SET(*this, FIX::NoLegs);
  217. class NoLegs: public FIX::Group
  218. {
  219. public:
  220. NoLegs() : FIX::Group(555,600,FIX::message_order(600,601,602,603,607,608,609,764,610,611,248,249,250,251,252,253,257,599,596,597,598,254,612,942,613,614,615,616,617,618,619,620,621,622,623,624,556,740,739,955,956,0)) {}
  221. FIELD_SET(*this, FIX::LegSymbol);
  222. FIELD_SET(*this, FIX::LegSymbolSfx);
  223. FIELD_SET(*this, FIX::LegSecurityID);
  224. FIELD_SET(*this, FIX::LegSecurityIDSource);
  225. FIELD_SET(*this, FIX::LegProduct);
  226. FIELD_SET(*this, FIX::LegCFICode);
  227. FIELD_SET(*this, FIX::LegSecurityType);
  228. FIELD_SET(*this, FIX::LegSecuritySubType);
  229. FIELD_SET(*this, FIX::LegMaturityMonthYear);
  230. FIELD_SET(*this, FIX::LegMaturityDate);
  231. FIELD_SET(*this, FIX::LegCouponPaymentDate);
  232. FIELD_SET(*this, FIX::LegIssueDate);
  233. FIELD_SET(*this, FIX::LegRepoCollateralSecurityType);
  234. FIELD_SET(*this, FIX::LegRepurchaseTerm);
  235. FIELD_SET(*this, FIX::LegRepurchaseRate);
  236. FIELD_SET(*this, FIX::LegFactor);
  237. FIELD_SET(*this, FIX::LegCreditRating);
  238. FIELD_SET(*this, FIX::LegInstrRegistry);
  239. FIELD_SET(*this, FIX::LegCountryOfIssue);
  240. FIELD_SET(*this, FIX::LegStateOrProvinceOfIssue);
  241. FIELD_SET(*this, FIX::LegLocaleOfIssue);
  242. FIELD_SET(*this, FIX::LegRedemptionDate);
  243. FIELD_SET(*this, FIX::LegStrikePrice);
  244. FIELD_SET(*this, FIX::LegStrikeCurrency);
  245. FIELD_SET(*this, FIX::LegOptAttribute);
  246. FIELD_SET(*this, FIX::LegContractMultiplier);
  247. FIELD_SET(*this, FIX::LegCouponRate);
  248. FIELD_SET(*this, FIX::LegSecurityExchange);
  249. FIELD_SET(*this, FIX::LegIssuer);
  250. FIELD_SET(*this, FIX::EncodedLegIssuerLen);
  251. FIELD_SET(*this, FIX::EncodedLegIssuer);
  252. FIELD_SET(*this, FIX::LegSecurityDesc);
  253. FIELD_SET(*this, FIX::EncodedLegSecurityDescLen);
  254. FIELD_SET(*this, FIX::EncodedLegSecurityDesc);
  255. FIELD_SET(*this, FIX::LegRatioQty);
  256. FIELD_SET(*this, FIX::LegSide);
  257. FIELD_SET(*this, FIX::LegCurrency);
  258. FIELD_SET(*this, FIX::LegPool);
  259. FIELD_SET(*this, FIX::LegDatedDate);
  260. FIELD_SET(*this, FIX::LegContractSettlMonth);
  261. FIELD_SET(*this, FIX::LegInterestAccrualDate);
  262. };
  263. FIELD_SET(*this, FIX::SettlType);
  264. FIELD_SET(*this, FIX::SettlDate);
  265. FIELD_SET(*this, FIX::HandlInst);
  266. FIELD_SET(*this, FIX::ExecInst);
  267. FIELD_SET(*this, FIX::MinQty);
  268. FIELD_SET(*this, FIX::MaxFloor);
  269. FIELD_SET(*this, FIX::ExDestination);
  270. FIELD_SET(*this, FIX::NoTradingSessions);
  271. class NoTradingSessions: public FIX::Group
  272. {
  273. public:
  274. NoTradingSessions() : FIX::Group(386,336,FIX::message_order(336,625,0)) {}
  275. FIELD_SET(*this, FIX::TradingSessionID);
  276. FIELD_SET(*this, FIX::TradingSessionSubID);
  277. };
  278. FIELD_SET(*this, FIX::ProcessCode);
  279. FIELD_SET(*this, FIX::PrevClosePx);
  280. FIELD_SET(*this, FIX::LocateReqd);
  281. FIELD_SET(*this, FIX::TransactTime);
  282. FIELD_SET(*this, FIX::NoStipulations);
  283. class NoStipulations: public FIX::Group
  284. {
  285. public:
  286. NoStipulations() : FIX::Group(232,233,FIX::message_order(233,234,0)) {}
  287. FIELD_SET(*this, FIX::StipulationType);
  288. FIELD_SET(*this, FIX::StipulationValue);
  289. };
  290. FIELD_SET(*this, FIX::OrdType);
  291. FIELD_SET(*this, FIX::PriceType);
  292. FIELD_SET(*this, FIX::Price);
  293. FIELD_SET(*this, FIX::StopPx);
  294. FIELD_SET(*this, FIX::Spread);
  295. FIELD_SET(*this, FIX::BenchmarkCurveCurrency);
  296. FIELD_SET(*this, FIX::BenchmarkCurveName);
  297. FIELD_SET(*this, FIX::BenchmarkCurvePoint);
  298. FIELD_SET(*this, FIX::BenchmarkPrice);
  299. FIELD_SET(*this, FIX::BenchmarkPriceType);
  300. FIELD_SET(*this, FIX::BenchmarkSecurityID);
  301. FIELD_SET(*this, FIX::BenchmarkSecurityIDSource);
  302. FIELD_SET(*this, FIX::YieldType);
  303. FIELD_SET(*this, FIX::Yield);
  304. FIELD_SET(*this, FIX::YieldCalcDate);
  305. FIELD_SET(*this, FIX::YieldRedemptionDate);
  306. FIELD_SET(*this, FIX::YieldRedemptionPrice);
  307. FIELD_SET(*this, FIX::YieldRedemptionPriceType);
  308. FIELD_SET(*this, FIX::Currency);
  309. FIELD_SET(*this, FIX::ComplianceID);
  310. FIELD_SET(*this, FIX::IOIID);
  311. FIELD_SET(*this, FIX::QuoteID);
  312. FIELD_SET(*this, FIX::TimeInForce);
  313. FIELD_SET(*this, FIX::EffectiveTime);
  314. FIELD_SET(*this, FIX::ExpireDate);
  315. FIELD_SET(*this, FIX::ExpireTime);
  316. FIELD_SET(*this, FIX::GTBookingInst);
  317. FIELD_SET(*this, FIX::MaxShow);
  318. FIELD_SET(*this, FIX::PegOffsetValue);
  319. FIELD_SET(*this, FIX::PegMoveType);
  320. FIELD_SET(*this, FIX::PegOffsetType);
  321. FIELD_SET(*this, FIX::PegLimitType);
  322. FIELD_SET(*this, FIX::PegRoundDirection);
  323. FIELD_SET(*this, FIX::PegScope);
  324. FIELD_SET(*this, FIX::DiscretionInst);
  325. FIELD_SET(*this, FIX::DiscretionOffsetValue);
  326. FIELD_SET(*this, FIX::DiscretionMoveType);
  327. FIELD_SET(*this, FIX::DiscretionOffsetType);
  328. FIELD_SET(*this, FIX::DiscretionLimitType);
  329. FIELD_SET(*this, FIX::DiscretionRoundDirection);
  330. FIELD_SET(*this, FIX::DiscretionScope);
  331. FIELD_SET(*this, FIX::TargetStrategy);
  332. FIELD_SET(*this, FIX::TargetStrategyParameters);
  333. FIELD_SET(*this, FIX::ParticipationRate);
  334. FIELD_SET(*this, FIX::CancellationRights);
  335. FIELD_SET(*this, FIX::MoneyLaunderingStatus);
  336. FIELD_SET(*this, FIX::RegistID);
  337. FIELD_SET(*this, FIX::Designation);
  338. };
  339. }
  340. #endif