TradeCaptureReport.h 29 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669
  1. #ifndef FIX50SP2_TRADECAPTUREREPORT_H
  2. #define FIX50SP2_TRADECAPTUREREPORT_H
  3. #include "Message.h"
  4. namespace FIX50SP2
  5. {
  6. class TradeCaptureReport : public Message
  7. {
  8. public:
  9. TradeCaptureReport() : Message(MsgType()) {}
  10. TradeCaptureReport(const FIX::Message& m) : Message(m) {}
  11. TradeCaptureReport(const Message& m) : Message(m) {}
  12. TradeCaptureReport(const TradeCaptureReport& m) : Message(m) {}
  13. static FIX::MsgType MsgType() { return FIX::MsgType("AE"); }
  14. TradeCaptureReport(
  15. const FIX::LastQty& aLastQty,
  16. const FIX::LastPx& aLastPx )
  17. : Message(MsgType())
  18. {
  19. set(aLastQty);
  20. set(aLastPx);
  21. }
  22. FIELD_SET(*this, FIX::ApplID);
  23. FIELD_SET(*this, FIX::ApplSeqNum);
  24. FIELD_SET(*this, FIX::ApplLastSeqNum);
  25. FIELD_SET(*this, FIX::ApplResendFlag);
  26. FIELD_SET(*this, FIX::TradeReportID);
  27. FIELD_SET(*this, FIX::TradeID);
  28. FIELD_SET(*this, FIX::SecondaryTradeID);
  29. FIELD_SET(*this, FIX::FirmTradeID);
  30. FIELD_SET(*this, FIX::SecondaryFirmTradeID);
  31. FIELD_SET(*this, FIX::TradeReportTransType);
  32. FIELD_SET(*this, FIX::TradeReportType);
  33. FIELD_SET(*this, FIX::TrdRptStatus);
  34. FIELD_SET(*this, FIX::TradeRequestID);
  35. FIELD_SET(*this, FIX::TrdType);
  36. FIELD_SET(*this, FIX::TrdSubType);
  37. FIELD_SET(*this, FIX::SecondaryTrdType);
  38. FIELD_SET(*this, FIX::TradeHandlingInstr);
  39. FIELD_SET(*this, FIX::OrigTradeHandlingInstr);
  40. FIELD_SET(*this, FIX::OrigTradeDate);
  41. FIELD_SET(*this, FIX::OrigTradeID);
  42. FIELD_SET(*this, FIX::OrigSecondaryTradeID);
  43. FIELD_SET(*this, FIX::TransferReason);
  44. FIELD_SET(*this, FIX::ExecType);
  45. FIELD_SET(*this, FIX::TotNumTradeReports);
  46. FIELD_SET(*this, FIX::LastRptRequested);
  47. FIELD_SET(*this, FIX::UnsolicitedIndicator);
  48. FIELD_SET(*this, FIX::SubscriptionRequestType);
  49. FIELD_SET(*this, FIX::TradeReportRefID);
  50. FIELD_SET(*this, FIX::SecondaryTradeReportRefID);
  51. FIELD_SET(*this, FIX::SecondaryTradeReportID);
  52. FIELD_SET(*this, FIX::TradeLinkID);
  53. FIELD_SET(*this, FIX::TrdMatchID);
  54. FIELD_SET(*this, FIX::ExecID);
  55. FIELD_SET(*this, FIX::SecondaryExecID);
  56. FIELD_SET(*this, FIX::ExecRestatementReason);
  57. FIELD_SET(*this, FIX::PreviouslyReported);
  58. FIELD_SET(*this, FIX::PriceType);
  59. FIELD_SET(*this, FIX::NoRootPartyIDs);
  60. class NoRootPartyIDs: public FIX::Group
  61. {
  62. public:
  63. NoRootPartyIDs() : FIX::Group(1116,1117,FIX::message_order(1117,1118,1119,1120,0)) {}
  64. FIELD_SET(*this, FIX::RootPartyID);
  65. FIELD_SET(*this, FIX::RootPartyIDSource);
  66. FIELD_SET(*this, FIX::RootPartyRole);
  67. FIELD_SET(*this, FIX::NoRootPartySubIDs);
  68. class NoRootPartySubIDs: public FIX::Group
  69. {
  70. public:
  71. NoRootPartySubIDs() : FIX::Group(1120,1121,FIX::message_order(1121,1122,0)) {}
  72. FIELD_SET(*this, FIX::RootPartySubID);
  73. FIELD_SET(*this, FIX::RootPartySubIDType);
  74. };
  75. };
  76. FIELD_SET(*this, FIX::AsOfIndicator);
  77. FIELD_SET(*this, FIX::SettlSessID);
  78. FIELD_SET(*this, FIX::SettlSessSubID);
  79. FIELD_SET(*this, FIX::Symbol);
  80. FIELD_SET(*this, FIX::SymbolSfx);
  81. FIELD_SET(*this, FIX::SecurityID);
  82. FIELD_SET(*this, FIX::SecurityIDSource);
  83. FIELD_SET(*this, FIX::Product);
  84. FIELD_SET(*this, FIX::ProductComplex);
  85. FIELD_SET(*this, FIX::SecurityGroup);
  86. FIELD_SET(*this, FIX::CFICode);
  87. FIELD_SET(*this, FIX::SecurityType);
  88. FIELD_SET(*this, FIX::SecuritySubType);
  89. FIELD_SET(*this, FIX::MaturityMonthYear);
  90. FIELD_SET(*this, FIX::MaturityDate);
  91. FIELD_SET(*this, FIX::MaturityTime);
  92. FIELD_SET(*this, FIX::SettleOnOpenFlag);
  93. FIELD_SET(*this, FIX::InstrmtAssignmentMethod);
  94. FIELD_SET(*this, FIX::SecurityStatus);
  95. FIELD_SET(*this, FIX::CouponPaymentDate);
  96. FIELD_SET(*this, FIX::IssueDate);
  97. FIELD_SET(*this, FIX::RepoCollateralSecurityType);
  98. FIELD_SET(*this, FIX::RepurchaseTerm);
  99. FIELD_SET(*this, FIX::RepurchaseRate);
  100. FIELD_SET(*this, FIX::Factor);
  101. FIELD_SET(*this, FIX::CreditRating);
  102. FIELD_SET(*this, FIX::InstrRegistry);
  103. FIELD_SET(*this, FIX::CountryOfIssue);
  104. FIELD_SET(*this, FIX::StateOrProvinceOfIssue);
  105. FIELD_SET(*this, FIX::LocaleOfIssue);
  106. FIELD_SET(*this, FIX::RedemptionDate);
  107. FIELD_SET(*this, FIX::StrikePrice);
  108. FIELD_SET(*this, FIX::StrikeCurrency);
  109. FIELD_SET(*this, FIX::StrikeMultiplier);
  110. FIELD_SET(*this, FIX::StrikeValue);
  111. FIELD_SET(*this, FIX::OptAttribute);
  112. FIELD_SET(*this, FIX::ContractMultiplier);
  113. FIELD_SET(*this, FIX::MinPriceIncrement);
  114. FIELD_SET(*this, FIX::MinPriceIncrementAmount);
  115. FIELD_SET(*this, FIX::UnitOfMeasure);
  116. FIELD_SET(*this, FIX::UnitOfMeasureQty);
  117. FIELD_SET(*this, FIX::PriceUnitOfMeasure);
  118. FIELD_SET(*this, FIX::PriceUnitOfMeasureQty);
  119. FIELD_SET(*this, FIX::SettlMethod);
  120. FIELD_SET(*this, FIX::ExerciseStyle);
  121. FIELD_SET(*this, FIX::OptPayoutAmount);
  122. FIELD_SET(*this, FIX::PriceQuoteMethod);
  123. FIELD_SET(*this, FIX::ValuationMethod);
  124. FIELD_SET(*this, FIX::ListMethod);
  125. FIELD_SET(*this, FIX::CapPrice);
  126. FIELD_SET(*this, FIX::FloorPrice);
  127. FIELD_SET(*this, FIX::PutOrCall);
  128. FIELD_SET(*this, FIX::FlexibleIndicator);
  129. FIELD_SET(*this, FIX::FlexProductEligibilityIndicator);
  130. FIELD_SET(*this, FIX::TimeUnit);
  131. FIELD_SET(*this, FIX::CouponRate);
  132. FIELD_SET(*this, FIX::SecurityExchange);
  133. FIELD_SET(*this, FIX::PositionLimit);
  134. FIELD_SET(*this, FIX::NTPositionLimit);
  135. FIELD_SET(*this, FIX::Issuer);
  136. FIELD_SET(*this, FIX::EncodedIssuerLen);
  137. FIELD_SET(*this, FIX::EncodedIssuer);
  138. FIELD_SET(*this, FIX::SecurityDesc);
  139. FIELD_SET(*this, FIX::EncodedSecurityDescLen);
  140. FIELD_SET(*this, FIX::EncodedSecurityDesc);
  141. FIELD_SET(*this, FIX::Pool);
  142. FIELD_SET(*this, FIX::ContractSettlMonth);
  143. FIELD_SET(*this, FIX::CPProgram);
  144. FIELD_SET(*this, FIX::CPRegType);
  145. FIELD_SET(*this, FIX::DatedDate);
  146. FIELD_SET(*this, FIX::InterestAccrualDate);
  147. FIELD_SET(*this, FIX::ContractMultiplierUnit);
  148. FIELD_SET(*this, FIX::FlowScheduleType);
  149. FIELD_SET(*this, FIX::RestructuringType);
  150. FIELD_SET(*this, FIX::Seniority);
  151. FIELD_SET(*this, FIX::NotionalPercentageOutstanding);
  152. FIELD_SET(*this, FIX::OriginalNotionalPercentageOutstanding);
  153. FIELD_SET(*this, FIX::AttachmentPoint);
  154. FIELD_SET(*this, FIX::DetachmentPoint);
  155. FIELD_SET(*this, FIX::StrikePriceDeterminationMethod);
  156. FIELD_SET(*this, FIX::StrikePriceBoundaryMethod);
  157. FIELD_SET(*this, FIX::StrikePriceBoundaryPrecision);
  158. FIELD_SET(*this, FIX::UnderlyingPriceDeterminationMethod);
  159. FIELD_SET(*this, FIX::OptPayoutType);
  160. FIELD_SET(*this, FIX::AgreementDesc);
  161. FIELD_SET(*this, FIX::AgreementID);
  162. FIELD_SET(*this, FIX::AgreementDate);
  163. FIELD_SET(*this, FIX::AgreementCurrency);
  164. FIELD_SET(*this, FIX::TerminationType);
  165. FIELD_SET(*this, FIX::StartDate);
  166. FIELD_SET(*this, FIX::EndDate);
  167. FIELD_SET(*this, FIX::DeliveryType);
  168. FIELD_SET(*this, FIX::MarginRatio);
  169. FIELD_SET(*this, FIX::QtyType);
  170. FIELD_SET(*this, FIX::YieldType);
  171. FIELD_SET(*this, FIX::Yield);
  172. FIELD_SET(*this, FIX::YieldCalcDate);
  173. FIELD_SET(*this, FIX::YieldRedemptionDate);
  174. FIELD_SET(*this, FIX::YieldRedemptionPrice);
  175. FIELD_SET(*this, FIX::YieldRedemptionPriceType);
  176. FIELD_SET(*this, FIX::NoUnderlyings);
  177. class NoUnderlyings: public FIX::Group
  178. {
  179. public:
  180. NoUnderlyings() : FIX::Group(711,311,FIX::message_order(311,312,309,305,462,463,310,763,313,542,1213,241,242,243,244,245,246,256,595,592,593,594,247,316,941,317,436,998,1423,1424,1425,1000,1419,435,308,306,362,363,307,364,365,877,878,972,318,879,975,973,974,810,882,883,884,885,886,1044,1045,1046,1038,1039,315,1437,1441,1453,1454,1455,1456,1459,1460,0)) {}
  181. FIELD_SET(*this, FIX::UnderlyingSymbol);
  182. FIELD_SET(*this, FIX::UnderlyingSymbolSfx);
  183. FIELD_SET(*this, FIX::UnderlyingSecurityID);
  184. FIELD_SET(*this, FIX::UnderlyingSecurityIDSource);
  185. FIELD_SET(*this, FIX::UnderlyingProduct);
  186. FIELD_SET(*this, FIX::UnderlyingCFICode);
  187. FIELD_SET(*this, FIX::UnderlyingSecurityType);
  188. FIELD_SET(*this, FIX::UnderlyingSecuritySubType);
  189. FIELD_SET(*this, FIX::UnderlyingMaturityMonthYear);
  190. FIELD_SET(*this, FIX::UnderlyingMaturityDate);
  191. FIELD_SET(*this, FIX::UnderlyingMaturityTime);
  192. FIELD_SET(*this, FIX::UnderlyingCouponPaymentDate);
  193. FIELD_SET(*this, FIX::UnderlyingIssueDate);
  194. FIELD_SET(*this, FIX::UnderlyingRepoCollateralSecurityType);
  195. FIELD_SET(*this, FIX::UnderlyingRepurchaseTerm);
  196. FIELD_SET(*this, FIX::UnderlyingRepurchaseRate);
  197. FIELD_SET(*this, FIX::UnderlyingFactor);
  198. FIELD_SET(*this, FIX::UnderlyingCreditRating);
  199. FIELD_SET(*this, FIX::UnderlyingInstrRegistry);
  200. FIELD_SET(*this, FIX::UnderlyingCountryOfIssue);
  201. FIELD_SET(*this, FIX::UnderlyingStateOrProvinceOfIssue);
  202. FIELD_SET(*this, FIX::UnderlyingLocaleOfIssue);
  203. FIELD_SET(*this, FIX::UnderlyingRedemptionDate);
  204. FIELD_SET(*this, FIX::UnderlyingStrikePrice);
  205. FIELD_SET(*this, FIX::UnderlyingStrikeCurrency);
  206. FIELD_SET(*this, FIX::UnderlyingOptAttribute);
  207. FIELD_SET(*this, FIX::UnderlyingContractMultiplier);
  208. FIELD_SET(*this, FIX::UnderlyingUnitOfMeasure);
  209. FIELD_SET(*this, FIX::UnderlyingUnitOfMeasureQty);
  210. FIELD_SET(*this, FIX::UnderlyingPriceUnitOfMeasure);
  211. FIELD_SET(*this, FIX::UnderlyingPriceUnitOfMeasureQty);
  212. FIELD_SET(*this, FIX::UnderlyingTimeUnit);
  213. FIELD_SET(*this, FIX::UnderlyingExerciseStyle);
  214. FIELD_SET(*this, FIX::UnderlyingCouponRate);
  215. FIELD_SET(*this, FIX::UnderlyingSecurityExchange);
  216. FIELD_SET(*this, FIX::UnderlyingIssuer);
  217. FIELD_SET(*this, FIX::EncodedUnderlyingIssuerLen);
  218. FIELD_SET(*this, FIX::EncodedUnderlyingIssuer);
  219. FIELD_SET(*this, FIX::UnderlyingSecurityDesc);
  220. FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDescLen);
  221. FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDesc);
  222. FIELD_SET(*this, FIX::UnderlyingCPProgram);
  223. FIELD_SET(*this, FIX::UnderlyingCPRegType);
  224. FIELD_SET(*this, FIX::UnderlyingAllocationPercent);
  225. FIELD_SET(*this, FIX::UnderlyingCurrency);
  226. FIELD_SET(*this, FIX::UnderlyingQty);
  227. FIELD_SET(*this, FIX::UnderlyingSettlementType);
  228. FIELD_SET(*this, FIX::UnderlyingCashAmount);
  229. FIELD_SET(*this, FIX::UnderlyingCashType);
  230. FIELD_SET(*this, FIX::UnderlyingPx);
  231. FIELD_SET(*this, FIX::UnderlyingDirtyPrice);
  232. FIELD_SET(*this, FIX::UnderlyingEndPrice);
  233. FIELD_SET(*this, FIX::UnderlyingStartValue);
  234. FIELD_SET(*this, FIX::UnderlyingCurrentValue);
  235. FIELD_SET(*this, FIX::UnderlyingEndValue);
  236. FIELD_SET(*this, FIX::UnderlyingAdjustedQuantity);
  237. FIELD_SET(*this, FIX::UnderlyingFXRate);
  238. FIELD_SET(*this, FIX::UnderlyingFXRateCalc);
  239. FIELD_SET(*this, FIX::UnderlyingCapValue);
  240. FIELD_SET(*this, FIX::UnderlyingSettlMethod);
  241. FIELD_SET(*this, FIX::UnderlyingPutOrCall);
  242. FIELD_SET(*this, FIX::UnderlyingContractMultiplierUnit);
  243. FIELD_SET(*this, FIX::UnderlyingFlowScheduleType);
  244. FIELD_SET(*this, FIX::UnderlyingRestructuringType);
  245. FIELD_SET(*this, FIX::UnderlyingSeniority);
  246. FIELD_SET(*this, FIX::UnderlyingNotionalPercentageOutstanding);
  247. FIELD_SET(*this, FIX::UnderlyingOriginalNotionalPercentageOutstanding);
  248. FIELD_SET(*this, FIX::UnderlyingAttachmentPoint);
  249. FIELD_SET(*this, FIX::UnderlyingDetachmentPoint);
  250. };
  251. FIELD_SET(*this, FIX::UnderlyingTradingSessionID);
  252. FIELD_SET(*this, FIX::UnderlyingTradingSessionSubID);
  253. FIELD_SET(*this, FIX::LastQty);
  254. FIELD_SET(*this, FIX::LastPx);
  255. FIELD_SET(*this, FIX::CalculatedCcyLastQty);
  256. FIELD_SET(*this, FIX::Currency);
  257. FIELD_SET(*this, FIX::SettlCurrency);
  258. FIELD_SET(*this, FIX::LastParPx);
  259. FIELD_SET(*this, FIX::LastSpotRate);
  260. FIELD_SET(*this, FIX::LastForwardPoints);
  261. FIELD_SET(*this, FIX::LastSwapPoints);
  262. FIELD_SET(*this, FIX::LastMkt);
  263. FIELD_SET(*this, FIX::TradeDate);
  264. FIELD_SET(*this, FIX::ClearingBusinessDate);
  265. FIELD_SET(*this, FIX::AvgPx);
  266. FIELD_SET(*this, FIX::Spread);
  267. FIELD_SET(*this, FIX::BenchmarkCurveCurrency);
  268. FIELD_SET(*this, FIX::BenchmarkCurveName);
  269. FIELD_SET(*this, FIX::BenchmarkCurvePoint);
  270. FIELD_SET(*this, FIX::BenchmarkPrice);
  271. FIELD_SET(*this, FIX::BenchmarkPriceType);
  272. FIELD_SET(*this, FIX::BenchmarkSecurityID);
  273. FIELD_SET(*this, FIX::BenchmarkSecurityIDSource);
  274. FIELD_SET(*this, FIX::AvgPxIndicator);
  275. FIELD_SET(*this, FIX::NoPosAmt);
  276. class NoPosAmt: public FIX::Group
  277. {
  278. public:
  279. NoPosAmt() : FIX::Group(753,707,FIX::message_order(707,708,1055,0)) {}
  280. FIELD_SET(*this, FIX::PosAmtType);
  281. FIELD_SET(*this, FIX::PosAmt);
  282. FIELD_SET(*this, FIX::PositionCurrency);
  283. };
  284. FIELD_SET(*this, FIX::MultiLegReportingType);
  285. FIELD_SET(*this, FIX::TradeLegRefID);
  286. FIELD_SET(*this, FIX::NoLegs);
  287. class NoLegs: public FIX::Group
  288. {
  289. public:
  290. NoLegs() : FIX::Group(555,600,FIX::message_order(600,601,602,603,607,608,609,764,610,611,1212,248,249,250,251,252,253,257,599,596,597,598,254,612,942,613,614,999,1224,1421,1422,1001,1420,615,616,617,618,619,620,621,622,623,624,556,740,739,955,956,1358,1017,1436,1440,687,690,990,1152,683,564,565,539,654,587,588,637,675,1073,1074,1075,1379,1381,1383,1384,1418,1342,0)) {}
  291. FIELD_SET(*this, FIX::LegSymbol);
  292. FIELD_SET(*this, FIX::LegSymbolSfx);
  293. FIELD_SET(*this, FIX::LegSecurityID);
  294. FIELD_SET(*this, FIX::LegSecurityIDSource);
  295. FIELD_SET(*this, FIX::LegProduct);
  296. FIELD_SET(*this, FIX::LegCFICode);
  297. FIELD_SET(*this, FIX::LegSecurityType);
  298. FIELD_SET(*this, FIX::LegSecuritySubType);
  299. FIELD_SET(*this, FIX::LegMaturityMonthYear);
  300. FIELD_SET(*this, FIX::LegMaturityDate);
  301. FIELD_SET(*this, FIX::LegMaturityTime);
  302. FIELD_SET(*this, FIX::LegCouponPaymentDate);
  303. FIELD_SET(*this, FIX::LegIssueDate);
  304. FIELD_SET(*this, FIX::LegRepoCollateralSecurityType);
  305. FIELD_SET(*this, FIX::LegRepurchaseTerm);
  306. FIELD_SET(*this, FIX::LegRepurchaseRate);
  307. FIELD_SET(*this, FIX::LegFactor);
  308. FIELD_SET(*this, FIX::LegCreditRating);
  309. FIELD_SET(*this, FIX::LegInstrRegistry);
  310. FIELD_SET(*this, FIX::LegCountryOfIssue);
  311. FIELD_SET(*this, FIX::LegStateOrProvinceOfIssue);
  312. FIELD_SET(*this, FIX::LegLocaleOfIssue);
  313. FIELD_SET(*this, FIX::LegRedemptionDate);
  314. FIELD_SET(*this, FIX::LegStrikePrice);
  315. FIELD_SET(*this, FIX::LegStrikeCurrency);
  316. FIELD_SET(*this, FIX::LegOptAttribute);
  317. FIELD_SET(*this, FIX::LegContractMultiplier);
  318. FIELD_SET(*this, FIX::LegUnitOfMeasure);
  319. FIELD_SET(*this, FIX::LegUnitOfMeasureQty);
  320. FIELD_SET(*this, FIX::LegPriceUnitOfMeasure);
  321. FIELD_SET(*this, FIX::LegPriceUnitOfMeasureQty);
  322. FIELD_SET(*this, FIX::LegTimeUnit);
  323. FIELD_SET(*this, FIX::LegExerciseStyle);
  324. FIELD_SET(*this, FIX::LegCouponRate);
  325. FIELD_SET(*this, FIX::LegSecurityExchange);
  326. FIELD_SET(*this, FIX::LegIssuer);
  327. FIELD_SET(*this, FIX::EncodedLegIssuerLen);
  328. FIELD_SET(*this, FIX::EncodedLegIssuer);
  329. FIELD_SET(*this, FIX::LegSecurityDesc);
  330. FIELD_SET(*this, FIX::EncodedLegSecurityDescLen);
  331. FIELD_SET(*this, FIX::EncodedLegSecurityDesc);
  332. FIELD_SET(*this, FIX::LegRatioQty);
  333. FIELD_SET(*this, FIX::LegSide);
  334. FIELD_SET(*this, FIX::LegCurrency);
  335. FIELD_SET(*this, FIX::LegPool);
  336. FIELD_SET(*this, FIX::LegDatedDate);
  337. FIELD_SET(*this, FIX::LegContractSettlMonth);
  338. FIELD_SET(*this, FIX::LegInterestAccrualDate);
  339. FIELD_SET(*this, FIX::LegPutOrCall);
  340. FIELD_SET(*this, FIX::LegOptionRatio);
  341. FIELD_SET(*this, FIX::LegContractMultiplierUnit);
  342. FIELD_SET(*this, FIX::LegFlowScheduleType);
  343. FIELD_SET(*this, FIX::LegQty);
  344. FIELD_SET(*this, FIX::LegSwapType);
  345. FIELD_SET(*this, FIX::LegReportID);
  346. FIELD_SET(*this, FIX::LegNumber);
  347. FIELD_SET(*this, FIX::NoLegStipulations);
  348. class NoLegStipulations: public FIX::Group
  349. {
  350. public:
  351. NoLegStipulations() : FIX::Group(683,688,FIX::message_order(688,689,0)) {}
  352. FIELD_SET(*this, FIX::LegStipulationType);
  353. FIELD_SET(*this, FIX::LegStipulationValue);
  354. };
  355. FIELD_SET(*this, FIX::LegPositionEffect);
  356. FIELD_SET(*this, FIX::LegCoveredOrUncovered);
  357. FIELD_SET(*this, FIX::NoNestedPartyIDs);
  358. class NoNestedPartyIDs: public FIX::Group
  359. {
  360. public:
  361. NoNestedPartyIDs() : FIX::Group(539,524,FIX::message_order(524,525,538,804,0)) {}
  362. FIELD_SET(*this, FIX::NestedPartyID);
  363. FIELD_SET(*this, FIX::NestedPartyIDSource);
  364. FIELD_SET(*this, FIX::NestedPartyRole);
  365. FIELD_SET(*this, FIX::NoNestedPartySubIDs);
  366. class NoNestedPartySubIDs: public FIX::Group
  367. {
  368. public:
  369. NoNestedPartySubIDs() : FIX::Group(804,545,FIX::message_order(545,805,0)) {}
  370. FIELD_SET(*this, FIX::NestedPartySubID);
  371. FIELD_SET(*this, FIX::NestedPartySubIDType);
  372. };
  373. };
  374. FIELD_SET(*this, FIX::LegRefID);
  375. FIELD_SET(*this, FIX::LegSettlType);
  376. FIELD_SET(*this, FIX::LegSettlDate);
  377. FIELD_SET(*this, FIX::LegLastPx);
  378. FIELD_SET(*this, FIX::LegSettlCurrency);
  379. FIELD_SET(*this, FIX::LegLastForwardPoints);
  380. FIELD_SET(*this, FIX::LegCalculatedCcyLastQty);
  381. FIELD_SET(*this, FIX::LegGrossTradeAmt);
  382. FIELD_SET(*this, FIX::LegVolatility);
  383. FIELD_SET(*this, FIX::LegDividendYield);
  384. FIELD_SET(*this, FIX::LegCurrencyRatio);
  385. FIELD_SET(*this, FIX::LegExecInst);
  386. FIELD_SET(*this, FIX::LegLastQty);
  387. FIELD_SET(*this, FIX::NoOfLegUnderlyings);
  388. class NoOfLegUnderlyings: public FIX::Group
  389. {
  390. public:
  391. NoOfLegUnderlyings() : FIX::Group(1342,1330,FIX::message_order(1330,1331,1332,1333,1344,1337,1338,1339,1345,1405,1340,1391,1343,1341,1392,0)) {}
  392. FIELD_SET(*this, FIX::UnderlyingLegSymbol);
  393. FIELD_SET(*this, FIX::UnderlyingLegSymbolSfx);
  394. FIELD_SET(*this, FIX::UnderlyingLegSecurityID);
  395. FIELD_SET(*this, FIX::UnderlyingLegSecurityIDSource);
  396. FIELD_SET(*this, FIX::UnderlyingLegCFICode);
  397. FIELD_SET(*this, FIX::UnderlyingLegSecurityType);
  398. FIELD_SET(*this, FIX::UnderlyingLegSecuritySubType);
  399. FIELD_SET(*this, FIX::UnderlyingLegMaturityMonthYear);
  400. FIELD_SET(*this, FIX::UnderlyingLegMaturityDate);
  401. FIELD_SET(*this, FIX::UnderlyingLegMaturityTime);
  402. FIELD_SET(*this, FIX::UnderlyingLegStrikePrice);
  403. FIELD_SET(*this, FIX::UnderlyingLegOptAttribute);
  404. FIELD_SET(*this, FIX::UnderlyingLegPutOrCall);
  405. FIELD_SET(*this, FIX::UnderlyingLegSecurityExchange);
  406. FIELD_SET(*this, FIX::UnderlyingLegSecurityDesc);
  407. };
  408. };
  409. FIELD_SET(*this, FIX::TransactTime);
  410. FIELD_SET(*this, FIX::NoTrdRegTimestamps);
  411. class NoTrdRegTimestamps: public FIX::Group
  412. {
  413. public:
  414. NoTrdRegTimestamps() : FIX::Group(768,769,FIX::message_order(769,770,771,1033,1034,1035,0)) {}
  415. FIELD_SET(*this, FIX::TrdRegTimestamp);
  416. FIELD_SET(*this, FIX::TrdRegTimestampType);
  417. FIELD_SET(*this, FIX::TrdRegTimestampOrigin);
  418. FIELD_SET(*this, FIX::DeskType);
  419. FIELD_SET(*this, FIX::DeskTypeSource);
  420. FIELD_SET(*this, FIX::DeskOrderHandlingInst);
  421. };
  422. FIELD_SET(*this, FIX::SettlType);
  423. FIELD_SET(*this, FIX::SettlDate);
  424. FIELD_SET(*this, FIX::UnderlyingSettlementDate);
  425. FIELD_SET(*this, FIX::MatchStatus);
  426. FIELD_SET(*this, FIX::MatchType);
  427. FIELD_SET(*this, FIX::NoSides);
  428. class NoSides: public FIX::Group
  429. {
  430. public:
  431. NoSides() : FIX::Group(552,54,FIX::message_order(54,1009,1005,1006,1007,83,1008,430,1154,1155,453,1,660,581,81,575,576,578,579,376,377,582,336,625,943,12,13,479,497,157,230,158,159,738,920,921,922,238,237,118,119,155,156,77,58,354,355,752,518,232,136,825,826,591,70,78,1016,1158,1072,1057,1139,1115,37,198,11,526,66,1080,1081,1431,40,44,99,18,39,151,14,59,126,528,529,1432,821,1093,483,586,775,1427,1428,1429,1444,0)) {}
  432. FIELD_SET(*this, FIX::Side);
  433. FIELD_SET(*this, FIX::SideLastQty);
  434. FIELD_SET(*this, FIX::SideTradeReportID);
  435. FIELD_SET(*this, FIX::SideFillStationCd);
  436. FIELD_SET(*this, FIX::SideReasonCd);
  437. FIELD_SET(*this, FIX::RptSeq);
  438. FIELD_SET(*this, FIX::SideTrdSubTyp);
  439. FIELD_SET(*this, FIX::NetGrossInd);
  440. FIELD_SET(*this, FIX::SideCurrency);
  441. FIELD_SET(*this, FIX::SideSettlCurrency);
  442. FIELD_SET(*this, FIX::NoPartyIDs);
  443. class NoPartyIDs: public FIX::Group
  444. {
  445. public:
  446. NoPartyIDs() : FIX::Group(453,448,FIX::message_order(448,447,452,802,0)) {}
  447. FIELD_SET(*this, FIX::PartyID);
  448. FIELD_SET(*this, FIX::PartyIDSource);
  449. FIELD_SET(*this, FIX::PartyRole);
  450. FIELD_SET(*this, FIX::NoPartySubIDs);
  451. class NoPartySubIDs: public FIX::Group
  452. {
  453. public:
  454. NoPartySubIDs() : FIX::Group(802,523,FIX::message_order(523,803,0)) {}
  455. FIELD_SET(*this, FIX::PartySubID);
  456. FIELD_SET(*this, FIX::PartySubIDType);
  457. };
  458. };
  459. FIELD_SET(*this, FIX::Account);
  460. FIELD_SET(*this, FIX::AcctIDSource);
  461. FIELD_SET(*this, FIX::AccountType);
  462. FIELD_SET(*this, FIX::ProcessCode);
  463. FIELD_SET(*this, FIX::OddLot);
  464. FIELD_SET(*this, FIX::NoClearingInstructions);
  465. class NoClearingInstructions: public FIX::Group
  466. {
  467. public:
  468. NoClearingInstructions() : FIX::Group(576,577,FIX::message_order(577,0)) {}
  469. FIELD_SET(*this, FIX::ClearingInstruction);
  470. };
  471. FIELD_SET(*this, FIX::TradeInputSource);
  472. FIELD_SET(*this, FIX::TradeInputDevice);
  473. FIELD_SET(*this, FIX::ComplianceID);
  474. FIELD_SET(*this, FIX::SolicitedFlag);
  475. FIELD_SET(*this, FIX::CustOrderCapacity);
  476. FIELD_SET(*this, FIX::TradingSessionID);
  477. FIELD_SET(*this, FIX::TradingSessionSubID);
  478. FIELD_SET(*this, FIX::TimeBracket);
  479. FIELD_SET(*this, FIX::Commission);
  480. FIELD_SET(*this, FIX::CommType);
  481. FIELD_SET(*this, FIX::CommCurrency);
  482. FIELD_SET(*this, FIX::FundRenewWaiv);
  483. FIELD_SET(*this, FIX::NumDaysInterest);
  484. FIELD_SET(*this, FIX::ExDate);
  485. FIELD_SET(*this, FIX::AccruedInterestRate);
  486. FIELD_SET(*this, FIX::AccruedInterestAmt);
  487. FIELD_SET(*this, FIX::InterestAtMaturity);
  488. FIELD_SET(*this, FIX::EndAccruedInterestAmt);
  489. FIELD_SET(*this, FIX::StartCash);
  490. FIELD_SET(*this, FIX::EndCash);
  491. FIELD_SET(*this, FIX::Concession);
  492. FIELD_SET(*this, FIX::TotalTakedown);
  493. FIELD_SET(*this, FIX::NetMoney);
  494. FIELD_SET(*this, FIX::SettlCurrAmt);
  495. FIELD_SET(*this, FIX::SettlCurrFxRate);
  496. FIELD_SET(*this, FIX::SettlCurrFxRateCalc);
  497. FIELD_SET(*this, FIX::PositionEffect);
  498. FIELD_SET(*this, FIX::Text);
  499. FIELD_SET(*this, FIX::EncodedTextLen);
  500. FIELD_SET(*this, FIX::EncodedText);
  501. FIELD_SET(*this, FIX::SideMultiLegReportingType);
  502. FIELD_SET(*this, FIX::NoContAmts);
  503. class NoContAmts: public FIX::Group
  504. {
  505. public:
  506. NoContAmts() : FIX::Group(518,519,FIX::message_order(519,520,521,0)) {}
  507. FIELD_SET(*this, FIX::ContAmtType);
  508. FIELD_SET(*this, FIX::ContAmtValue);
  509. FIELD_SET(*this, FIX::ContAmtCurr);
  510. };
  511. FIELD_SET(*this, FIX::NoStipulations);
  512. class NoStipulations: public FIX::Group
  513. {
  514. public:
  515. NoStipulations() : FIX::Group(232,233,FIX::message_order(233,234,0)) {}
  516. FIELD_SET(*this, FIX::StipulationType);
  517. FIELD_SET(*this, FIX::StipulationValue);
  518. };
  519. FIELD_SET(*this, FIX::NoMiscFees);
  520. class NoMiscFees: public FIX::Group
  521. {
  522. public:
  523. NoMiscFees() : FIX::Group(136,137,FIX::message_order(137,138,139,891,0)) {}
  524. FIELD_SET(*this, FIX::MiscFeeAmt);
  525. FIELD_SET(*this, FIX::MiscFeeCurr);
  526. FIELD_SET(*this, FIX::MiscFeeType);
  527. FIELD_SET(*this, FIX::MiscFeeBasis);
  528. };
  529. FIELD_SET(*this, FIX::ExchangeRule);
  530. FIELD_SET(*this, FIX::TradeAllocIndicator);
  531. FIELD_SET(*this, FIX::PreallocMethod);
  532. FIELD_SET(*this, FIX::AllocID);
  533. FIELD_SET(*this, FIX::NoAllocs);
  534. class NoAllocs: public FIX::Group
  535. {
  536. public:
  537. NoAllocs() : FIX::Group(78,79,FIX::message_order(79,661,736,467,756,80,993,1002,989,1136,0)) {}
  538. FIELD_SET(*this, FIX::AllocAccount);
  539. FIELD_SET(*this, FIX::AllocAcctIDSource);
  540. FIELD_SET(*this, FIX::AllocSettlCurrency);
  541. FIELD_SET(*this, FIX::IndividualAllocID);
  542. FIELD_SET(*this, FIX::NoNested2PartyIDs);
  543. class NoNested2PartyIDs: public FIX::Group
  544. {
  545. public:
  546. NoNested2PartyIDs() : FIX::Group(756,757,FIX::message_order(757,758,759,806,0)) {}
  547. FIELD_SET(*this, FIX::Nested2PartyID);
  548. FIELD_SET(*this, FIX::Nested2PartyIDSource);
  549. FIELD_SET(*this, FIX::Nested2PartyRole);
  550. FIELD_SET(*this, FIX::NoNested2PartySubIDs);
  551. class NoNested2PartySubIDs: public FIX::Group
  552. {
  553. public:
  554. NoNested2PartySubIDs() : FIX::Group(806,760,FIX::message_order(760,807,0)) {}
  555. FIELD_SET(*this, FIX::Nested2PartySubID);
  556. FIELD_SET(*this, FIX::Nested2PartySubIDType);
  557. };
  558. };
  559. FIELD_SET(*this, FIX::AllocQty);
  560. FIELD_SET(*this, FIX::AllocCustomerCapacity);
  561. FIELD_SET(*this, FIX::AllocMethod);
  562. FIELD_SET(*this, FIX::SecondaryIndividualAllocID);
  563. FIELD_SET(*this, FIX::AllocClearingFeeIndicator);
  564. };
  565. FIELD_SET(*this, FIX::NoSideTrdRegTS);
  566. class NoSideTrdRegTS: public FIX::Group
  567. {
  568. public:
  569. NoSideTrdRegTS() : FIX::Group(1016,1012,FIX::message_order(1012,1013,1014,0)) {}
  570. FIELD_SET(*this, FIX::SideTrdRegTimestamp);
  571. FIELD_SET(*this, FIX::SideTrdRegTimestampType);
  572. FIELD_SET(*this, FIX::SideTrdRegTimestampSrc);
  573. };
  574. FIELD_SET(*this, FIX::NoSettlDetails);
  575. class NoSettlDetails: public FIX::Group
  576. {
  577. public:
  578. NoSettlDetails() : FIX::Group(1158,1164,FIX::message_order(1164,781,0)) {}
  579. FIELD_SET(*this, FIX::SettlObligSource);
  580. FIELD_SET(*this, FIX::NoSettlPartyIDs);
  581. class NoSettlPartyIDs: public FIX::Group
  582. {
  583. public:
  584. NoSettlPartyIDs() : FIX::Group(781,782,FIX::message_order(782,783,784,801,0)) {}
  585. FIELD_SET(*this, FIX::SettlPartyID);
  586. FIELD_SET(*this, FIX::SettlPartyIDSource);
  587. FIELD_SET(*this, FIX::SettlPartyRole);
  588. FIELD_SET(*this, FIX::NoSettlPartySubIDs);
  589. class NoSettlPartySubIDs: public FIX::Group
  590. {
  591. public:
  592. NoSettlPartySubIDs() : FIX::Group(801,785,FIX::message_order(785,786,0)) {}
  593. FIELD_SET(*this, FIX::SettlPartySubID);
  594. FIELD_SET(*this, FIX::SettlPartySubIDType);
  595. };
  596. };
  597. };
  598. FIELD_SET(*this, FIX::SideGrossTradeAmt);
  599. FIELD_SET(*this, FIX::AggressorIndicator);
  600. FIELD_SET(*this, FIX::ExchangeSpecialInstructions);
  601. FIELD_SET(*this, FIX::OrderCategory);
  602. FIELD_SET(*this, FIX::OrderID);
  603. FIELD_SET(*this, FIX::SecondaryOrderID);
  604. FIELD_SET(*this, FIX::ClOrdID);
  605. FIELD_SET(*this, FIX::SecondaryClOrdID);
  606. FIELD_SET(*this, FIX::ListID);
  607. FIELD_SET(*this, FIX::RefOrderID);
  608. FIELD_SET(*this, FIX::RefOrderIDSource);
  609. FIELD_SET(*this, FIX::RefOrdIDReason);
  610. FIELD_SET(*this, FIX::OrdType);
  611. FIELD_SET(*this, FIX::Price);
  612. FIELD_SET(*this, FIX::StopPx);
  613. FIELD_SET(*this, FIX::ExecInst);
  614. FIELD_SET(*this, FIX::OrdStatus);
  615. FIELD_SET(*this, FIX::LeavesQty);
  616. FIELD_SET(*this, FIX::CumQty);
  617. FIELD_SET(*this, FIX::TimeInForce);
  618. FIELD_SET(*this, FIX::ExpireTime);
  619. FIELD_SET(*this, FIX::OrderCapacity);
  620. FIELD_SET(*this, FIX::OrderRestrictions);
  621. FIELD_SET(*this, FIX::OrigCustOrderCapacity);
  622. FIELD_SET(*this, FIX::OrderInputDevice);
  623. FIELD_SET(*this, FIX::LotType);
  624. FIELD_SET(*this, FIX::TransBkdTime);
  625. FIELD_SET(*this, FIX::OrigOrdModTime);
  626. FIELD_SET(*this, FIX::BookingType);
  627. FIELD_SET(*this, FIX::SideExecID);
  628. FIELD_SET(*this, FIX::OrderDelay);
  629. FIELD_SET(*this, FIX::OrderDelayUnit);
  630. FIELD_SET(*this, FIX::SideLiquidityInd);
  631. };
  632. FIELD_SET(*this, FIX::Volatility);
  633. FIELD_SET(*this, FIX::DividendYield);
  634. FIELD_SET(*this, FIX::RiskFreeRate);
  635. FIELD_SET(*this, FIX::CurrencyRatio);
  636. FIELD_SET(*this, FIX::CopyMsgIndicator);
  637. FIELD_SET(*this, FIX::NoTrdRepIndicators);
  638. class NoTrdRepIndicators: public FIX::Group
  639. {
  640. public:
  641. NoTrdRepIndicators() : FIX::Group(1387,1388,FIX::message_order(1388,1389,0)) {}
  642. FIELD_SET(*this, FIX::TrdRepPartyRole);
  643. FIELD_SET(*this, FIX::TrdRepIndicator);
  644. };
  645. FIELD_SET(*this, FIX::PublishTrdIndicator);
  646. FIELD_SET(*this, FIX::TradePublishIndicator);
  647. FIELD_SET(*this, FIX::ShortSaleReason);
  648. FIELD_SET(*this, FIX::TierCode);
  649. FIELD_SET(*this, FIX::MessageEventSource);
  650. FIELD_SET(*this, FIX::LastUpdateTime);
  651. FIELD_SET(*this, FIX::RndPx);
  652. FIELD_SET(*this, FIX::TZTransactTime);
  653. FIELD_SET(*this, FIX::ReportedPxDiff);
  654. FIELD_SET(*this, FIX::GrossTradeAmt);
  655. FIELD_SET(*this, FIX::RejectText);
  656. FIELD_SET(*this, FIX::FeeMultiplier);
  657. FIELD_SET(*this, FIX::VenueType);
  658. FIELD_SET(*this, FIX::MarketSegmentID);
  659. FIELD_SET(*this, FIX::MarketID);
  660. };
  661. }
  662. #endif