Allocation.h 6.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193
  1. #ifndef FIX43_ALLOCATION_H
  2. #define FIX43_ALLOCATION_H
  3. #include "Message.h"
  4. namespace FIX43
  5. {
  6. class Allocation : public Message
  7. {
  8. public:
  9. Allocation() : Message(MsgType()) {}
  10. Allocation(const FIX::Message& m) : Message(m) {}
  11. Allocation(const Message& m) : Message(m) {}
  12. Allocation(const Allocation& m) : Message(m) {}
  13. static FIX::MsgType MsgType() { return FIX::MsgType("J"); }
  14. Allocation(
  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::AvgPx& aAvgPx,
  21. const FIX::TradeDate& aTradeDate )
  22. : Message(MsgType())
  23. {
  24. set(aAllocID);
  25. set(aAllocTransType);
  26. set(aAllocType);
  27. set(aSide);
  28. set(aQuantity);
  29. set(aAvgPx);
  30. set(aTradeDate);
  31. }
  32. FIELD_SET(*this, FIX::AllocID);
  33. FIELD_SET(*this, FIX::AllocTransType);
  34. FIELD_SET(*this, FIX::AllocType);
  35. FIELD_SET(*this, FIX::RefAllocID);
  36. FIELD_SET(*this, FIX::AllocLinkID);
  37. FIELD_SET(*this, FIX::AllocLinkType);
  38. FIELD_SET(*this, FIX::BookingRefID);
  39. FIELD_SET(*this, FIX::Side);
  40. FIELD_SET(*this, FIX::Symbol);
  41. FIELD_SET(*this, FIX::SymbolSfx);
  42. FIELD_SET(*this, FIX::SecurityID);
  43. FIELD_SET(*this, FIX::SecurityIDSource);
  44. FIELD_SET(*this, FIX::Product);
  45. FIELD_SET(*this, FIX::CFICode);
  46. FIELD_SET(*this, FIX::SecurityType);
  47. FIELD_SET(*this, FIX::MaturityMonthYear);
  48. FIELD_SET(*this, FIX::MaturityDate);
  49. FIELD_SET(*this, FIX::CouponPaymentDate);
  50. FIELD_SET(*this, FIX::IssueDate);
  51. FIELD_SET(*this, FIX::RepoCollateralSecurityType);
  52. FIELD_SET(*this, FIX::RepurchaseTerm);
  53. FIELD_SET(*this, FIX::RepurchaseRate);
  54. FIELD_SET(*this, FIX::Factor);
  55. FIELD_SET(*this, FIX::CreditRating);
  56. FIELD_SET(*this, FIX::InstrRegistry);
  57. FIELD_SET(*this, FIX::CountryOfIssue);
  58. FIELD_SET(*this, FIX::StateOrProvinceOfIssue);
  59. FIELD_SET(*this, FIX::LocaleOfIssue);
  60. FIELD_SET(*this, FIX::RedemptionDate);
  61. FIELD_SET(*this, FIX::StrikePrice);
  62. FIELD_SET(*this, FIX::OptAttribute);
  63. FIELD_SET(*this, FIX::ContractMultiplier);
  64. FIELD_SET(*this, FIX::CouponRate);
  65. FIELD_SET(*this, FIX::SecurityExchange);
  66. FIELD_SET(*this, FIX::Issuer);
  67. FIELD_SET(*this, FIX::EncodedIssuerLen);
  68. FIELD_SET(*this, FIX::EncodedIssuer);
  69. FIELD_SET(*this, FIX::SecurityDesc);
  70. FIELD_SET(*this, FIX::EncodedSecurityDescLen);
  71. FIELD_SET(*this, FIX::EncodedSecurityDesc);
  72. FIELD_SET(*this, FIX::NoSecurityAltID);
  73. class NoSecurityAltID: public FIX::Group
  74. {
  75. public:
  76. NoSecurityAltID() : FIX::Group(454,455,FIX::message_order(455,456,0)) {}
  77. FIELD_SET(*this, FIX::SecurityAltID);
  78. FIELD_SET(*this, FIX::SecurityAltIDSource);
  79. };
  80. FIELD_SET(*this, FIX::Quantity);
  81. FIELD_SET(*this, FIX::LastMkt);
  82. FIELD_SET(*this, FIX::TradeOriginationDate);
  83. FIELD_SET(*this, FIX::TradingSessionID);
  84. FIELD_SET(*this, FIX::TradingSessionSubID);
  85. FIELD_SET(*this, FIX::PriceType);
  86. FIELD_SET(*this, FIX::AvgPx);
  87. FIELD_SET(*this, FIX::Currency);
  88. FIELD_SET(*this, FIX::AvgPrxPrecision);
  89. FIELD_SET(*this, FIX::NoPartyIDs);
  90. class NoPartyIDs: public FIX::Group
  91. {
  92. public:
  93. NoPartyIDs() : FIX::Group(453,448,FIX::message_order(448,447,452,523,0)) {}
  94. FIELD_SET(*this, FIX::PartyID);
  95. FIELD_SET(*this, FIX::PartyIDSource);
  96. FIELD_SET(*this, FIX::PartyRole);
  97. FIELD_SET(*this, FIX::PartySubID);
  98. };
  99. FIELD_SET(*this, FIX::TradeDate);
  100. FIELD_SET(*this, FIX::TransactTime);
  101. FIELD_SET(*this, FIX::SettlmntTyp);
  102. FIELD_SET(*this, FIX::FutSettDate);
  103. FIELD_SET(*this, FIX::GrossTradeAmt);
  104. FIELD_SET(*this, FIX::Concession);
  105. FIELD_SET(*this, FIX::TotalTakedown);
  106. FIELD_SET(*this, FIX::NetMoney);
  107. FIELD_SET(*this, FIX::PositionEffect);
  108. FIELD_SET(*this, FIX::Text);
  109. FIELD_SET(*this, FIX::EncodedTextLen);
  110. FIELD_SET(*this, FIX::EncodedText);
  111. FIELD_SET(*this, FIX::NumDaysInterest);
  112. FIELD_SET(*this, FIX::AccruedInterestRate);
  113. FIELD_SET(*this, FIX::TotalAccruedInterestAmt);
  114. FIELD_SET(*this, FIX::LegalConfirm);
  115. FIELD_SET(*this, FIX::NoOrders);
  116. class NoOrders: public FIX::Group
  117. {
  118. public:
  119. NoOrders() : FIX::Group(73,11,FIX::message_order(11,37,198,526,66,0)) {}
  120. FIELD_SET(*this, FIX::ClOrdID);
  121. FIELD_SET(*this, FIX::OrderID);
  122. FIELD_SET(*this, FIX::SecondaryOrderID);
  123. FIELD_SET(*this, FIX::SecondaryClOrdID);
  124. FIELD_SET(*this, FIX::ListID);
  125. };
  126. FIELD_SET(*this, FIX::NoExecs);
  127. class NoExecs: public FIX::Group
  128. {
  129. public:
  130. NoExecs() : FIX::Group(124,32,FIX::message_order(32,17,527,31,29,0)) {}
  131. FIELD_SET(*this, FIX::LastQty);
  132. FIELD_SET(*this, FIX::ExecID);
  133. FIELD_SET(*this, FIX::SecondaryExecID);
  134. FIELD_SET(*this, FIX::LastPx);
  135. FIELD_SET(*this, FIX::LastCapacity);
  136. };
  137. FIELD_SET(*this, FIX::NoAllocs);
  138. class NoAllocs: public FIX::Group
  139. {
  140. public:
  141. NoAllocs() : FIX::Group(78,79,FIX::message_order(79,366,80,467,81,539,208,209,161,360,361,12,13,479,497,153,154,119,120,155,156,159,160,136,0)) {}
  142. FIELD_SET(*this, FIX::AllocAccount);
  143. FIELD_SET(*this, FIX::AllocPrice);
  144. FIELD_SET(*this, FIX::AllocQty);
  145. FIELD_SET(*this, FIX::IndividualAllocID);
  146. FIELD_SET(*this, FIX::ProcessCode);
  147. FIELD_SET(*this, FIX::NoNestedPartyIDs);
  148. class NoNestedPartyIDs: public FIX::Group
  149. {
  150. public:
  151. NoNestedPartyIDs() : FIX::Group(539,524,FIX::message_order(524,525,538,545,0)) {}
  152. FIELD_SET(*this, FIX::NestedPartyID);
  153. FIELD_SET(*this, FIX::NestedPartyIDSource);
  154. FIELD_SET(*this, FIX::NestedPartyRole);
  155. FIELD_SET(*this, FIX::NestedPartySubID);
  156. };
  157. FIELD_SET(*this, FIX::NotifyBrokerOfCredit);
  158. FIELD_SET(*this, FIX::AllocHandlInst);
  159. FIELD_SET(*this, FIX::AllocText);
  160. FIELD_SET(*this, FIX::EncodedAllocTextLen);
  161. FIELD_SET(*this, FIX::EncodedAllocText);
  162. FIELD_SET(*this, FIX::Commission);
  163. FIELD_SET(*this, FIX::CommType);
  164. FIELD_SET(*this, FIX::CommCurrency);
  165. FIELD_SET(*this, FIX::FundRenewWaiv);
  166. FIELD_SET(*this, FIX::AllocAvgPx);
  167. FIELD_SET(*this, FIX::AllocNetMoney);
  168. FIELD_SET(*this, FIX::SettlCurrAmt);
  169. FIELD_SET(*this, FIX::SettlCurrency);
  170. FIELD_SET(*this, FIX::SettlCurrFxRate);
  171. FIELD_SET(*this, FIX::SettlCurrFxRateCalc);
  172. FIELD_SET(*this, FIX::AccruedInterestAmt);
  173. FIELD_SET(*this, FIX::SettlInstMode);
  174. FIELD_SET(*this, FIX::NoMiscFees);
  175. class NoMiscFees: public FIX::Group
  176. {
  177. public:
  178. NoMiscFees() : FIX::Group(136,137,FIX::message_order(137,138,139,0)) {}
  179. FIELD_SET(*this, FIX::MiscFeeAmt);
  180. FIELD_SET(*this, FIX::MiscFeeCurr);
  181. FIELD_SET(*this, FIX::MiscFeeType);
  182. };
  183. };
  184. };
  185. }
  186. #endif