ExecutionReport.h 27 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660
  1. #ifndef FIX50SP1_EXECUTIONREPORT_H
  2. #define FIX50SP1_EXECUTIONREPORT_H
  3. #include "Message.h"
  4. namespace FIX50SP1
  5. {
  6. class ExecutionReport : public Message
  7. {
  8. public:
  9. ExecutionReport() : Message(MsgType()) {}
  10. ExecutionReport(const FIX::Message& m) : Message(m) {}
  11. ExecutionReport(const Message& m) : Message(m) {}
  12. ExecutionReport(const ExecutionReport& m) : Message(m) {}
  13. static FIX::MsgType MsgType() { return FIX::MsgType("8"); }
  14. ExecutionReport(
  15. const FIX::OrderID& aOrderID,
  16. const FIX::ExecID& aExecID,
  17. const FIX::ExecType& aExecType,
  18. const FIX::OrdStatus& aOrdStatus,
  19. const FIX::Side& aSide,
  20. const FIX::LeavesQty& aLeavesQty,
  21. const FIX::CumQty& aCumQty )
  22. : Message(MsgType())
  23. {
  24. set(aOrderID);
  25. set(aExecID);
  26. set(aExecType);
  27. set(aOrdStatus);
  28. set(aSide);
  29. set(aLeavesQty);
  30. set(aCumQty);
  31. }
  32. FIELD_SET(*this, FIX::ApplID);
  33. FIELD_SET(*this, FIX::ApplSeqNum);
  34. FIELD_SET(*this, FIX::ApplLastSeqNum);
  35. FIELD_SET(*this, FIX::ApplResendFlag);
  36. FIELD_SET(*this, FIX::OrderID);
  37. FIELD_SET(*this, FIX::SecondaryOrderID);
  38. FIELD_SET(*this, FIX::SecondaryClOrdID);
  39. FIELD_SET(*this, FIX::SecondaryExecID);
  40. FIELD_SET(*this, FIX::ClOrdID);
  41. FIELD_SET(*this, FIX::OrigClOrdID);
  42. FIELD_SET(*this, FIX::ClOrdLinkID);
  43. FIELD_SET(*this, FIX::QuoteRespID);
  44. FIELD_SET(*this, FIX::OrdStatusReqID);
  45. FIELD_SET(*this, FIX::MassStatusReqID);
  46. FIELD_SET(*this, FIX::HostCrossID);
  47. FIELD_SET(*this, FIX::TotNumReports);
  48. FIELD_SET(*this, FIX::LastRptRequested);
  49. FIELD_SET(*this, FIX::NoPartyIDs);
  50. class NoPartyIDs: public FIX::Group
  51. {
  52. public:
  53. NoPartyIDs() : FIX::Group(453,448,FIX::message_order(448,447,452,802,0)) {}
  54. FIELD_SET(*this, FIX::PartyID);
  55. FIELD_SET(*this, FIX::PartyIDSource);
  56. FIELD_SET(*this, FIX::PartyRole);
  57. FIELD_SET(*this, FIX::NoPartySubIDs);
  58. class NoPartySubIDs: public FIX::Group
  59. {
  60. public:
  61. NoPartySubIDs() : FIX::Group(802,523,FIX::message_order(523,803,0)) {}
  62. FIELD_SET(*this, FIX::PartySubID);
  63. FIELD_SET(*this, FIX::PartySubIDType);
  64. };
  65. };
  66. FIELD_SET(*this, FIX::TradeOriginationDate);
  67. FIELD_SET(*this, FIX::NoContraBrokers);
  68. class NoContraBrokers: public FIX::Group
  69. {
  70. public:
  71. NoContraBrokers() : FIX::Group(382,375,FIX::message_order(375,337,437,438,655,0)) {}
  72. FIELD_SET(*this, FIX::ContraBroker);
  73. FIELD_SET(*this, FIX::ContraTrader);
  74. FIELD_SET(*this, FIX::ContraTradeQty);
  75. FIELD_SET(*this, FIX::ContraTradeTime);
  76. FIELD_SET(*this, FIX::ContraLegRefID);
  77. };
  78. FIELD_SET(*this, FIX::ListID);
  79. FIELD_SET(*this, FIX::CrossID);
  80. FIELD_SET(*this, FIX::OrigCrossID);
  81. FIELD_SET(*this, FIX::CrossType);
  82. FIELD_SET(*this, FIX::TrdMatchID);
  83. FIELD_SET(*this, FIX::ExecID);
  84. FIELD_SET(*this, FIX::ExecRefID);
  85. FIELD_SET(*this, FIX::ExecType);
  86. FIELD_SET(*this, FIX::OrdStatus);
  87. FIELD_SET(*this, FIX::WorkingIndicator);
  88. FIELD_SET(*this, FIX::OrdRejReason);
  89. FIELD_SET(*this, FIX::ExecRestatementReason);
  90. FIELD_SET(*this, FIX::Account);
  91. FIELD_SET(*this, FIX::AcctIDSource);
  92. FIELD_SET(*this, FIX::AccountType);
  93. FIELD_SET(*this, FIX::DayBookingInst);
  94. FIELD_SET(*this, FIX::BookingUnit);
  95. FIELD_SET(*this, FIX::PreallocMethod);
  96. FIELD_SET(*this, FIX::AllocID);
  97. FIELD_SET(*this, FIX::NoAllocs);
  98. class NoAllocs: public FIX::Group
  99. {
  100. public:
  101. NoAllocs() : FIX::Group(78,79,FIX::message_order(79,661,736,467,539,80,0)) {}
  102. FIELD_SET(*this, FIX::AllocAccount);
  103. FIELD_SET(*this, FIX::AllocAcctIDSource);
  104. FIELD_SET(*this, FIX::AllocSettlCurrency);
  105. FIELD_SET(*this, FIX::IndividualAllocID);
  106. FIELD_SET(*this, FIX::NoNestedPartyIDs);
  107. class NoNestedPartyIDs: public FIX::Group
  108. {
  109. public:
  110. NoNestedPartyIDs() : FIX::Group(539,524,FIX::message_order(524,525,538,804,0)) {}
  111. FIELD_SET(*this, FIX::NestedPartyID);
  112. FIELD_SET(*this, FIX::NestedPartyIDSource);
  113. FIELD_SET(*this, FIX::NestedPartyRole);
  114. FIELD_SET(*this, FIX::NoNestedPartySubIDs);
  115. class NoNestedPartySubIDs: public FIX::Group
  116. {
  117. public:
  118. NoNestedPartySubIDs() : FIX::Group(804,545,FIX::message_order(545,805,0)) {}
  119. FIELD_SET(*this, FIX::NestedPartySubID);
  120. FIELD_SET(*this, FIX::NestedPartySubIDType);
  121. };
  122. };
  123. FIELD_SET(*this, FIX::AllocQty);
  124. };
  125. FIELD_SET(*this, FIX::SettlType);
  126. FIELD_SET(*this, FIX::SettlDate);
  127. FIELD_SET(*this, FIX::MatchType);
  128. FIELD_SET(*this, FIX::OrderCategory);
  129. FIELD_SET(*this, FIX::CashMargin);
  130. FIELD_SET(*this, FIX::ClearingFeeIndicator);
  131. FIELD_SET(*this, FIX::Symbol);
  132. FIELD_SET(*this, FIX::SymbolSfx);
  133. FIELD_SET(*this, FIX::SecurityID);
  134. FIELD_SET(*this, FIX::SecurityIDSource);
  135. FIELD_SET(*this, FIX::Product);
  136. FIELD_SET(*this, FIX::ProductComplex);
  137. FIELD_SET(*this, FIX::SecurityGroup);
  138. FIELD_SET(*this, FIX::CFICode);
  139. FIELD_SET(*this, FIX::SecurityType);
  140. FIELD_SET(*this, FIX::SecuritySubType);
  141. FIELD_SET(*this, FIX::MaturityMonthYear);
  142. FIELD_SET(*this, FIX::MaturityDate);
  143. FIELD_SET(*this, FIX::MaturityTime);
  144. FIELD_SET(*this, FIX::SettleOnOpenFlag);
  145. FIELD_SET(*this, FIX::InstrmtAssignmentMethod);
  146. FIELD_SET(*this, FIX::SecurityStatus);
  147. FIELD_SET(*this, FIX::CouponPaymentDate);
  148. FIELD_SET(*this, FIX::IssueDate);
  149. FIELD_SET(*this, FIX::RepoCollateralSecurityType);
  150. FIELD_SET(*this, FIX::RepurchaseTerm);
  151. FIELD_SET(*this, FIX::RepurchaseRate);
  152. FIELD_SET(*this, FIX::Factor);
  153. FIELD_SET(*this, FIX::CreditRating);
  154. FIELD_SET(*this, FIX::InstrRegistry);
  155. FIELD_SET(*this, FIX::CountryOfIssue);
  156. FIELD_SET(*this, FIX::StateOrProvinceOfIssue);
  157. FIELD_SET(*this, FIX::LocaleOfIssue);
  158. FIELD_SET(*this, FIX::RedemptionDate);
  159. FIELD_SET(*this, FIX::StrikePrice);
  160. FIELD_SET(*this, FIX::StrikeCurrency);
  161. FIELD_SET(*this, FIX::StrikeMultiplier);
  162. FIELD_SET(*this, FIX::StrikeValue);
  163. FIELD_SET(*this, FIX::OptAttribute);
  164. FIELD_SET(*this, FIX::ContractMultiplier);
  165. FIELD_SET(*this, FIX::MinPriceIncrement);
  166. FIELD_SET(*this, FIX::MinPriceIncrementAmount);
  167. FIELD_SET(*this, FIX::UnitOfMeasure);
  168. FIELD_SET(*this, FIX::UnitOfMeasureQty);
  169. FIELD_SET(*this, FIX::PriceUnitOfMeasure);
  170. FIELD_SET(*this, FIX::PriceUnitOfMeasureQty);
  171. FIELD_SET(*this, FIX::SettlMethod);
  172. FIELD_SET(*this, FIX::ExerciseStyle);
  173. FIELD_SET(*this, FIX::OptPayAmount);
  174. FIELD_SET(*this, FIX::PriceQuoteMethod);
  175. FIELD_SET(*this, FIX::FuturesValuationMethod);
  176. FIELD_SET(*this, FIX::ListMethod);
  177. FIELD_SET(*this, FIX::CapPrice);
  178. FIELD_SET(*this, FIX::FloorPrice);
  179. FIELD_SET(*this, FIX::PutOrCall);
  180. FIELD_SET(*this, FIX::FlexibleIndicator);
  181. FIELD_SET(*this, FIX::FlexProductEligibilityIndicator);
  182. FIELD_SET(*this, FIX::TimeUnit);
  183. FIELD_SET(*this, FIX::CouponRate);
  184. FIELD_SET(*this, FIX::SecurityExchange);
  185. FIELD_SET(*this, FIX::PositionLimit);
  186. FIELD_SET(*this, FIX::NTPositionLimit);
  187. FIELD_SET(*this, FIX::Issuer);
  188. FIELD_SET(*this, FIX::EncodedIssuerLen);
  189. FIELD_SET(*this, FIX::EncodedIssuer);
  190. FIELD_SET(*this, FIX::SecurityDesc);
  191. FIELD_SET(*this, FIX::EncodedSecurityDescLen);
  192. FIELD_SET(*this, FIX::EncodedSecurityDesc);
  193. FIELD_SET(*this, FIX::Pool);
  194. FIELD_SET(*this, FIX::ContractSettlMonth);
  195. FIELD_SET(*this, FIX::CPProgram);
  196. FIELD_SET(*this, FIX::CPRegType);
  197. FIELD_SET(*this, FIX::DatedDate);
  198. FIELD_SET(*this, FIX::InterestAccrualDate);
  199. FIELD_SET(*this, FIX::AgreementDesc);
  200. FIELD_SET(*this, FIX::AgreementID);
  201. FIELD_SET(*this, FIX::AgreementDate);
  202. FIELD_SET(*this, FIX::AgreementCurrency);
  203. FIELD_SET(*this, FIX::TerminationType);
  204. FIELD_SET(*this, FIX::StartDate);
  205. FIELD_SET(*this, FIX::EndDate);
  206. FIELD_SET(*this, FIX::DeliveryType);
  207. FIELD_SET(*this, FIX::MarginRatio);
  208. FIELD_SET(*this, FIX::NoUnderlyings);
  209. class NoUnderlyings: public FIX::Group
  210. {
  211. public:
  212. 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,0)) {}
  213. FIELD_SET(*this, FIX::UnderlyingSymbol);
  214. FIELD_SET(*this, FIX::UnderlyingSymbolSfx);
  215. FIELD_SET(*this, FIX::UnderlyingSecurityID);
  216. FIELD_SET(*this, FIX::UnderlyingSecurityIDSource);
  217. FIELD_SET(*this, FIX::UnderlyingProduct);
  218. FIELD_SET(*this, FIX::UnderlyingCFICode);
  219. FIELD_SET(*this, FIX::UnderlyingSecurityType);
  220. FIELD_SET(*this, FIX::UnderlyingSecuritySubType);
  221. FIELD_SET(*this, FIX::UnderlyingMaturityMonthYear);
  222. FIELD_SET(*this, FIX::UnderlyingMaturityDate);
  223. FIELD_SET(*this, FIX::UnderlyingMaturityTime);
  224. FIELD_SET(*this, FIX::UnderlyingCouponPaymentDate);
  225. FIELD_SET(*this, FIX::UnderlyingIssueDate);
  226. FIELD_SET(*this, FIX::UnderlyingRepoCollateralSecurityType);
  227. FIELD_SET(*this, FIX::UnderlyingRepurchaseTerm);
  228. FIELD_SET(*this, FIX::UnderlyingRepurchaseRate);
  229. FIELD_SET(*this, FIX::UnderlyingFactor);
  230. FIELD_SET(*this, FIX::UnderlyingCreditRating);
  231. FIELD_SET(*this, FIX::UnderlyingInstrRegistry);
  232. FIELD_SET(*this, FIX::UnderlyingCountryOfIssue);
  233. FIELD_SET(*this, FIX::UnderlyingStateOrProvinceOfIssue);
  234. FIELD_SET(*this, FIX::UnderlyingLocaleOfIssue);
  235. FIELD_SET(*this, FIX::UnderlyingRedemptionDate);
  236. FIELD_SET(*this, FIX::UnderlyingStrikePrice);
  237. FIELD_SET(*this, FIX::UnderlyingStrikeCurrency);
  238. FIELD_SET(*this, FIX::UnderlyingOptAttribute);
  239. FIELD_SET(*this, FIX::UnderlyingContractMultiplier);
  240. FIELD_SET(*this, FIX::UnderlyingUnitOfMeasure);
  241. FIELD_SET(*this, FIX::UnderlyingUnitOfMeasureQty);
  242. FIELD_SET(*this, FIX::UnderlyingPriceUnitOfMeasure);
  243. FIELD_SET(*this, FIX::UnderlyingPriceUnitOfMeasureQty);
  244. FIELD_SET(*this, FIX::UnderlyingTimeUnit);
  245. FIELD_SET(*this, FIX::UnderlyingExerciseStyle);
  246. FIELD_SET(*this, FIX::UnderlyingCouponRate);
  247. FIELD_SET(*this, FIX::UnderlyingSecurityExchange);
  248. FIELD_SET(*this, FIX::UnderlyingIssuer);
  249. FIELD_SET(*this, FIX::EncodedUnderlyingIssuerLen);
  250. FIELD_SET(*this, FIX::EncodedUnderlyingIssuer);
  251. FIELD_SET(*this, FIX::UnderlyingSecurityDesc);
  252. FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDescLen);
  253. FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDesc);
  254. FIELD_SET(*this, FIX::UnderlyingCPProgram);
  255. FIELD_SET(*this, FIX::UnderlyingCPRegType);
  256. FIELD_SET(*this, FIX::UnderlyingAllocationPercent);
  257. FIELD_SET(*this, FIX::UnderlyingCurrency);
  258. FIELD_SET(*this, FIX::UnderlyingQty);
  259. FIELD_SET(*this, FIX::UnderlyingSettlementType);
  260. FIELD_SET(*this, FIX::UnderlyingCashAmount);
  261. FIELD_SET(*this, FIX::UnderlyingCashType);
  262. FIELD_SET(*this, FIX::UnderlyingPx);
  263. FIELD_SET(*this, FIX::UnderlyingDirtyPrice);
  264. FIELD_SET(*this, FIX::UnderlyingEndPrice);
  265. FIELD_SET(*this, FIX::UnderlyingStartValue);
  266. FIELD_SET(*this, FIX::UnderlyingCurrentValue);
  267. FIELD_SET(*this, FIX::UnderlyingEndValue);
  268. FIELD_SET(*this, FIX::UnderlyingAdjustedQuantity);
  269. FIELD_SET(*this, FIX::UnderlyingFXRate);
  270. FIELD_SET(*this, FIX::UnderlyingFXRateCalc);
  271. FIELD_SET(*this, FIX::UnderlyingCapValue);
  272. FIELD_SET(*this, FIX::UnderlyingSettlMethod);
  273. FIELD_SET(*this, FIX::UnderlyingPutOrCall);
  274. };
  275. FIELD_SET(*this, FIX::Side);
  276. FIELD_SET(*this, FIX::NoStipulations);
  277. class NoStipulations: public FIX::Group
  278. {
  279. public:
  280. NoStipulations() : FIX::Group(232,233,FIX::message_order(233,234,0)) {}
  281. FIELD_SET(*this, FIX::StipulationType);
  282. FIELD_SET(*this, FIX::StipulationValue);
  283. };
  284. FIELD_SET(*this, FIX::QtyType);
  285. FIELD_SET(*this, FIX::OrderQty);
  286. FIELD_SET(*this, FIX::CashOrderQty);
  287. FIELD_SET(*this, FIX::OrderPercent);
  288. FIELD_SET(*this, FIX::RoundingDirection);
  289. FIELD_SET(*this, FIX::RoundingModulus);
  290. FIELD_SET(*this, FIX::LotType);
  291. FIELD_SET(*this, FIX::OrdType);
  292. FIELD_SET(*this, FIX::PriceType);
  293. FIELD_SET(*this, FIX::Price);
  294. FIELD_SET(*this, FIX::PriceProtectionScope);
  295. FIELD_SET(*this, FIX::StopPx);
  296. FIELD_SET(*this, FIX::TriggerType);
  297. FIELD_SET(*this, FIX::TriggerAction);
  298. FIELD_SET(*this, FIX::TriggerPrice);
  299. FIELD_SET(*this, FIX::TriggerSymbol);
  300. FIELD_SET(*this, FIX::TriggerSecurityID);
  301. FIELD_SET(*this, FIX::TriggerSecurityIDSource);
  302. FIELD_SET(*this, FIX::TriggerSecurityDesc);
  303. FIELD_SET(*this, FIX::TriggerPriceType);
  304. FIELD_SET(*this, FIX::TriggerPriceTypeScope);
  305. FIELD_SET(*this, FIX::TriggerPriceDirection);
  306. FIELD_SET(*this, FIX::TriggerNewPrice);
  307. FIELD_SET(*this, FIX::TriggerOrderType);
  308. FIELD_SET(*this, FIX::TriggerNewQty);
  309. FIELD_SET(*this, FIX::TriggerTradingSessionID);
  310. FIELD_SET(*this, FIX::TriggerTradingSessionSubID);
  311. FIELD_SET(*this, FIX::PegOffsetValue);
  312. FIELD_SET(*this, FIX::PegPriceType);
  313. FIELD_SET(*this, FIX::PegMoveType);
  314. FIELD_SET(*this, FIX::PegOffsetType);
  315. FIELD_SET(*this, FIX::PegLimitType);
  316. FIELD_SET(*this, FIX::PegRoundDirection);
  317. FIELD_SET(*this, FIX::PegScope);
  318. FIELD_SET(*this, FIX::PegSecurityIDSource);
  319. FIELD_SET(*this, FIX::PegSecurityID);
  320. FIELD_SET(*this, FIX::PegSymbol);
  321. FIELD_SET(*this, FIX::PegSecurityDesc);
  322. FIELD_SET(*this, FIX::DiscretionInst);
  323. FIELD_SET(*this, FIX::DiscretionOffsetValue);
  324. FIELD_SET(*this, FIX::DiscretionMoveType);
  325. FIELD_SET(*this, FIX::DiscretionOffsetType);
  326. FIELD_SET(*this, FIX::DiscretionLimitType);
  327. FIELD_SET(*this, FIX::DiscretionRoundDirection);
  328. FIELD_SET(*this, FIX::DiscretionScope);
  329. FIELD_SET(*this, FIX::PeggedPrice);
  330. FIELD_SET(*this, FIX::PeggedRefPrice);
  331. FIELD_SET(*this, FIX::DiscretionPrice);
  332. FIELD_SET(*this, FIX::TargetStrategy);
  333. FIELD_SET(*this, FIX::NoStrategyParameters);
  334. class NoStrategyParameters: public FIX::Group
  335. {
  336. public:
  337. NoStrategyParameters() : FIX::Group(957,958,FIX::message_order(958,959,960,0)) {}
  338. FIELD_SET(*this, FIX::StrategyParameterName);
  339. FIELD_SET(*this, FIX::StrategyParameterType);
  340. FIELD_SET(*this, FIX::StrategyParameterValue);
  341. };
  342. FIELD_SET(*this, FIX::TargetStrategyParameters);
  343. FIELD_SET(*this, FIX::ParticipationRate);
  344. FIELD_SET(*this, FIX::TargetStrategyPerformance);
  345. FIELD_SET(*this, FIX::Currency);
  346. FIELD_SET(*this, FIX::ComplianceID);
  347. FIELD_SET(*this, FIX::SolicitedFlag);
  348. FIELD_SET(*this, FIX::TimeInForce);
  349. FIELD_SET(*this, FIX::EffectiveTime);
  350. FIELD_SET(*this, FIX::ExpireDate);
  351. FIELD_SET(*this, FIX::ExpireTime);
  352. FIELD_SET(*this, FIX::ExecInst);
  353. FIELD_SET(*this, FIX::AggressorIndicator);
  354. FIELD_SET(*this, FIX::OrderCapacity);
  355. FIELD_SET(*this, FIX::OrderRestrictions);
  356. FIELD_SET(*this, FIX::PreTradeAnonymity);
  357. FIELD_SET(*this, FIX::CustOrderCapacity);
  358. FIELD_SET(*this, FIX::LastQty);
  359. FIELD_SET(*this, FIX::CalculatedCcyLastQty);
  360. FIELD_SET(*this, FIX::LastSwapPoints);
  361. FIELD_SET(*this, FIX::UnderlyingLastQty);
  362. FIELD_SET(*this, FIX::LastPx);
  363. FIELD_SET(*this, FIX::UnderlyingLastPx);
  364. FIELD_SET(*this, FIX::LastParPx);
  365. FIELD_SET(*this, FIX::LastSpotRate);
  366. FIELD_SET(*this, FIX::LastForwardPoints);
  367. FIELD_SET(*this, FIX::LastMkt);
  368. FIELD_SET(*this, FIX::TradingSessionID);
  369. FIELD_SET(*this, FIX::TradingSessionSubID);
  370. FIELD_SET(*this, FIX::TimeBracket);
  371. FIELD_SET(*this, FIX::LastCapacity);
  372. FIELD_SET(*this, FIX::LeavesQty);
  373. FIELD_SET(*this, FIX::CumQty);
  374. FIELD_SET(*this, FIX::AvgPx);
  375. FIELD_SET(*this, FIX::DayOrderQty);
  376. FIELD_SET(*this, FIX::DayCumQty);
  377. FIELD_SET(*this, FIX::DayAvgPx);
  378. FIELD_SET(*this, FIX::TotNoFills);
  379. FIELD_SET(*this, FIX::LastFragment);
  380. FIELD_SET(*this, FIX::NoFills);
  381. class NoFills: public FIX::Group
  382. {
  383. public:
  384. NoFills() : FIX::Group(1362,1363,FIX::message_order(1363,1364,1365,1414,0)) {}
  385. FIELD_SET(*this, FIX::FillExecID);
  386. FIELD_SET(*this, FIX::FillPx);
  387. FIELD_SET(*this, FIX::FillQty);
  388. FIELD_SET(*this, FIX::NoNested4PartyIDs);
  389. class NoNested4PartyIDs: public FIX::Group
  390. {
  391. public:
  392. NoNested4PartyIDs() : FIX::Group(1414,1415,FIX::message_order(1415,1416,1417,1413,0)) {}
  393. FIELD_SET(*this, FIX::Nested4PartyID);
  394. FIELD_SET(*this, FIX::Nested4PartyIDSource);
  395. FIELD_SET(*this, FIX::Nested4PartyRole);
  396. FIELD_SET(*this, FIX::NoNested4PartySubIDs);
  397. class NoNested4PartySubIDs: public FIX::Group
  398. {
  399. public:
  400. NoNested4PartySubIDs() : FIX::Group(1413,1412,FIX::message_order(1412,1411,0)) {}
  401. FIELD_SET(*this, FIX::Nested4PartySubID);
  402. FIELD_SET(*this, FIX::Nested4PartySubIDType);
  403. };
  404. };
  405. };
  406. FIELD_SET(*this, FIX::GTBookingInst);
  407. FIELD_SET(*this, FIX::TradeDate);
  408. FIELD_SET(*this, FIX::TransactTime);
  409. FIELD_SET(*this, FIX::ReportToExch);
  410. FIELD_SET(*this, FIX::Commission);
  411. FIELD_SET(*this, FIX::CommType);
  412. FIELD_SET(*this, FIX::CommCurrency);
  413. FIELD_SET(*this, FIX::FundRenewWaiv);
  414. FIELD_SET(*this, FIX::Spread);
  415. FIELD_SET(*this, FIX::BenchmarkCurveCurrency);
  416. FIELD_SET(*this, FIX::BenchmarkCurveName);
  417. FIELD_SET(*this, FIX::BenchmarkCurvePoint);
  418. FIELD_SET(*this, FIX::BenchmarkPrice);
  419. FIELD_SET(*this, FIX::BenchmarkPriceType);
  420. FIELD_SET(*this, FIX::BenchmarkSecurityID);
  421. FIELD_SET(*this, FIX::BenchmarkSecurityIDSource);
  422. FIELD_SET(*this, FIX::YieldType);
  423. FIELD_SET(*this, FIX::Yield);
  424. FIELD_SET(*this, FIX::YieldCalcDate);
  425. FIELD_SET(*this, FIX::YieldRedemptionDate);
  426. FIELD_SET(*this, FIX::YieldRedemptionPrice);
  427. FIELD_SET(*this, FIX::YieldRedemptionPriceType);
  428. FIELD_SET(*this, FIX::GrossTradeAmt);
  429. FIELD_SET(*this, FIX::NumDaysInterest);
  430. FIELD_SET(*this, FIX::ExDate);
  431. FIELD_SET(*this, FIX::AccruedInterestRate);
  432. FIELD_SET(*this, FIX::AccruedInterestAmt);
  433. FIELD_SET(*this, FIX::InterestAtMaturity);
  434. FIELD_SET(*this, FIX::EndAccruedInterestAmt);
  435. FIELD_SET(*this, FIX::StartCash);
  436. FIELD_SET(*this, FIX::EndCash);
  437. FIELD_SET(*this, FIX::TradedFlatSwitch);
  438. FIELD_SET(*this, FIX::BasisFeatureDate);
  439. FIELD_SET(*this, FIX::BasisFeaturePrice);
  440. FIELD_SET(*this, FIX::Concession);
  441. FIELD_SET(*this, FIX::TotalTakedown);
  442. FIELD_SET(*this, FIX::NetMoney);
  443. FIELD_SET(*this, FIX::SettlCurrAmt);
  444. FIELD_SET(*this, FIX::SettlCurrency);
  445. FIELD_SET(*this, FIX::SettlCurrFxRate);
  446. FIELD_SET(*this, FIX::SettlCurrFxRateCalc);
  447. FIELD_SET(*this, FIX::HandlInst);
  448. FIELD_SET(*this, FIX::MinQty);
  449. FIELD_SET(*this, FIX::MatchIncrement);
  450. FIELD_SET(*this, FIX::MaxPriceLevels);
  451. FIELD_SET(*this, FIX::DisplayQty);
  452. FIELD_SET(*this, FIX::SecondaryDisplayQty);
  453. FIELD_SET(*this, FIX::DisplayWhen);
  454. FIELD_SET(*this, FIX::DisplayMethod);
  455. FIELD_SET(*this, FIX::DisplayLowQty);
  456. FIELD_SET(*this, FIX::DisplayHighQty);
  457. FIELD_SET(*this, FIX::DisplayMinIncr);
  458. FIELD_SET(*this, FIX::RefreshQty);
  459. FIELD_SET(*this, FIX::MaxFloor);
  460. FIELD_SET(*this, FIX::PositionEffect);
  461. FIELD_SET(*this, FIX::MaxShow);
  462. FIELD_SET(*this, FIX::BookingType);
  463. FIELD_SET(*this, FIX::Text);
  464. FIELD_SET(*this, FIX::EncodedTextLen);
  465. FIELD_SET(*this, FIX::EncodedText);
  466. FIELD_SET(*this, FIX::SettlDate2);
  467. FIELD_SET(*this, FIX::OrderQty2);
  468. FIELD_SET(*this, FIX::LastForwardPoints2);
  469. FIELD_SET(*this, FIX::MultiLegReportingType);
  470. FIELD_SET(*this, FIX::CancellationRights);
  471. FIELD_SET(*this, FIX::MoneyLaunderingStatus);
  472. FIELD_SET(*this, FIX::RegistID);
  473. FIELD_SET(*this, FIX::Designation);
  474. FIELD_SET(*this, FIX::TransBkdTime);
  475. FIELD_SET(*this, FIX::ExecValuationPoint);
  476. FIELD_SET(*this, FIX::ExecPriceType);
  477. FIELD_SET(*this, FIX::ExecPriceAdjustment);
  478. FIELD_SET(*this, FIX::PriorityIndicator);
  479. FIELD_SET(*this, FIX::PriceImprovement);
  480. FIELD_SET(*this, FIX::LastLiquidityInd);
  481. FIELD_SET(*this, FIX::NoContAmts);
  482. class NoContAmts: public FIX::Group
  483. {
  484. public:
  485. NoContAmts() : FIX::Group(518,519,FIX::message_order(519,520,521,0)) {}
  486. FIELD_SET(*this, FIX::ContAmtType);
  487. FIELD_SET(*this, FIX::ContAmtValue);
  488. FIELD_SET(*this, FIX::ContAmtCurr);
  489. };
  490. FIELD_SET(*this, FIX::NoLegs);
  491. class NoLegs: public FIX::Group
  492. {
  493. public:
  494. 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,687,685,690,683,1366,670,564,565,948,654,587,588,637,675,1073,1074,1075,1379,1381,1383,1384,1418,0)) {}
  495. FIELD_SET(*this, FIX::LegSymbol);
  496. FIELD_SET(*this, FIX::LegSymbolSfx);
  497. FIELD_SET(*this, FIX::LegSecurityID);
  498. FIELD_SET(*this, FIX::LegSecurityIDSource);
  499. FIELD_SET(*this, FIX::LegProduct);
  500. FIELD_SET(*this, FIX::LegCFICode);
  501. FIELD_SET(*this, FIX::LegSecurityType);
  502. FIELD_SET(*this, FIX::LegSecuritySubType);
  503. FIELD_SET(*this, FIX::LegMaturityMonthYear);
  504. FIELD_SET(*this, FIX::LegMaturityDate);
  505. FIELD_SET(*this, FIX::LegMaturityTime);
  506. FIELD_SET(*this, FIX::LegCouponPaymentDate);
  507. FIELD_SET(*this, FIX::LegIssueDate);
  508. FIELD_SET(*this, FIX::LegRepoCollateralSecurityType);
  509. FIELD_SET(*this, FIX::LegRepurchaseTerm);
  510. FIELD_SET(*this, FIX::LegRepurchaseRate);
  511. FIELD_SET(*this, FIX::LegFactor);
  512. FIELD_SET(*this, FIX::LegCreditRating);
  513. FIELD_SET(*this, FIX::LegInstrRegistry);
  514. FIELD_SET(*this, FIX::LegCountryOfIssue);
  515. FIELD_SET(*this, FIX::LegStateOrProvinceOfIssue);
  516. FIELD_SET(*this, FIX::LegLocaleOfIssue);
  517. FIELD_SET(*this, FIX::LegRedemptionDate);
  518. FIELD_SET(*this, FIX::LegStrikePrice);
  519. FIELD_SET(*this, FIX::LegStrikeCurrency);
  520. FIELD_SET(*this, FIX::LegOptAttribute);
  521. FIELD_SET(*this, FIX::LegContractMultiplier);
  522. FIELD_SET(*this, FIX::LegUnitOfMeasure);
  523. FIELD_SET(*this, FIX::LegUnitOfMeasureQty);
  524. FIELD_SET(*this, FIX::LegPriceUnitOfMeasure);
  525. FIELD_SET(*this, FIX::LegPriceUnitOfMeasureQty);
  526. FIELD_SET(*this, FIX::LegTimeUnit);
  527. FIELD_SET(*this, FIX::LegExerciseStyle);
  528. FIELD_SET(*this, FIX::LegCouponRate);
  529. FIELD_SET(*this, FIX::LegSecurityExchange);
  530. FIELD_SET(*this, FIX::LegIssuer);
  531. FIELD_SET(*this, FIX::EncodedLegIssuerLen);
  532. FIELD_SET(*this, FIX::EncodedLegIssuer);
  533. FIELD_SET(*this, FIX::LegSecurityDesc);
  534. FIELD_SET(*this, FIX::EncodedLegSecurityDescLen);
  535. FIELD_SET(*this, FIX::EncodedLegSecurityDesc);
  536. FIELD_SET(*this, FIX::LegRatioQty);
  537. FIELD_SET(*this, FIX::LegSide);
  538. FIELD_SET(*this, FIX::LegCurrency);
  539. FIELD_SET(*this, FIX::LegPool);
  540. FIELD_SET(*this, FIX::LegDatedDate);
  541. FIELD_SET(*this, FIX::LegContractSettlMonth);
  542. FIELD_SET(*this, FIX::LegInterestAccrualDate);
  543. FIELD_SET(*this, FIX::LegPutOrCall);
  544. FIELD_SET(*this, FIX::LegOptionRatio);
  545. FIELD_SET(*this, FIX::LegQty);
  546. FIELD_SET(*this, FIX::LegOrderQty);
  547. FIELD_SET(*this, FIX::LegSwapType);
  548. FIELD_SET(*this, FIX::NoLegStipulations);
  549. class NoLegStipulations: public FIX::Group
  550. {
  551. public:
  552. NoLegStipulations() : FIX::Group(683,688,FIX::message_order(688,689,0)) {}
  553. FIELD_SET(*this, FIX::LegStipulationType);
  554. FIELD_SET(*this, FIX::LegStipulationValue);
  555. };
  556. FIELD_SET(*this, FIX::LegAllocID);
  557. FIELD_SET(*this, FIX::NoLegAllocs);
  558. class NoLegAllocs: public FIX::Group
  559. {
  560. public:
  561. NoLegAllocs() : FIX::Group(670,671,FIX::message_order(671,672,756,673,674,1367,0)) {}
  562. FIELD_SET(*this, FIX::LegAllocAccount);
  563. FIELD_SET(*this, FIX::LegIndividualAllocID);
  564. FIELD_SET(*this, FIX::NoNested2PartyIDs);
  565. class NoNested2PartyIDs: public FIX::Group
  566. {
  567. public:
  568. NoNested2PartyIDs() : FIX::Group(756,757,FIX::message_order(757,758,759,806,0)) {}
  569. FIELD_SET(*this, FIX::Nested2PartyID);
  570. FIELD_SET(*this, FIX::Nested2PartyIDSource);
  571. FIELD_SET(*this, FIX::Nested2PartyRole);
  572. FIELD_SET(*this, FIX::NoNested2PartySubIDs);
  573. class NoNested2PartySubIDs: public FIX::Group
  574. {
  575. public:
  576. NoNested2PartySubIDs() : FIX::Group(806,760,FIX::message_order(760,807,0)) {}
  577. FIELD_SET(*this, FIX::Nested2PartySubID);
  578. FIELD_SET(*this, FIX::Nested2PartySubIDType);
  579. };
  580. };
  581. FIELD_SET(*this, FIX::LegAllocQty);
  582. FIELD_SET(*this, FIX::LegAllocAcctIDSource);
  583. FIELD_SET(*this, FIX::LegAllocSettlCurrency);
  584. };
  585. FIELD_SET(*this, FIX::LegPositionEffect);
  586. FIELD_SET(*this, FIX::LegCoveredOrUncovered);
  587. FIELD_SET(*this, FIX::NoNested3PartyIDs);
  588. class NoNested3PartyIDs: public FIX::Group
  589. {
  590. public:
  591. NoNested3PartyIDs() : FIX::Group(948,949,FIX::message_order(949,950,951,952,0)) {}
  592. FIELD_SET(*this, FIX::Nested3PartyID);
  593. FIELD_SET(*this, FIX::Nested3PartyIDSource);
  594. FIELD_SET(*this, FIX::Nested3PartyRole);
  595. FIELD_SET(*this, FIX::NoNested3PartySubIDs);
  596. class NoNested3PartySubIDs: public FIX::Group
  597. {
  598. public:
  599. NoNested3PartySubIDs() : FIX::Group(952,953,FIX::message_order(953,954,0)) {}
  600. FIELD_SET(*this, FIX::Nested3PartySubID);
  601. FIELD_SET(*this, FIX::Nested3PartySubIDType);
  602. };
  603. };
  604. FIELD_SET(*this, FIX::LegRefID);
  605. FIELD_SET(*this, FIX::LegSettlType);
  606. FIELD_SET(*this, FIX::LegSettlDate);
  607. FIELD_SET(*this, FIX::LegLastPx);
  608. FIELD_SET(*this, FIX::LegSettlCurrency);
  609. FIELD_SET(*this, FIX::LegLastForwardPoints);
  610. FIELD_SET(*this, FIX::LegCalculatedCcyLastQty);
  611. FIELD_SET(*this, FIX::LegGrossTradeAmt);
  612. FIELD_SET(*this, FIX::LegVolatility);
  613. FIELD_SET(*this, FIX::LegDividendYield);
  614. FIELD_SET(*this, FIX::LegCurrencyRatio);
  615. FIELD_SET(*this, FIX::LegExecInst);
  616. FIELD_SET(*this, FIX::LegLastQty);
  617. };
  618. FIELD_SET(*this, FIX::CopyMsgIndicator);
  619. FIELD_SET(*this, FIX::NoMiscFees);
  620. class NoMiscFees: public FIX::Group
  621. {
  622. public:
  623. NoMiscFees() : FIX::Group(136,137,FIX::message_order(137,138,139,891,0)) {}
  624. FIELD_SET(*this, FIX::MiscFeeAmt);
  625. FIELD_SET(*this, FIX::MiscFeeCurr);
  626. FIELD_SET(*this, FIX::MiscFeeType);
  627. FIELD_SET(*this, FIX::MiscFeeBasis);
  628. };
  629. FIELD_SET(*this, FIX::DividendYield);
  630. FIELD_SET(*this, FIX::ManualOrderIndicator);
  631. FIELD_SET(*this, FIX::CustDirectedOrder);
  632. FIELD_SET(*this, FIX::ReceivedDeptID);
  633. FIELD_SET(*this, FIX::CustOrderHandlingInst);
  634. FIELD_SET(*this, FIX::OrderHandlingInstSource);
  635. FIELD_SET(*this, FIX::NoTrdRegTimestamps);
  636. class NoTrdRegTimestamps: public FIX::Group
  637. {
  638. public:
  639. NoTrdRegTimestamps() : FIX::Group(768,769,FIX::message_order(769,770,771,1033,1034,1035,0)) {}
  640. FIELD_SET(*this, FIX::TrdRegTimestamp);
  641. FIELD_SET(*this, FIX::TrdRegTimestampType);
  642. FIELD_SET(*this, FIX::TrdRegTimestampOrigin);
  643. FIELD_SET(*this, FIX::DeskType);
  644. FIELD_SET(*this, FIX::DeskTypeSource);
  645. FIELD_SET(*this, FIX::DeskOrderHandlingInst);
  646. };
  647. FIELD_SET(*this, FIX::Volatility);
  648. FIELD_SET(*this, FIX::TimeToExpiration);
  649. FIELD_SET(*this, FIX::RiskFreeRate);
  650. FIELD_SET(*this, FIX::PriceDelta);
  651. };
  652. }
  653. #endif