AdjustedPositionReport.h 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135
  1. #ifndef FIX50_ADJUSTEDPOSITIONREPORT_H
  2. #define FIX50_ADJUSTEDPOSITIONREPORT_H
  3. #include "Message.h"
  4. namespace FIX50
  5. {
  6. class AdjustedPositionReport : public Message
  7. {
  8. public:
  9. AdjustedPositionReport() : Message(MsgType()) {}
  10. AdjustedPositionReport(const FIX::Message& m) : Message(m) {}
  11. AdjustedPositionReport(const Message& m) : Message(m) {}
  12. AdjustedPositionReport(const AdjustedPositionReport& m) : Message(m) {}
  13. static FIX::MsgType MsgType() { return FIX::MsgType("BL"); }
  14. AdjustedPositionReport(
  15. const FIX::PosMaintRptID& aPosMaintRptID,
  16. const FIX::ClearingBusinessDate& aClearingBusinessDate )
  17. : Message(MsgType())
  18. {
  19. set(aPosMaintRptID);
  20. set(aClearingBusinessDate);
  21. }
  22. FIELD_SET(*this, FIX::PosMaintRptID);
  23. FIELD_SET(*this, FIX::PosReqType);
  24. FIELD_SET(*this, FIX::ClearingBusinessDate);
  25. FIELD_SET(*this, FIX::SettlSessID);
  26. FIELD_SET(*this, FIX::PosMaintRptRefID);
  27. FIELD_SET(*this, FIX::NoPartyIDs);
  28. class NoPartyIDs: public FIX::Group
  29. {
  30. public:
  31. NoPartyIDs() : FIX::Group(453,448,FIX::message_order(448,447,452,802,0)) {}
  32. FIELD_SET(*this, FIX::PartyID);
  33. FIELD_SET(*this, FIX::PartyIDSource);
  34. FIELD_SET(*this, FIX::PartyRole);
  35. FIELD_SET(*this, FIX::NoPartySubIDs);
  36. class NoPartySubIDs: public FIX::Group
  37. {
  38. public:
  39. NoPartySubIDs() : FIX::Group(802,523,FIX::message_order(523,803,0)) {}
  40. FIELD_SET(*this, FIX::PartySubID);
  41. FIELD_SET(*this, FIX::PartySubIDType);
  42. };
  43. };
  44. FIELD_SET(*this, FIX::NoPositions);
  45. class NoPositions: public FIX::Group
  46. {
  47. public:
  48. NoPositions() : FIX::Group(702,703,FIX::message_order(703,704,705,706,976,539,0)) {}
  49. FIELD_SET(*this, FIX::PosType);
  50. FIELD_SET(*this, FIX::LongQty);
  51. FIELD_SET(*this, FIX::ShortQty);
  52. FIELD_SET(*this, FIX::PosQtyStatus);
  53. FIELD_SET(*this, FIX::QuantityDate);
  54. FIELD_SET(*this, FIX::NoNestedPartyIDs);
  55. class NoNestedPartyIDs: public FIX::Group
  56. {
  57. public:
  58. NoNestedPartyIDs() : FIX::Group(539,524,FIX::message_order(524,525,538,804,0)) {}
  59. FIELD_SET(*this, FIX::NestedPartyID);
  60. FIELD_SET(*this, FIX::NestedPartyIDSource);
  61. FIELD_SET(*this, FIX::NestedPartyRole);
  62. FIELD_SET(*this, FIX::NoNestedPartySubIDs);
  63. class NoNestedPartySubIDs: public FIX::Group
  64. {
  65. public:
  66. NoNestedPartySubIDs() : FIX::Group(804,545,FIX::message_order(545,805,0)) {}
  67. FIELD_SET(*this, FIX::NestedPartySubID);
  68. FIELD_SET(*this, FIX::NestedPartySubIDType);
  69. };
  70. };
  71. };
  72. FIELD_SET(*this, FIX::Symbol);
  73. FIELD_SET(*this, FIX::SymbolSfx);
  74. FIELD_SET(*this, FIX::SecurityID);
  75. FIELD_SET(*this, FIX::SecurityIDSource);
  76. FIELD_SET(*this, FIX::Product);
  77. FIELD_SET(*this, FIX::CFICode);
  78. FIELD_SET(*this, FIX::SecurityType);
  79. FIELD_SET(*this, FIX::SecuritySubType);
  80. FIELD_SET(*this, FIX::MaturityMonthYear);
  81. FIELD_SET(*this, FIX::MaturityDate);
  82. FIELD_SET(*this, FIX::MaturityTime);
  83. FIELD_SET(*this, FIX::PutOrCall);
  84. FIELD_SET(*this, FIX::SettleOnOpenFlag);
  85. FIELD_SET(*this, FIX::InstrmtAssignmentMethod);
  86. FIELD_SET(*this, FIX::SecurityStatus);
  87. FIELD_SET(*this, FIX::CouponPaymentDate);
  88. FIELD_SET(*this, FIX::IssueDate);
  89. FIELD_SET(*this, FIX::RepoCollateralSecurityType);
  90. FIELD_SET(*this, FIX::RepurchaseTerm);
  91. FIELD_SET(*this, FIX::RepurchaseRate);
  92. FIELD_SET(*this, FIX::Factor);
  93. FIELD_SET(*this, FIX::CreditRating);
  94. FIELD_SET(*this, FIX::InstrRegistry);
  95. FIELD_SET(*this, FIX::CountryOfIssue);
  96. FIELD_SET(*this, FIX::StateOrProvinceOfIssue);
  97. FIELD_SET(*this, FIX::LocaleOfIssue);
  98. FIELD_SET(*this, FIX::RedemptionDate);
  99. FIELD_SET(*this, FIX::StrikePrice);
  100. FIELD_SET(*this, FIX::StrikeCurrency);
  101. FIELD_SET(*this, FIX::StrikeMultiplier);
  102. FIELD_SET(*this, FIX::StrikeValue);
  103. FIELD_SET(*this, FIX::OptAttribute);
  104. FIELD_SET(*this, FIX::ContractMultiplier);
  105. FIELD_SET(*this, FIX::MinPriceIncrement);
  106. FIELD_SET(*this, FIX::UnitOfMeasure);
  107. FIELD_SET(*this, FIX::TimeUnit);
  108. FIELD_SET(*this, FIX::CouponRate);
  109. FIELD_SET(*this, FIX::SecurityExchange);
  110. FIELD_SET(*this, FIX::PositionLimit);
  111. FIELD_SET(*this, FIX::NTPositionLimit);
  112. FIELD_SET(*this, FIX::Issuer);
  113. FIELD_SET(*this, FIX::EncodedIssuerLen);
  114. FIELD_SET(*this, FIX::EncodedIssuer);
  115. FIELD_SET(*this, FIX::SecurityDesc);
  116. FIELD_SET(*this, FIX::EncodedSecurityDescLen);
  117. FIELD_SET(*this, FIX::EncodedSecurityDesc);
  118. FIELD_SET(*this, FIX::Pool);
  119. FIELD_SET(*this, FIX::ContractSettlMonth);
  120. FIELD_SET(*this, FIX::CPProgram);
  121. FIELD_SET(*this, FIX::CPRegType);
  122. FIELD_SET(*this, FIX::DatedDate);
  123. FIELD_SET(*this, FIX::InterestAccrualDate);
  124. FIELD_SET(*this, FIX::SettlPrice);
  125. FIELD_SET(*this, FIX::PriorSettlPrice);
  126. };
  127. }
  128. #endif