NewOrderMultileg.h 8.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234
  1. #ifndef FIX43_NEWORDERMULTILEG_H
  2. #define FIX43_NEWORDERMULTILEG_H
  3. #include "Message.h"
  4. namespace FIX43
  5. {
  6. class NewOrderMultileg : public Message
  7. {
  8. public:
  9. NewOrderMultileg() : Message(MsgType()) {}
  10. NewOrderMultileg(const FIX::Message& m) : Message(m) {}
  11. NewOrderMultileg(const Message& m) : Message(m) {}
  12. NewOrderMultileg(const NewOrderMultileg& m) : Message(m) {}
  13. static FIX::MsgType MsgType() { return FIX::MsgType("AB"); }
  14. NewOrderMultileg(
  15. const FIX::ClOrdID& aClOrdID,
  16. const FIX::HandlInst& aHandlInst,
  17. const FIX::Side& aSide,
  18. const FIX::TransactTime& aTransactTime,
  19. const FIX::OrdType& aOrdType )
  20. : Message(MsgType())
  21. {
  22. set(aClOrdID);
  23. set(aHandlInst);
  24. set(aSide);
  25. set(aTransactTime);
  26. set(aOrdType);
  27. }
  28. FIELD_SET(*this, FIX::ClOrdID);
  29. FIELD_SET(*this, FIX::SecondaryClOrdID);
  30. FIELD_SET(*this, FIX::ClOrdLinkID);
  31. FIELD_SET(*this, FIX::NoPartyIDs);
  32. class NoPartyIDs: public FIX::Group
  33. {
  34. public:
  35. NoPartyIDs() : FIX::Group(453,448,FIX::message_order(448,447,452,523,0)) {}
  36. FIELD_SET(*this, FIX::PartyID);
  37. FIELD_SET(*this, FIX::PartyIDSource);
  38. FIELD_SET(*this, FIX::PartyRole);
  39. FIELD_SET(*this, FIX::PartySubID);
  40. };
  41. FIELD_SET(*this, FIX::Account);
  42. FIELD_SET(*this, FIX::AccountType);
  43. FIELD_SET(*this, FIX::DayBookingInst);
  44. FIELD_SET(*this, FIX::BookingUnit);
  45. FIELD_SET(*this, FIX::PreallocMethod);
  46. FIELD_SET(*this, FIX::SettlmntTyp);
  47. FIELD_SET(*this, FIX::FutSettDate);
  48. FIELD_SET(*this, FIX::CashMargin);
  49. FIELD_SET(*this, FIX::ClearingFeeIndicator);
  50. FIELD_SET(*this, FIX::HandlInst);
  51. FIELD_SET(*this, FIX::ExecInst);
  52. FIELD_SET(*this, FIX::MinQty);
  53. FIELD_SET(*this, FIX::MaxFloor);
  54. FIELD_SET(*this, FIX::ExDestination);
  55. FIELD_SET(*this, FIX::ProcessCode);
  56. FIELD_SET(*this, FIX::Side);
  57. FIELD_SET(*this, FIX::Symbol);
  58. FIELD_SET(*this, FIX::SymbolSfx);
  59. FIELD_SET(*this, FIX::SecurityID);
  60. FIELD_SET(*this, FIX::SecurityIDSource);
  61. FIELD_SET(*this, FIX::Product);
  62. FIELD_SET(*this, FIX::CFICode);
  63. FIELD_SET(*this, FIX::SecurityType);
  64. FIELD_SET(*this, FIX::MaturityMonthYear);
  65. FIELD_SET(*this, FIX::MaturityDate);
  66. FIELD_SET(*this, FIX::CouponPaymentDate);
  67. FIELD_SET(*this, FIX::IssueDate);
  68. FIELD_SET(*this, FIX::RepoCollateralSecurityType);
  69. FIELD_SET(*this, FIX::RepurchaseTerm);
  70. FIELD_SET(*this, FIX::RepurchaseRate);
  71. FIELD_SET(*this, FIX::Factor);
  72. FIELD_SET(*this, FIX::CreditRating);
  73. FIELD_SET(*this, FIX::InstrRegistry);
  74. FIELD_SET(*this, FIX::CountryOfIssue);
  75. FIELD_SET(*this, FIX::StateOrProvinceOfIssue);
  76. FIELD_SET(*this, FIX::LocaleOfIssue);
  77. FIELD_SET(*this, FIX::RedemptionDate);
  78. FIELD_SET(*this, FIX::StrikePrice);
  79. FIELD_SET(*this, FIX::OptAttribute);
  80. FIELD_SET(*this, FIX::ContractMultiplier);
  81. FIELD_SET(*this, FIX::CouponRate);
  82. FIELD_SET(*this, FIX::SecurityExchange);
  83. FIELD_SET(*this, FIX::Issuer);
  84. FIELD_SET(*this, FIX::EncodedIssuerLen);
  85. FIELD_SET(*this, FIX::EncodedIssuer);
  86. FIELD_SET(*this, FIX::SecurityDesc);
  87. FIELD_SET(*this, FIX::EncodedSecurityDescLen);
  88. FIELD_SET(*this, FIX::EncodedSecurityDesc);
  89. FIELD_SET(*this, FIX::NoSecurityAltID);
  90. class NoSecurityAltID: public FIX::Group
  91. {
  92. public:
  93. NoSecurityAltID() : FIX::Group(454,455,FIX::message_order(455,456,0)) {}
  94. FIELD_SET(*this, FIX::SecurityAltID);
  95. FIELD_SET(*this, FIX::SecurityAltIDSource);
  96. };
  97. FIELD_SET(*this, FIX::PrevClosePx);
  98. FIELD_SET(*this, FIX::LocateReqd);
  99. FIELD_SET(*this, FIX::TransactTime);
  100. FIELD_SET(*this, FIX::QuantityType);
  101. FIELD_SET(*this, FIX::OrderQty);
  102. FIELD_SET(*this, FIX::CashOrderQty);
  103. FIELD_SET(*this, FIX::OrderPercent);
  104. FIELD_SET(*this, FIX::RoundingDirection);
  105. FIELD_SET(*this, FIX::RoundingModulus);
  106. FIELD_SET(*this, FIX::OrdType);
  107. FIELD_SET(*this, FIX::PriceType);
  108. FIELD_SET(*this, FIX::Price);
  109. FIELD_SET(*this, FIX::StopPx);
  110. FIELD_SET(*this, FIX::Currency);
  111. FIELD_SET(*this, FIX::ComplianceID);
  112. FIELD_SET(*this, FIX::SolicitedFlag);
  113. FIELD_SET(*this, FIX::IOIid);
  114. FIELD_SET(*this, FIX::QuoteID);
  115. FIELD_SET(*this, FIX::TimeInForce);
  116. FIELD_SET(*this, FIX::EffectiveTime);
  117. FIELD_SET(*this, FIX::ExpireDate);
  118. FIELD_SET(*this, FIX::ExpireTime);
  119. FIELD_SET(*this, FIX::GTBookingInst);
  120. FIELD_SET(*this, FIX::Commission);
  121. FIELD_SET(*this, FIX::CommType);
  122. FIELD_SET(*this, FIX::CommCurrency);
  123. FIELD_SET(*this, FIX::FundRenewWaiv);
  124. FIELD_SET(*this, FIX::OrderCapacity);
  125. FIELD_SET(*this, FIX::OrderRestrictions);
  126. FIELD_SET(*this, FIX::CustOrderCapacity);
  127. FIELD_SET(*this, FIX::ForexReq);
  128. FIELD_SET(*this, FIX::SettlCurrency);
  129. FIELD_SET(*this, FIX::Text);
  130. FIELD_SET(*this, FIX::EncodedTextLen);
  131. FIELD_SET(*this, FIX::EncodedText);
  132. FIELD_SET(*this, FIX::PositionEffect);
  133. FIELD_SET(*this, FIX::CoveredOrUncovered);
  134. FIELD_SET(*this, FIX::MaxShow);
  135. FIELD_SET(*this, FIX::PegDifference);
  136. FIELD_SET(*this, FIX::DiscretionInst);
  137. FIELD_SET(*this, FIX::DiscretionOffset);
  138. FIELD_SET(*this, FIX::CancellationRights);
  139. FIELD_SET(*this, FIX::MoneyLaunderingStatus);
  140. FIELD_SET(*this, FIX::RegistID);
  141. FIELD_SET(*this, FIX::Designation);
  142. FIELD_SET(*this, FIX::MultiLegRptTypeReq);
  143. FIELD_SET(*this, FIX::NetMoney);
  144. FIELD_SET(*this, FIX::NoAllocs);
  145. class NoAllocs: public FIX::Group
  146. {
  147. public:
  148. NoAllocs() : FIX::Group(78,79,FIX::message_order(79,467,80,0)) {}
  149. FIELD_SET(*this, FIX::AllocAccount);
  150. FIELD_SET(*this, FIX::IndividualAllocID);
  151. FIELD_SET(*this, FIX::AllocQty);
  152. };
  153. FIELD_SET(*this, FIX::NoTradingSessions);
  154. class NoTradingSessions: public FIX::Group
  155. {
  156. public:
  157. NoTradingSessions() : FIX::Group(386,336,FIX::message_order(336,625,0)) {}
  158. FIELD_SET(*this, FIX::TradingSessionID);
  159. FIELD_SET(*this, FIX::TradingSessionSubID);
  160. };
  161. FIELD_SET(*this, FIX::NoLegs);
  162. class NoLegs: public FIX::Group
  163. {
  164. public:
  165. NoLegs() : FIX::Group(555,600,FIX::message_order(600,601,602,603,604,607,608,609,610,611,248,249,250,251,252,253,257,599,596,597,598,254,612,613,614,615,616,617,618,619,620,621,622,623,624,564,565,539,654,566,587,588,0)) {}
  166. FIELD_SET(*this, FIX::LegSymbol);
  167. FIELD_SET(*this, FIX::LegSymbolSfx);
  168. FIELD_SET(*this, FIX::LegSecurityID);
  169. FIELD_SET(*this, FIX::LegSecurityIDSource);
  170. FIELD_SET(*this, FIX::LegProduct);
  171. FIELD_SET(*this, FIX::LegCFICode);
  172. FIELD_SET(*this, FIX::LegSecurityType);
  173. FIELD_SET(*this, FIX::LegMaturityMonthYear);
  174. FIELD_SET(*this, FIX::LegMaturityDate);
  175. FIELD_SET(*this, FIX::LegCouponPaymentDate);
  176. FIELD_SET(*this, FIX::LegIssueDate);
  177. FIELD_SET(*this, FIX::LegRepoCollateralSecurityType);
  178. FIELD_SET(*this, FIX::LegRepurchaseTerm);
  179. FIELD_SET(*this, FIX::LegRepurchaseRate);
  180. FIELD_SET(*this, FIX::LegFactor);
  181. FIELD_SET(*this, FIX::LegCreditRating);
  182. FIELD_SET(*this, FIX::LegInstrRegistry);
  183. FIELD_SET(*this, FIX::LegCountryOfIssue);
  184. FIELD_SET(*this, FIX::LegStateOrProvinceOfIssue);
  185. FIELD_SET(*this, FIX::LegLocaleOfIssue);
  186. FIELD_SET(*this, FIX::LegRedemptionDate);
  187. FIELD_SET(*this, FIX::LegStrikePrice);
  188. FIELD_SET(*this, FIX::LegOptAttribute);
  189. FIELD_SET(*this, FIX::LegContractMultiplier);
  190. FIELD_SET(*this, FIX::LegCouponRate);
  191. FIELD_SET(*this, FIX::LegSecurityExchange);
  192. FIELD_SET(*this, FIX::LegIssuer);
  193. FIELD_SET(*this, FIX::EncodedLegIssuerLen);
  194. FIELD_SET(*this, FIX::EncodedLegIssuer);
  195. FIELD_SET(*this, FIX::LegSecurityDesc);
  196. FIELD_SET(*this, FIX::EncodedLegSecurityDescLen);
  197. FIELD_SET(*this, FIX::EncodedLegSecurityDesc);
  198. FIELD_SET(*this, FIX::LegRatioQty);
  199. FIELD_SET(*this, FIX::LegSide);
  200. FIELD_SET(*this, FIX::NoLegSecurityAltID);
  201. class NoLegSecurityAltID: public FIX::Group
  202. {
  203. public:
  204. NoLegSecurityAltID() : FIX::Group(604,605,FIX::message_order(605,606,0)) {}
  205. FIELD_SET(*this, FIX::LegSecurityAltID);
  206. FIELD_SET(*this, FIX::LegSecurityAltIDSource);
  207. };
  208. FIELD_SET(*this, FIX::LegPositionEffect);
  209. FIELD_SET(*this, FIX::LegCoveredOrUncovered);
  210. FIELD_SET(*this, FIX::NoNestedPartyIDs);
  211. class NoNestedPartyIDs: public FIX::Group
  212. {
  213. public:
  214. NoNestedPartyIDs() : FIX::Group(539,524,FIX::message_order(524,525,538,545,0)) {}
  215. FIELD_SET(*this, FIX::NestedPartyID);
  216. FIELD_SET(*this, FIX::NestedPartyIDSource);
  217. FIELD_SET(*this, FIX::NestedPartyRole);
  218. FIELD_SET(*this, FIX::NestedPartySubID);
  219. };
  220. FIELD_SET(*this, FIX::LegRefID);
  221. FIELD_SET(*this, FIX::LegPrice);
  222. FIELD_SET(*this, FIX::LegSettlmntTyp);
  223. FIELD_SET(*this, FIX::LegFutSettDate);
  224. };
  225. };
  226. }
  227. #endif