PageRenderTime 27ms CodeModel.GetById 25ms RepoModel.GetById 1ms app.codeStats 0ms

/fix50sp1/PositionMaintenanceReport.h

https://github.com/thandav/ultraFIX
C Header | 315 lines | 308 code | 7 blank | 0 comment | 0 complexity | 5d714efde81eee651efe7a8b728065c2 MD5 | raw file
  1. #ifndef FIX50SP1_POSITIONMAINTENANCEREPORT_H
  2. #define FIX50SP1_POSITIONMAINTENANCEREPORT_H
  3. #include "Message.h"
  4. namespace FIX50SP1
  5. {
  6. class PositionMaintenanceReport : public Message
  7. {
  8. public:
  9. PositionMaintenanceReport() : Message(MsgType()) {}
  10. PositionMaintenanceReport(const FIX::Message& m) : Message(m) {}
  11. PositionMaintenanceReport(const Message& m) : Message(m) {}
  12. PositionMaintenanceReport(const PositionMaintenanceReport& m) : Message(m) {}
  13. static FIX::MsgType MsgType() { return FIX::MsgType("AM"); }
  14. PositionMaintenanceReport(
  15. const FIX::PosMaintRptID& aPosMaintRptID,
  16. const FIX::PosTransType& aPosTransType,
  17. const FIX::PosMaintAction& aPosMaintAction,
  18. const FIX::PosMaintStatus& aPosMaintStatus,
  19. const FIX::ClearingBusinessDate& aClearingBusinessDate )
  20. : Message(MsgType())
  21. {
  22. set(aPosMaintRptID);
  23. set(aPosTransType);
  24. set(aPosMaintAction);
  25. set(aPosMaintStatus);
  26. set(aClearingBusinessDate);
  27. }
  28. FIELD_SET(*this, FIX::PosMaintRptID);
  29. FIELD_SET(*this, FIX::PosTransType);
  30. FIELD_SET(*this, FIX::PosReqID);
  31. FIELD_SET(*this, FIX::PosMaintAction);
  32. FIELD_SET(*this, FIX::OrigPosReqRefID);
  33. FIELD_SET(*this, FIX::PosMaintStatus);
  34. FIELD_SET(*this, FIX::PosMaintResult);
  35. FIELD_SET(*this, FIX::ClearingBusinessDate);
  36. FIELD_SET(*this, FIX::SettlSessID);
  37. FIELD_SET(*this, FIX::SettlSessSubID);
  38. FIELD_SET(*this, FIX::NoPartyIDs);
  39. class NoPartyIDs: public FIX::Group
  40. {
  41. public:
  42. NoPartyIDs() : FIX::Group(453,448,FIX::message_order(448,447,452,802,0)) {}
  43. FIELD_SET(*this, FIX::PartyID);
  44. FIELD_SET(*this, FIX::PartyIDSource);
  45. FIELD_SET(*this, FIX::PartyRole);
  46. FIELD_SET(*this, FIX::NoPartySubIDs);
  47. class NoPartySubIDs: public FIX::Group
  48. {
  49. public:
  50. NoPartySubIDs() : FIX::Group(802,523,FIX::message_order(523,803,0)) {}
  51. FIELD_SET(*this, FIX::PartySubID);
  52. FIELD_SET(*this, FIX::PartySubIDType);
  53. };
  54. };
  55. FIELD_SET(*this, FIX::Account);
  56. FIELD_SET(*this, FIX::AcctIDSource);
  57. FIELD_SET(*this, FIX::AccountType);
  58. FIELD_SET(*this, FIX::Symbol);
  59. FIELD_SET(*this, FIX::SymbolSfx);
  60. FIELD_SET(*this, FIX::SecurityID);
  61. FIELD_SET(*this, FIX::SecurityIDSource);
  62. FIELD_SET(*this, FIX::Product);
  63. FIELD_SET(*this, FIX::CFICode);
  64. FIELD_SET(*this, FIX::SecurityType);
  65. FIELD_SET(*this, FIX::SecuritySubType);
  66. FIELD_SET(*this, FIX::MaturityMonthYear);
  67. FIELD_SET(*this, FIX::MaturityDate);
  68. FIELD_SET(*this, FIX::CouponPaymentDate);
  69. FIELD_SET(*this, FIX::IssueDate);
  70. FIELD_SET(*this, FIX::RepoCollateralSecurityType);
  71. FIELD_SET(*this, FIX::RepurchaseTerm);
  72. FIELD_SET(*this, FIX::RepurchaseRate);
  73. FIELD_SET(*this, FIX::Factor);
  74. FIELD_SET(*this, FIX::CreditRating);
  75. FIELD_SET(*this, FIX::InstrRegistry);
  76. FIELD_SET(*this, FIX::CountryOfIssue);
  77. FIELD_SET(*this, FIX::StateOrProvinceOfIssue);
  78. FIELD_SET(*this, FIX::LocaleOfIssue);
  79. FIELD_SET(*this, FIX::RedemptionDate);
  80. FIELD_SET(*this, FIX::StrikePrice);
  81. FIELD_SET(*this, FIX::StrikeCurrency);
  82. FIELD_SET(*this, FIX::OptAttribute);
  83. FIELD_SET(*this, FIX::ContractMultiplier);
  84. FIELD_SET(*this, FIX::CouponRate);
  85. FIELD_SET(*this, FIX::SecurityExchange);
  86. FIELD_SET(*this, FIX::Issuer);
  87. FIELD_SET(*this, FIX::EncodedIssuerLen);
  88. FIELD_SET(*this, FIX::EncodedIssuer);
  89. FIELD_SET(*this, FIX::SecurityDesc);
  90. FIELD_SET(*this, FIX::EncodedSecurityDescLen);
  91. FIELD_SET(*this, FIX::EncodedSecurityDesc);
  92. FIELD_SET(*this, FIX::Pool);
  93. FIELD_SET(*this, FIX::ContractSettlMonth);
  94. FIELD_SET(*this, FIX::CPProgram);
  95. FIELD_SET(*this, FIX::CPRegType);
  96. FIELD_SET(*this, FIX::DatedDate);
  97. FIELD_SET(*this, FIX::InterestAccrualDate);
  98. FIELD_SET(*this, FIX::SecurityStatus);
  99. FIELD_SET(*this, FIX::SettleOnOpenFlag);
  100. FIELD_SET(*this, FIX::InstrmtAssignmentMethod);
  101. FIELD_SET(*this, FIX::StrikeMultiplier);
  102. FIELD_SET(*this, FIX::StrikeValue);
  103. FIELD_SET(*this, FIX::MinPriceIncrement);
  104. FIELD_SET(*this, FIX::PositionLimit);
  105. FIELD_SET(*this, FIX::NTPositionLimit);
  106. FIELD_SET(*this, FIX::UnitOfMeasure);
  107. FIELD_SET(*this, FIX::TimeUnit);
  108. FIELD_SET(*this, FIX::MaturityTime);
  109. FIELD_SET(*this, FIX::SecurityGroup);
  110. FIELD_SET(*this, FIX::MinPriceIncrementAmount);
  111. FIELD_SET(*this, FIX::UnitOfMeasureQty);
  112. FIELD_SET(*this, FIX::ProductComplex);
  113. FIELD_SET(*this, FIX::PriceUnitOfMeasure);
  114. FIELD_SET(*this, FIX::PriceUnitOfMeasureQty);
  115. FIELD_SET(*this, FIX::SettlMethod);
  116. FIELD_SET(*this, FIX::ExerciseStyle);
  117. FIELD_SET(*this, FIX::OptPayAmount);
  118. FIELD_SET(*this, FIX::PriceQuoteMethod);
  119. FIELD_SET(*this, FIX::ListMethod);
  120. FIELD_SET(*this, FIX::CapPrice);
  121. FIELD_SET(*this, FIX::FloorPrice);
  122. FIELD_SET(*this, FIX::PutOrCall);
  123. FIELD_SET(*this, FIX::FlexibleIndicator);
  124. FIELD_SET(*this, FIX::FlexProductEligibilityIndicator);
  125. FIELD_SET(*this, FIX::FuturesValuationMethod);
  126. FIELD_SET(*this, FIX::Currency);
  127. FIELD_SET(*this, FIX::NoLegs);
  128. class NoLegs: public FIX::Group
  129. {
  130. public:
  131. 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,999,1001,1017,566,1212,1358,1420,1224,1421,1422,0)) {}
  132. FIELD_SET(*this, FIX::LegSymbol);
  133. FIELD_SET(*this, FIX::LegSymbolSfx);
  134. FIELD_SET(*this, FIX::LegSecurityID);
  135. FIELD_SET(*this, FIX::LegSecurityIDSource);
  136. FIELD_SET(*this, FIX::LegProduct);
  137. FIELD_SET(*this, FIX::LegCFICode);
  138. FIELD_SET(*this, FIX::LegSecurityType);
  139. FIELD_SET(*this, FIX::LegSecuritySubType);
  140. FIELD_SET(*this, FIX::LegMaturityMonthYear);
  141. FIELD_SET(*this, FIX::LegMaturityDate);
  142. FIELD_SET(*this, FIX::LegCouponPaymentDate);
  143. FIELD_SET(*this, FIX::LegIssueDate);
  144. FIELD_SET(*this, FIX::LegRepoCollateralSecurityType);
  145. FIELD_SET(*this, FIX::LegRepurchaseTerm);
  146. FIELD_SET(*this, FIX::LegRepurchaseRate);
  147. FIELD_SET(*this, FIX::LegFactor);
  148. FIELD_SET(*this, FIX::LegCreditRating);
  149. FIELD_SET(*this, FIX::LegInstrRegistry);
  150. FIELD_SET(*this, FIX::LegCountryOfIssue);
  151. FIELD_SET(*this, FIX::LegStateOrProvinceOfIssue);
  152. FIELD_SET(*this, FIX::LegLocaleOfIssue);
  153. FIELD_SET(*this, FIX::LegRedemptionDate);
  154. FIELD_SET(*this, FIX::LegStrikePrice);
  155. FIELD_SET(*this, FIX::LegStrikeCurrency);
  156. FIELD_SET(*this, FIX::LegOptAttribute);
  157. FIELD_SET(*this, FIX::LegContractMultiplier);
  158. FIELD_SET(*this, FIX::LegCouponRate);
  159. FIELD_SET(*this, FIX::LegSecurityExchange);
  160. FIELD_SET(*this, FIX::LegIssuer);
  161. FIELD_SET(*this, FIX::EncodedLegIssuerLen);
  162. FIELD_SET(*this, FIX::EncodedLegIssuer);
  163. FIELD_SET(*this, FIX::LegSecurityDesc);
  164. FIELD_SET(*this, FIX::EncodedLegSecurityDescLen);
  165. FIELD_SET(*this, FIX::EncodedLegSecurityDesc);
  166. FIELD_SET(*this, FIX::LegRatioQty);
  167. FIELD_SET(*this, FIX::LegSide);
  168. FIELD_SET(*this, FIX::LegCurrency);
  169. FIELD_SET(*this, FIX::LegPool);
  170. FIELD_SET(*this, FIX::LegDatedDate);
  171. FIELD_SET(*this, FIX::LegContractSettlMonth);
  172. FIELD_SET(*this, FIX::LegInterestAccrualDate);
  173. FIELD_SET(*this, FIX::LegUnitOfMeasure);
  174. FIELD_SET(*this, FIX::LegTimeUnit);
  175. FIELD_SET(*this, FIX::LegOptionRatio);
  176. FIELD_SET(*this, FIX::LegPrice);
  177. FIELD_SET(*this, FIX::LegMaturityTime);
  178. FIELD_SET(*this, FIX::LegPutOrCall);
  179. FIELD_SET(*this, FIX::LegExerciseStyle);
  180. FIELD_SET(*this, FIX::LegUnitOfMeasureQty);
  181. FIELD_SET(*this, FIX::LegPriceUnitOfMeasure);
  182. FIELD_SET(*this, FIX::LegPriceUnitOfMeasureQty);
  183. };
  184. FIELD_SET(*this, FIX::NoUnderlyings);
  185. class NoUnderlyings: public FIX::Group
  186. {
  187. public:
  188. NoUnderlyings() : FIX::Group(711,311,FIX::message_order(311,312,309,305,462,463,310,763,313,542,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,972,975,973,974,998,1000,1038,1039,1044,1045,1046,1213,315,1419,1423,1424,1425,0)) {}
  189. FIELD_SET(*this, FIX::UnderlyingSymbol);
  190. FIELD_SET(*this, FIX::UnderlyingSymbolSfx);
  191. FIELD_SET(*this, FIX::UnderlyingSecurityID);
  192. FIELD_SET(*this, FIX::UnderlyingSecurityIDSource);
  193. FIELD_SET(*this, FIX::UnderlyingProduct);
  194. FIELD_SET(*this, FIX::UnderlyingCFICode);
  195. FIELD_SET(*this, FIX::UnderlyingSecurityType);
  196. FIELD_SET(*this, FIX::UnderlyingSecuritySubType);
  197. FIELD_SET(*this, FIX::UnderlyingMaturityMonthYear);
  198. FIELD_SET(*this, FIX::UnderlyingMaturityDate);
  199. FIELD_SET(*this, FIX::UnderlyingCouponPaymentDate);
  200. FIELD_SET(*this, FIX::UnderlyingIssueDate);
  201. FIELD_SET(*this, FIX::UnderlyingRepoCollateralSecurityType);
  202. FIELD_SET(*this, FIX::UnderlyingRepurchaseTerm);
  203. FIELD_SET(*this, FIX::UnderlyingRepurchaseRate);
  204. FIELD_SET(*this, FIX::UnderlyingFactor);
  205. FIELD_SET(*this, FIX::UnderlyingCreditRating);
  206. FIELD_SET(*this, FIX::UnderlyingInstrRegistry);
  207. FIELD_SET(*this, FIX::UnderlyingCountryOfIssue);
  208. FIELD_SET(*this, FIX::UnderlyingStateOrProvinceOfIssue);
  209. FIELD_SET(*this, FIX::UnderlyingLocaleOfIssue);
  210. FIELD_SET(*this, FIX::UnderlyingRedemptionDate);
  211. FIELD_SET(*this, FIX::UnderlyingStrikePrice);
  212. FIELD_SET(*this, FIX::UnderlyingStrikeCurrency);
  213. FIELD_SET(*this, FIX::UnderlyingOptAttribute);
  214. FIELD_SET(*this, FIX::UnderlyingContractMultiplier);
  215. FIELD_SET(*this, FIX::UnderlyingCouponRate);
  216. FIELD_SET(*this, FIX::UnderlyingSecurityExchange);
  217. FIELD_SET(*this, FIX::UnderlyingIssuer);
  218. FIELD_SET(*this, FIX::EncodedUnderlyingIssuerLen);
  219. FIELD_SET(*this, FIX::EncodedUnderlyingIssuer);
  220. FIELD_SET(*this, FIX::UnderlyingSecurityDesc);
  221. FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDescLen);
  222. FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDesc);
  223. FIELD_SET(*this, FIX::UnderlyingCPProgram);
  224. FIELD_SET(*this, FIX::UnderlyingCPRegType);
  225. FIELD_SET(*this, FIX::UnderlyingCurrency);
  226. FIELD_SET(*this, FIX::UnderlyingQty);
  227. FIELD_SET(*this, FIX::UnderlyingPx);
  228. FIELD_SET(*this, FIX::UnderlyingDirtyPrice);
  229. FIELD_SET(*this, FIX::UnderlyingEndPrice);
  230. FIELD_SET(*this, FIX::UnderlyingStartValue);
  231. FIELD_SET(*this, FIX::UnderlyingCurrentValue);
  232. FIELD_SET(*this, FIX::UnderlyingEndValue);
  233. FIELD_SET(*this, FIX::UnderlyingAllocationPercent);
  234. FIELD_SET(*this, FIX::UnderlyingSettlementType);
  235. FIELD_SET(*this, FIX::UnderlyingCashAmount);
  236. FIELD_SET(*this, FIX::UnderlyingCashType);
  237. FIELD_SET(*this, FIX::UnderlyingUnitOfMeasure);
  238. FIELD_SET(*this, FIX::UnderlyingTimeUnit);
  239. FIELD_SET(*this, FIX::UnderlyingCapValue);
  240. FIELD_SET(*this, FIX::UnderlyingSettlMethod);
  241. FIELD_SET(*this, FIX::UnderlyingAdjustedQuantity);
  242. FIELD_SET(*this, FIX::UnderlyingFXRate);
  243. FIELD_SET(*this, FIX::UnderlyingFXRateCalc);
  244. FIELD_SET(*this, FIX::UnderlyingMaturityTime);
  245. FIELD_SET(*this, FIX::UnderlyingPutOrCall);
  246. FIELD_SET(*this, FIX::UnderlyingExerciseStyle);
  247. FIELD_SET(*this, FIX::UnderlyingUnitOfMeasureQty);
  248. FIELD_SET(*this, FIX::UnderlyingPriceUnitOfMeasure);
  249. FIELD_SET(*this, FIX::UnderlyingPriceUnitOfMeasureQty);
  250. };
  251. FIELD_SET(*this, FIX::NoTradingSessions);
  252. class NoTradingSessions: public FIX::Group
  253. {
  254. public:
  255. NoTradingSessions() : FIX::Group(386,336,FIX::message_order(336,625,0)) {}
  256. FIELD_SET(*this, FIX::TradingSessionID);
  257. FIELD_SET(*this, FIX::TradingSessionSubID);
  258. };
  259. FIELD_SET(*this, FIX::TransactTime);
  260. FIELD_SET(*this, FIX::NoPositions);
  261. class NoPositions: public FIX::Group
  262. {
  263. public:
  264. NoPositions() : FIX::Group(702,703,FIX::message_order(703,704,705,706,539,976,0)) {}
  265. FIELD_SET(*this, FIX::PosType);
  266. FIELD_SET(*this, FIX::LongQty);
  267. FIELD_SET(*this, FIX::ShortQty);
  268. FIELD_SET(*this, FIX::PosQtyStatus);
  269. FIELD_SET(*this, FIX::NoNestedPartyIDs);
  270. class NoNestedPartyIDs: public FIX::Group
  271. {
  272. public:
  273. NoNestedPartyIDs() : FIX::Group(539,524,FIX::message_order(524,525,538,804,0)) {}
  274. FIELD_SET(*this, FIX::NestedPartyID);
  275. FIELD_SET(*this, FIX::NestedPartyIDSource);
  276. FIELD_SET(*this, FIX::NestedPartyRole);
  277. FIELD_SET(*this, FIX::NoNestedPartySubIDs);
  278. class NoNestedPartySubIDs: public FIX::Group
  279. {
  280. public:
  281. NoNestedPartySubIDs() : FIX::Group(804,545,FIX::message_order(545,805,0)) {}
  282. FIELD_SET(*this, FIX::NestedPartySubID);
  283. FIELD_SET(*this, FIX::NestedPartySubIDType);
  284. };
  285. };
  286. FIELD_SET(*this, FIX::QuantityDate);
  287. };
  288. FIELD_SET(*this, FIX::NoPosAmt);
  289. class NoPosAmt: public FIX::Group
  290. {
  291. public:
  292. NoPosAmt() : FIX::Group(753,707,FIX::message_order(707,708,1055,0)) {}
  293. FIELD_SET(*this, FIX::PosAmtType);
  294. FIELD_SET(*this, FIX::PosAmt);
  295. FIELD_SET(*this, FIX::PositionCurrency);
  296. };
  297. FIELD_SET(*this, FIX::AdjustmentType);
  298. FIELD_SET(*this, FIX::ThresholdAmount);
  299. FIELD_SET(*this, FIX::Text);
  300. FIELD_SET(*this, FIX::EncodedTextLen);
  301. FIELD_SET(*this, FIX::EncodedText);
  302. FIELD_SET(*this, FIX::SettlCurrency);
  303. FIELD_SET(*this, FIX::ContraryInstructionIndicator);
  304. FIELD_SET(*this, FIX::PriorSpreadIndicator);
  305. FIELD_SET(*this, FIX::PosMaintRptRefID);
  306. };
  307. }
  308. #endif