AllocationInstruction.h 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503
  1. #ifndef FIX50SP2_ALLOCATIONINSTRUCTION_H
  2. #define FIX50SP2_ALLOCATIONINSTRUCTION_H
  3. #include "Message.h"
  4. namespace FIX50SP2
  5. {
  6. class AllocationInstruction : public Message
  7. {
  8. public:
  9. AllocationInstruction() : Message(MsgType()) {}
  10. AllocationInstruction(const FIX::Message& m) : Message(m) {}
  11. AllocationInstruction(const Message& m) : Message(m) {}
  12. AllocationInstruction(const AllocationInstruction& m) : Message(m) {}
  13. static FIX::MsgType MsgType() { return FIX::MsgType("J"); }
  14. AllocationInstruction(
  15. const FIX::AllocID& aAllocID,
  16. const FIX::AllocTransType& aAllocTransType,
  17. const FIX::AllocType& aAllocType,
  18. const FIX::Side& aSide,
  19. const FIX::Quantity& aQuantity,
  20. const FIX::TradeDate& aTradeDate )
  21. : Message(MsgType())
  22. {
  23. set(aAllocID);
  24. set(aAllocTransType);
  25. set(aAllocType);
  26. set(aSide);
  27. set(aQuantity);
  28. set(aTradeDate);
  29. }
  30. FIELD_SET(*this, FIX::AllocID);
  31. FIELD_SET(*this, FIX::AllocTransType);
  32. FIELD_SET(*this, FIX::AllocType);
  33. FIELD_SET(*this, FIX::SecondaryAllocID);
  34. FIELD_SET(*this, FIX::RefAllocID);
  35. FIELD_SET(*this, FIX::AllocCancReplaceReason);
  36. FIELD_SET(*this, FIX::AllocIntermedReqType);
  37. FIELD_SET(*this, FIX::AllocLinkID);
  38. FIELD_SET(*this, FIX::AllocLinkType);
  39. FIELD_SET(*this, FIX::BookingRefID);
  40. FIELD_SET(*this, FIX::AllocNoOrdersType);
  41. FIELD_SET(*this, FIX::NoOrders);
  42. class NoOrders: public FIX::Group
  43. {
  44. public:
  45. NoOrders() : FIX::Group(73,11,FIX::message_order(11,37,198,526,66,756,38,799,800,0)) {}
  46. FIELD_SET(*this, FIX::ClOrdID);
  47. FIELD_SET(*this, FIX::OrderID);
  48. FIELD_SET(*this, FIX::SecondaryOrderID);
  49. FIELD_SET(*this, FIX::SecondaryClOrdID);
  50. FIELD_SET(*this, FIX::ListID);
  51. FIELD_SET(*this, FIX::NoNested2PartyIDs);
  52. class NoNested2PartyIDs: public FIX::Group
  53. {
  54. public:
  55. NoNested2PartyIDs() : FIX::Group(756,757,FIX::message_order(757,758,759,806,0)) {}
  56. FIELD_SET(*this, FIX::Nested2PartyID);
  57. FIELD_SET(*this, FIX::Nested2PartyIDSource);
  58. FIELD_SET(*this, FIX::Nested2PartyRole);
  59. FIELD_SET(*this, FIX::NoNested2PartySubIDs);
  60. class NoNested2PartySubIDs: public FIX::Group
  61. {
  62. public:
  63. NoNested2PartySubIDs() : FIX::Group(806,760,FIX::message_order(760,807,0)) {}
  64. FIELD_SET(*this, FIX::Nested2PartySubID);
  65. FIELD_SET(*this, FIX::Nested2PartySubIDType);
  66. };
  67. };
  68. FIELD_SET(*this, FIX::OrderQty);
  69. FIELD_SET(*this, FIX::OrderAvgPx);
  70. FIELD_SET(*this, FIX::OrderBookingQty);
  71. };
  72. FIELD_SET(*this, FIX::NoExecs);
  73. class NoExecs: public FIX::Group
  74. {
  75. public:
  76. NoExecs() : FIX::Group(124,32,FIX::message_order(32,17,527,31,669,29,1003,1041,0)) {}
  77. FIELD_SET(*this, FIX::LastQty);
  78. FIELD_SET(*this, FIX::ExecID);
  79. FIELD_SET(*this, FIX::SecondaryExecID);
  80. FIELD_SET(*this, FIX::LastPx);
  81. FIELD_SET(*this, FIX::LastParPx);
  82. FIELD_SET(*this, FIX::LastCapacity);
  83. FIELD_SET(*this, FIX::TradeID);
  84. FIELD_SET(*this, FIX::FirmTradeID);
  85. };
  86. FIELD_SET(*this, FIX::PreviouslyReported);
  87. FIELD_SET(*this, FIX::ReversalIndicator);
  88. FIELD_SET(*this, FIX::MatchType);
  89. FIELD_SET(*this, FIX::Side);
  90. FIELD_SET(*this, FIX::Symbol);
  91. FIELD_SET(*this, FIX::SymbolSfx);
  92. FIELD_SET(*this, FIX::SecurityID);
  93. FIELD_SET(*this, FIX::SecurityIDSource);
  94. FIELD_SET(*this, FIX::Product);
  95. FIELD_SET(*this, FIX::ProductComplex);
  96. FIELD_SET(*this, FIX::SecurityGroup);
  97. FIELD_SET(*this, FIX::CFICode);
  98. FIELD_SET(*this, FIX::SecurityType);
  99. FIELD_SET(*this, FIX::SecuritySubType);
  100. FIELD_SET(*this, FIX::MaturityMonthYear);
  101. FIELD_SET(*this, FIX::MaturityDate);
  102. FIELD_SET(*this, FIX::MaturityTime);
  103. FIELD_SET(*this, FIX::SettleOnOpenFlag);
  104. FIELD_SET(*this, FIX::InstrmtAssignmentMethod);
  105. FIELD_SET(*this, FIX::SecurityStatus);
  106. FIELD_SET(*this, FIX::CouponPaymentDate);
  107. FIELD_SET(*this, FIX::IssueDate);
  108. FIELD_SET(*this, FIX::RepoCollateralSecurityType);
  109. FIELD_SET(*this, FIX::RepurchaseTerm);
  110. FIELD_SET(*this, FIX::RepurchaseRate);
  111. FIELD_SET(*this, FIX::Factor);
  112. FIELD_SET(*this, FIX::CreditRating);
  113. FIELD_SET(*this, FIX::InstrRegistry);
  114. FIELD_SET(*this, FIX::CountryOfIssue);
  115. FIELD_SET(*this, FIX::StateOrProvinceOfIssue);
  116. FIELD_SET(*this, FIX::LocaleOfIssue);
  117. FIELD_SET(*this, FIX::RedemptionDate);
  118. FIELD_SET(*this, FIX::StrikePrice);
  119. FIELD_SET(*this, FIX::StrikeCurrency);
  120. FIELD_SET(*this, FIX::StrikeMultiplier);
  121. FIELD_SET(*this, FIX::StrikeValue);
  122. FIELD_SET(*this, FIX::OptAttribute);
  123. FIELD_SET(*this, FIX::ContractMultiplier);
  124. FIELD_SET(*this, FIX::MinPriceIncrement);
  125. FIELD_SET(*this, FIX::MinPriceIncrementAmount);
  126. FIELD_SET(*this, FIX::UnitOfMeasure);
  127. FIELD_SET(*this, FIX::UnitOfMeasureQty);
  128. FIELD_SET(*this, FIX::PriceUnitOfMeasure);
  129. FIELD_SET(*this, FIX::PriceUnitOfMeasureQty);
  130. FIELD_SET(*this, FIX::SettlMethod);
  131. FIELD_SET(*this, FIX::ExerciseStyle);
  132. FIELD_SET(*this, FIX::OptPayoutAmount);
  133. FIELD_SET(*this, FIX::PriceQuoteMethod);
  134. FIELD_SET(*this, FIX::ValuationMethod);
  135. FIELD_SET(*this, FIX::ListMethod);
  136. FIELD_SET(*this, FIX::CapPrice);
  137. FIELD_SET(*this, FIX::FloorPrice);
  138. FIELD_SET(*this, FIX::PutOrCall);
  139. FIELD_SET(*this, FIX::FlexibleIndicator);
  140. FIELD_SET(*this, FIX::FlexProductEligibilityIndicator);
  141. FIELD_SET(*this, FIX::TimeUnit);
  142. FIELD_SET(*this, FIX::CouponRate);
  143. FIELD_SET(*this, FIX::SecurityExchange);
  144. FIELD_SET(*this, FIX::PositionLimit);
  145. FIELD_SET(*this, FIX::NTPositionLimit);
  146. FIELD_SET(*this, FIX::Issuer);
  147. FIELD_SET(*this, FIX::EncodedIssuerLen);
  148. FIELD_SET(*this, FIX::EncodedIssuer);
  149. FIELD_SET(*this, FIX::SecurityDesc);
  150. FIELD_SET(*this, FIX::EncodedSecurityDescLen);
  151. FIELD_SET(*this, FIX::EncodedSecurityDesc);
  152. FIELD_SET(*this, FIX::Pool);
  153. FIELD_SET(*this, FIX::ContractSettlMonth);
  154. FIELD_SET(*this, FIX::CPProgram);
  155. FIELD_SET(*this, FIX::CPRegType);
  156. FIELD_SET(*this, FIX::DatedDate);
  157. FIELD_SET(*this, FIX::InterestAccrualDate);
  158. FIELD_SET(*this, FIX::ContractMultiplierUnit);
  159. FIELD_SET(*this, FIX::FlowScheduleType);
  160. FIELD_SET(*this, FIX::RestructuringType);
  161. FIELD_SET(*this, FIX::Seniority);
  162. FIELD_SET(*this, FIX::NotionalPercentageOutstanding);
  163. FIELD_SET(*this, FIX::OriginalNotionalPercentageOutstanding);
  164. FIELD_SET(*this, FIX::AttachmentPoint);
  165. FIELD_SET(*this, FIX::DetachmentPoint);
  166. FIELD_SET(*this, FIX::StrikePriceDeterminationMethod);
  167. FIELD_SET(*this, FIX::StrikePriceBoundaryMethod);
  168. FIELD_SET(*this, FIX::StrikePriceBoundaryPrecision);
  169. FIELD_SET(*this, FIX::UnderlyingPriceDeterminationMethod);
  170. FIELD_SET(*this, FIX::OptPayoutType);
  171. FIELD_SET(*this, FIX::DeliveryForm);
  172. FIELD_SET(*this, FIX::PctAtRisk);
  173. FIELD_SET(*this, FIX::AgreementDesc);
  174. FIELD_SET(*this, FIX::AgreementID);
  175. FIELD_SET(*this, FIX::AgreementDate);
  176. FIELD_SET(*this, FIX::AgreementCurrency);
  177. FIELD_SET(*this, FIX::TerminationType);
  178. FIELD_SET(*this, FIX::StartDate);
  179. FIELD_SET(*this, FIX::EndDate);
  180. FIELD_SET(*this, FIX::DeliveryType);
  181. FIELD_SET(*this, FIX::MarginRatio);
  182. FIELD_SET(*this, FIX::NoUnderlyings);
  183. class NoUnderlyings: public FIX::Group
  184. {
  185. public:
  186. 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)) {}
  187. FIELD_SET(*this, FIX::UnderlyingSymbol);
  188. FIELD_SET(*this, FIX::UnderlyingSymbolSfx);
  189. FIELD_SET(*this, FIX::UnderlyingSecurityID);
  190. FIELD_SET(*this, FIX::UnderlyingSecurityIDSource);
  191. FIELD_SET(*this, FIX::UnderlyingProduct);
  192. FIELD_SET(*this, FIX::UnderlyingCFICode);
  193. FIELD_SET(*this, FIX::UnderlyingSecurityType);
  194. FIELD_SET(*this, FIX::UnderlyingSecuritySubType);
  195. FIELD_SET(*this, FIX::UnderlyingMaturityMonthYear);
  196. FIELD_SET(*this, FIX::UnderlyingMaturityDate);
  197. FIELD_SET(*this, FIX::UnderlyingMaturityTime);
  198. FIELD_SET(*this, FIX::UnderlyingCouponPaymentDate);
  199. FIELD_SET(*this, FIX::UnderlyingIssueDate);
  200. FIELD_SET(*this, FIX::UnderlyingRepoCollateralSecurityType);
  201. FIELD_SET(*this, FIX::UnderlyingRepurchaseTerm);
  202. FIELD_SET(*this, FIX::UnderlyingRepurchaseRate);
  203. FIELD_SET(*this, FIX::UnderlyingFactor);
  204. FIELD_SET(*this, FIX::UnderlyingCreditRating);
  205. FIELD_SET(*this, FIX::UnderlyingInstrRegistry);
  206. FIELD_SET(*this, FIX::UnderlyingCountryOfIssue);
  207. FIELD_SET(*this, FIX::UnderlyingStateOrProvinceOfIssue);
  208. FIELD_SET(*this, FIX::UnderlyingLocaleOfIssue);
  209. FIELD_SET(*this, FIX::UnderlyingRedemptionDate);
  210. FIELD_SET(*this, FIX::UnderlyingStrikePrice);
  211. FIELD_SET(*this, FIX::UnderlyingStrikeCurrency);
  212. FIELD_SET(*this, FIX::UnderlyingOptAttribute);
  213. FIELD_SET(*this, FIX::UnderlyingContractMultiplier);
  214. FIELD_SET(*this, FIX::UnderlyingUnitOfMeasure);
  215. FIELD_SET(*this, FIX::UnderlyingUnitOfMeasureQty);
  216. FIELD_SET(*this, FIX::UnderlyingPriceUnitOfMeasure);
  217. FIELD_SET(*this, FIX::UnderlyingPriceUnitOfMeasureQty);
  218. FIELD_SET(*this, FIX::UnderlyingTimeUnit);
  219. FIELD_SET(*this, FIX::UnderlyingExerciseStyle);
  220. FIELD_SET(*this, FIX::UnderlyingCouponRate);
  221. FIELD_SET(*this, FIX::UnderlyingSecurityExchange);
  222. FIELD_SET(*this, FIX::UnderlyingIssuer);
  223. FIELD_SET(*this, FIX::EncodedUnderlyingIssuerLen);
  224. FIELD_SET(*this, FIX::EncodedUnderlyingIssuer);
  225. FIELD_SET(*this, FIX::UnderlyingSecurityDesc);
  226. FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDescLen);
  227. FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDesc);
  228. FIELD_SET(*this, FIX::UnderlyingCPProgram);
  229. FIELD_SET(*this, FIX::UnderlyingCPRegType);
  230. FIELD_SET(*this, FIX::UnderlyingAllocationPercent);
  231. FIELD_SET(*this, FIX::UnderlyingCurrency);
  232. FIELD_SET(*this, FIX::UnderlyingQty);
  233. FIELD_SET(*this, FIX::UnderlyingSettlementType);
  234. FIELD_SET(*this, FIX::UnderlyingCashAmount);
  235. FIELD_SET(*this, FIX::UnderlyingCashType);
  236. FIELD_SET(*this, FIX::UnderlyingPx);
  237. FIELD_SET(*this, FIX::UnderlyingDirtyPrice);
  238. FIELD_SET(*this, FIX::UnderlyingEndPrice);
  239. FIELD_SET(*this, FIX::UnderlyingStartValue);
  240. FIELD_SET(*this, FIX::UnderlyingCurrentValue);
  241. FIELD_SET(*this, FIX::UnderlyingEndValue);
  242. FIELD_SET(*this, FIX::UnderlyingAdjustedQuantity);
  243. FIELD_SET(*this, FIX::UnderlyingFXRate);
  244. FIELD_SET(*this, FIX::UnderlyingFXRateCalc);
  245. FIELD_SET(*this, FIX::UnderlyingCapValue);
  246. FIELD_SET(*this, FIX::UnderlyingSettlMethod);
  247. FIELD_SET(*this, FIX::UnderlyingPutOrCall);
  248. FIELD_SET(*this, FIX::UnderlyingContractMultiplierUnit);
  249. FIELD_SET(*this, FIX::UnderlyingFlowScheduleType);
  250. FIELD_SET(*this, FIX::UnderlyingRestructuringType);
  251. FIELD_SET(*this, FIX::UnderlyingSeniority);
  252. FIELD_SET(*this, FIX::UnderlyingNotionalPercentageOutstanding);
  253. FIELD_SET(*this, FIX::UnderlyingOriginalNotionalPercentageOutstanding);
  254. FIELD_SET(*this, FIX::UnderlyingAttachmentPoint);
  255. FIELD_SET(*this, FIX::UnderlyingDetachmentPoint);
  256. };
  257. FIELD_SET(*this, FIX::NoLegs);
  258. class NoLegs: public FIX::Group
  259. {
  260. public:
  261. 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,0)) {}
  262. FIELD_SET(*this, FIX::LegSymbol);
  263. FIELD_SET(*this, FIX::LegSymbolSfx);
  264. FIELD_SET(*this, FIX::LegSecurityID);
  265. FIELD_SET(*this, FIX::LegSecurityIDSource);
  266. FIELD_SET(*this, FIX::LegProduct);
  267. FIELD_SET(*this, FIX::LegCFICode);
  268. FIELD_SET(*this, FIX::LegSecurityType);
  269. FIELD_SET(*this, FIX::LegSecuritySubType);
  270. FIELD_SET(*this, FIX::LegMaturityMonthYear);
  271. FIELD_SET(*this, FIX::LegMaturityDate);
  272. FIELD_SET(*this, FIX::LegMaturityTime);
  273. FIELD_SET(*this, FIX::LegCouponPaymentDate);
  274. FIELD_SET(*this, FIX::LegIssueDate);
  275. FIELD_SET(*this, FIX::LegRepoCollateralSecurityType);
  276. FIELD_SET(*this, FIX::LegRepurchaseTerm);
  277. FIELD_SET(*this, FIX::LegRepurchaseRate);
  278. FIELD_SET(*this, FIX::LegFactor);
  279. FIELD_SET(*this, FIX::LegCreditRating);
  280. FIELD_SET(*this, FIX::LegInstrRegistry);
  281. FIELD_SET(*this, FIX::LegCountryOfIssue);
  282. FIELD_SET(*this, FIX::LegStateOrProvinceOfIssue);
  283. FIELD_SET(*this, FIX::LegLocaleOfIssue);
  284. FIELD_SET(*this, FIX::LegRedemptionDate);
  285. FIELD_SET(*this, FIX::LegStrikePrice);
  286. FIELD_SET(*this, FIX::LegStrikeCurrency);
  287. FIELD_SET(*this, FIX::LegOptAttribute);
  288. FIELD_SET(*this, FIX::LegContractMultiplier);
  289. FIELD_SET(*this, FIX::LegUnitOfMeasure);
  290. FIELD_SET(*this, FIX::LegUnitOfMeasureQty);
  291. FIELD_SET(*this, FIX::LegPriceUnitOfMeasure);
  292. FIELD_SET(*this, FIX::LegPriceUnitOfMeasureQty);
  293. FIELD_SET(*this, FIX::LegTimeUnit);
  294. FIELD_SET(*this, FIX::LegExerciseStyle);
  295. FIELD_SET(*this, FIX::LegCouponRate);
  296. FIELD_SET(*this, FIX::LegSecurityExchange);
  297. FIELD_SET(*this, FIX::LegIssuer);
  298. FIELD_SET(*this, FIX::EncodedLegIssuerLen);
  299. FIELD_SET(*this, FIX::EncodedLegIssuer);
  300. FIELD_SET(*this, FIX::LegSecurityDesc);
  301. FIELD_SET(*this, FIX::EncodedLegSecurityDescLen);
  302. FIELD_SET(*this, FIX::EncodedLegSecurityDesc);
  303. FIELD_SET(*this, FIX::LegRatioQty);
  304. FIELD_SET(*this, FIX::LegSide);
  305. FIELD_SET(*this, FIX::LegCurrency);
  306. FIELD_SET(*this, FIX::LegPool);
  307. FIELD_SET(*this, FIX::LegDatedDate);
  308. FIELD_SET(*this, FIX::LegContractSettlMonth);
  309. FIELD_SET(*this, FIX::LegInterestAccrualDate);
  310. FIELD_SET(*this, FIX::LegPutOrCall);
  311. FIELD_SET(*this, FIX::LegOptionRatio);
  312. FIELD_SET(*this, FIX::LegContractMultiplierUnit);
  313. FIELD_SET(*this, FIX::LegFlowScheduleType);
  314. };
  315. FIELD_SET(*this, FIX::Quantity);
  316. FIELD_SET(*this, FIX::QtyType);
  317. FIELD_SET(*this, FIX::LastMkt);
  318. FIELD_SET(*this, FIX::TradeOriginationDate);
  319. FIELD_SET(*this, FIX::TradingSessionID);
  320. FIELD_SET(*this, FIX::TradingSessionSubID);
  321. FIELD_SET(*this, FIX::PriceType);
  322. FIELD_SET(*this, FIX::AvgPx);
  323. FIELD_SET(*this, FIX::AvgParPx);
  324. FIELD_SET(*this, FIX::Spread);
  325. FIELD_SET(*this, FIX::BenchmarkCurveCurrency);
  326. FIELD_SET(*this, FIX::BenchmarkCurveName);
  327. FIELD_SET(*this, FIX::BenchmarkCurvePoint);
  328. FIELD_SET(*this, FIX::BenchmarkPrice);
  329. FIELD_SET(*this, FIX::BenchmarkPriceType);
  330. FIELD_SET(*this, FIX::BenchmarkSecurityID);
  331. FIELD_SET(*this, FIX::BenchmarkSecurityIDSource);
  332. FIELD_SET(*this, FIX::Currency);
  333. FIELD_SET(*this, FIX::AvgPxPrecision);
  334. FIELD_SET(*this, FIX::NoPartyIDs);
  335. class NoPartyIDs: public FIX::Group
  336. {
  337. public:
  338. NoPartyIDs() : FIX::Group(453,448,FIX::message_order(448,447,452,802,0)) {}
  339. FIELD_SET(*this, FIX::PartyID);
  340. FIELD_SET(*this, FIX::PartyIDSource);
  341. FIELD_SET(*this, FIX::PartyRole);
  342. FIELD_SET(*this, FIX::NoPartySubIDs);
  343. class NoPartySubIDs: public FIX::Group
  344. {
  345. public:
  346. NoPartySubIDs() : FIX::Group(802,523,FIX::message_order(523,803,0)) {}
  347. FIELD_SET(*this, FIX::PartySubID);
  348. FIELD_SET(*this, FIX::PartySubIDType);
  349. };
  350. };
  351. FIELD_SET(*this, FIX::TradeDate);
  352. FIELD_SET(*this, FIX::TransactTime);
  353. FIELD_SET(*this, FIX::SettlType);
  354. FIELD_SET(*this, FIX::SettlDate);
  355. FIELD_SET(*this, FIX::BookingType);
  356. FIELD_SET(*this, FIX::GrossTradeAmt);
  357. FIELD_SET(*this, FIX::Concession);
  358. FIELD_SET(*this, FIX::TotalTakedown);
  359. FIELD_SET(*this, FIX::NetMoney);
  360. FIELD_SET(*this, FIX::PositionEffect);
  361. FIELD_SET(*this, FIX::AutoAcceptIndicator);
  362. FIELD_SET(*this, FIX::Text);
  363. FIELD_SET(*this, FIX::EncodedTextLen);
  364. FIELD_SET(*this, FIX::EncodedText);
  365. FIELD_SET(*this, FIX::NumDaysInterest);
  366. FIELD_SET(*this, FIX::AccruedInterestRate);
  367. FIELD_SET(*this, FIX::AccruedInterestAmt);
  368. FIELD_SET(*this, FIX::TotalAccruedInterestAmt);
  369. FIELD_SET(*this, FIX::InterestAtMaturity);
  370. FIELD_SET(*this, FIX::EndAccruedInterestAmt);
  371. FIELD_SET(*this, FIX::StartCash);
  372. FIELD_SET(*this, FIX::EndCash);
  373. FIELD_SET(*this, FIX::LegalConfirm);
  374. FIELD_SET(*this, FIX::NoStipulations);
  375. class NoStipulations: public FIX::Group
  376. {
  377. public:
  378. NoStipulations() : FIX::Group(232,233,FIX::message_order(233,234,0)) {}
  379. FIELD_SET(*this, FIX::StipulationType);
  380. FIELD_SET(*this, FIX::StipulationValue);
  381. };
  382. FIELD_SET(*this, FIX::YieldType);
  383. FIELD_SET(*this, FIX::Yield);
  384. FIELD_SET(*this, FIX::YieldCalcDate);
  385. FIELD_SET(*this, FIX::YieldRedemptionDate);
  386. FIELD_SET(*this, FIX::YieldRedemptionPrice);
  387. FIELD_SET(*this, FIX::YieldRedemptionPriceType);
  388. FIELD_SET(*this, FIX::NoPosAmt);
  389. class NoPosAmt: public FIX::Group
  390. {
  391. public:
  392. NoPosAmt() : FIX::Group(753,707,FIX::message_order(707,708,1055,0)) {}
  393. FIELD_SET(*this, FIX::PosAmtType);
  394. FIELD_SET(*this, FIX::PosAmt);
  395. FIELD_SET(*this, FIX::PositionCurrency);
  396. };
  397. FIELD_SET(*this, FIX::TotNoAllocs);
  398. FIELD_SET(*this, FIX::LastFragment);
  399. FIELD_SET(*this, FIX::NoAllocs);
  400. class NoAllocs: public FIX::Group
  401. {
  402. public:
  403. NoAllocs() : FIX::Group(78,79,FIX::message_order(79,661,573,366,80,467,81,989,1002,993,1047,992,539,208,209,161,360,361,12,13,479,497,153,154,119,737,120,736,155,156,742,741,136,576,635,780,172,169,170,171,0)) {}
  404. FIELD_SET(*this, FIX::AllocAccount);
  405. FIELD_SET(*this, FIX::AllocAcctIDSource);
  406. FIELD_SET(*this, FIX::MatchStatus);
  407. FIELD_SET(*this, FIX::AllocPrice);
  408. FIELD_SET(*this, FIX::AllocQty);
  409. FIELD_SET(*this, FIX::IndividualAllocID);
  410. FIELD_SET(*this, FIX::ProcessCode);
  411. FIELD_SET(*this, FIX::SecondaryIndividualAllocID);
  412. FIELD_SET(*this, FIX::AllocMethod);
  413. FIELD_SET(*this, FIX::AllocCustomerCapacity);
  414. FIELD_SET(*this, FIX::AllocPositionEffect);
  415. FIELD_SET(*this, FIX::IndividualAllocType);
  416. FIELD_SET(*this, FIX::NoNestedPartyIDs);
  417. class NoNestedPartyIDs: public FIX::Group
  418. {
  419. public:
  420. NoNestedPartyIDs() : FIX::Group(539,524,FIX::message_order(524,525,538,804,0)) {}
  421. FIELD_SET(*this, FIX::NestedPartyID);
  422. FIELD_SET(*this, FIX::NestedPartyIDSource);
  423. FIELD_SET(*this, FIX::NestedPartyRole);
  424. FIELD_SET(*this, FIX::NoNestedPartySubIDs);
  425. class NoNestedPartySubIDs: public FIX::Group
  426. {
  427. public:
  428. NoNestedPartySubIDs() : FIX::Group(804,545,FIX::message_order(545,805,0)) {}
  429. FIELD_SET(*this, FIX::NestedPartySubID);
  430. FIELD_SET(*this, FIX::NestedPartySubIDType);
  431. };
  432. };
  433. FIELD_SET(*this, FIX::NotifyBrokerOfCredit);
  434. FIELD_SET(*this, FIX::AllocHandlInst);
  435. FIELD_SET(*this, FIX::AllocText);
  436. FIELD_SET(*this, FIX::EncodedAllocTextLen);
  437. FIELD_SET(*this, FIX::EncodedAllocText);
  438. FIELD_SET(*this, FIX::Commission);
  439. FIELD_SET(*this, FIX::CommType);
  440. FIELD_SET(*this, FIX::CommCurrency);
  441. FIELD_SET(*this, FIX::FundRenewWaiv);
  442. FIELD_SET(*this, FIX::AllocAvgPx);
  443. FIELD_SET(*this, FIX::AllocNetMoney);
  444. FIELD_SET(*this, FIX::SettlCurrAmt);
  445. FIELD_SET(*this, FIX::AllocSettlCurrAmt);
  446. FIELD_SET(*this, FIX::SettlCurrency);
  447. FIELD_SET(*this, FIX::AllocSettlCurrency);
  448. FIELD_SET(*this, FIX::SettlCurrFxRate);
  449. FIELD_SET(*this, FIX::SettlCurrFxRateCalc);
  450. FIELD_SET(*this, FIX::AllocAccruedInterestAmt);
  451. FIELD_SET(*this, FIX::AllocInterestAtMaturity);
  452. FIELD_SET(*this, FIX::NoMiscFees);
  453. class NoMiscFees: public FIX::Group
  454. {
  455. public:
  456. NoMiscFees() : FIX::Group(136,137,FIX::message_order(137,138,139,891,0)) {}
  457. FIELD_SET(*this, FIX::MiscFeeAmt);
  458. FIELD_SET(*this, FIX::MiscFeeCurr);
  459. FIELD_SET(*this, FIX::MiscFeeType);
  460. FIELD_SET(*this, FIX::MiscFeeBasis);
  461. };
  462. FIELD_SET(*this, FIX::NoClearingInstructions);
  463. class NoClearingInstructions: public FIX::Group
  464. {
  465. public:
  466. NoClearingInstructions() : FIX::Group(576,577,FIX::message_order(577,0)) {}
  467. FIELD_SET(*this, FIX::ClearingInstruction);
  468. };
  469. FIELD_SET(*this, FIX::ClearingFeeIndicator);
  470. FIELD_SET(*this, FIX::AllocSettlInstType);
  471. FIELD_SET(*this, FIX::SettlDeliveryType);
  472. FIELD_SET(*this, FIX::StandInstDbType);
  473. FIELD_SET(*this, FIX::StandInstDbName);
  474. FIELD_SET(*this, FIX::StandInstDbID);
  475. };
  476. FIELD_SET(*this, FIX::AvgPxIndicator);
  477. FIELD_SET(*this, FIX::ClearingBusinessDate);
  478. FIELD_SET(*this, FIX::TrdType);
  479. FIELD_SET(*this, FIX::TrdSubType);
  480. FIELD_SET(*this, FIX::CustOrderCapacity);
  481. FIELD_SET(*this, FIX::TradeInputSource);
  482. FIELD_SET(*this, FIX::MultiLegReportingType);
  483. FIELD_SET(*this, FIX::MessageEventSource);
  484. FIELD_SET(*this, FIX::RndPx);
  485. FIELD_SET(*this, FIX::NoRateSources);
  486. class NoRateSources: public FIX::Group
  487. {
  488. public:
  489. NoRateSources() : FIX::Group(1445,1446,FIX::message_order(1446,1447,1448,0)) {}
  490. FIELD_SET(*this, FIX::RateSource);
  491. FIELD_SET(*this, FIX::RateSourceType);
  492. FIELD_SET(*this, FIX::ReferencePage);
  493. };
  494. };
  495. }
  496. #endif