ExecutionReport.h 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148
  1. #ifndef FIX42_EXECUTIONREPORT_H
  2. #define FIX42_EXECUTIONREPORT_H
  3. #include "Message.h"
  4. namespace FIX42
  5. {
  6. class ExecutionReport : public Message
  7. {
  8. public:
  9. ExecutionReport() : Message(MsgType()) {}
  10. ExecutionReport(const FIX::Message& m) : Message(m) {}
  11. ExecutionReport(const Message& m) : Message(m) {}
  12. ExecutionReport(const ExecutionReport& m) : Message(m) {}
  13. static FIX::MsgType MsgType() { return FIX::MsgType("8"); }
  14. ExecutionReport(
  15. const FIX::OrderID& aOrderID,
  16. const FIX::ExecID& aExecID,
  17. const FIX::ExecTransType& aExecTransType,
  18. const FIX::ExecType& aExecType,
  19. const FIX::OrdStatus& aOrdStatus,
  20. const FIX::Symbol& aSymbol,
  21. const FIX::Side& aSide,
  22. const FIX::LeavesQty& aLeavesQty,
  23. const FIX::CumQty& aCumQty,
  24. const FIX::AvgPx& aAvgPx )
  25. : Message(MsgType())
  26. {
  27. set(aOrderID);
  28. set(aExecID);
  29. set(aExecTransType);
  30. set(aExecType);
  31. set(aOrdStatus);
  32. set(aSymbol);
  33. set(aSide);
  34. set(aLeavesQty);
  35. set(aCumQty);
  36. set(aAvgPx);
  37. }
  38. FIELD_SET(*this, FIX::OrderID);
  39. FIELD_SET(*this, FIX::SecondaryOrderID);
  40. FIELD_SET(*this, FIX::ClOrdID);
  41. FIELD_SET(*this, FIX::OrigClOrdID);
  42. FIELD_SET(*this, FIX::ClientID);
  43. FIELD_SET(*this, FIX::ExecBroker);
  44. FIELD_SET(*this, FIX::ListID);
  45. FIELD_SET(*this, FIX::ExecID);
  46. FIELD_SET(*this, FIX::ExecTransType);
  47. FIELD_SET(*this, FIX::ExecRefID);
  48. FIELD_SET(*this, FIX::ExecType);
  49. FIELD_SET(*this, FIX::OrdStatus);
  50. FIELD_SET(*this, FIX::OrdRejReason);
  51. FIELD_SET(*this, FIX::ExecRestatementReason);
  52. FIELD_SET(*this, FIX::Account);
  53. FIELD_SET(*this, FIX::SettlmntTyp);
  54. FIELD_SET(*this, FIX::FutSettDate);
  55. FIELD_SET(*this, FIX::Symbol);
  56. FIELD_SET(*this, FIX::SymbolSfx);
  57. FIELD_SET(*this, FIX::SecurityID);
  58. FIELD_SET(*this, FIX::IDSource);
  59. FIELD_SET(*this, FIX::SecurityType);
  60. FIELD_SET(*this, FIX::MaturityMonthYear);
  61. FIELD_SET(*this, FIX::MaturityDay);
  62. FIELD_SET(*this, FIX::PutOrCall);
  63. FIELD_SET(*this, FIX::StrikePrice);
  64. FIELD_SET(*this, FIX::OptAttribute);
  65. FIELD_SET(*this, FIX::ContractMultiplier);
  66. FIELD_SET(*this, FIX::CouponRate);
  67. FIELD_SET(*this, FIX::SecurityExchange);
  68. FIELD_SET(*this, FIX::Issuer);
  69. FIELD_SET(*this, FIX::EncodedIssuerLen);
  70. FIELD_SET(*this, FIX::EncodedIssuer);
  71. FIELD_SET(*this, FIX::SecurityDesc);
  72. FIELD_SET(*this, FIX::EncodedSecurityDescLen);
  73. FIELD_SET(*this, FIX::EncodedSecurityDesc);
  74. FIELD_SET(*this, FIX::Side);
  75. FIELD_SET(*this, FIX::OrderQty);
  76. FIELD_SET(*this, FIX::CashOrderQty);
  77. FIELD_SET(*this, FIX::OrdType);
  78. FIELD_SET(*this, FIX::Price);
  79. FIELD_SET(*this, FIX::StopPx);
  80. FIELD_SET(*this, FIX::PegDifference);
  81. FIELD_SET(*this, FIX::DiscretionInst);
  82. FIELD_SET(*this, FIX::DiscretionOffset);
  83. FIELD_SET(*this, FIX::Currency);
  84. FIELD_SET(*this, FIX::ComplianceID);
  85. FIELD_SET(*this, FIX::SolicitedFlag);
  86. FIELD_SET(*this, FIX::TimeInForce);
  87. FIELD_SET(*this, FIX::EffectiveTime);
  88. FIELD_SET(*this, FIX::ExpireDate);
  89. FIELD_SET(*this, FIX::ExpireTime);
  90. FIELD_SET(*this, FIX::ExecInst);
  91. FIELD_SET(*this, FIX::Rule80A);
  92. FIELD_SET(*this, FIX::LastShares);
  93. FIELD_SET(*this, FIX::LastPx);
  94. FIELD_SET(*this, FIX::LastSpotRate);
  95. FIELD_SET(*this, FIX::LastForwardPoints);
  96. FIELD_SET(*this, FIX::LastMkt);
  97. FIELD_SET(*this, FIX::TradingSessionID);
  98. FIELD_SET(*this, FIX::LastCapacity);
  99. FIELD_SET(*this, FIX::LeavesQty);
  100. FIELD_SET(*this, FIX::CumQty);
  101. FIELD_SET(*this, FIX::AvgPx);
  102. FIELD_SET(*this, FIX::DayOrderQty);
  103. FIELD_SET(*this, FIX::DayCumQty);
  104. FIELD_SET(*this, FIX::DayAvgPx);
  105. FIELD_SET(*this, FIX::GTBookingInst);
  106. FIELD_SET(*this, FIX::TradeDate);
  107. FIELD_SET(*this, FIX::TransactTime);
  108. FIELD_SET(*this, FIX::ReportToExch);
  109. FIELD_SET(*this, FIX::Commission);
  110. FIELD_SET(*this, FIX::CommType);
  111. FIELD_SET(*this, FIX::GrossTradeAmt);
  112. FIELD_SET(*this, FIX::SettlCurrAmt);
  113. FIELD_SET(*this, FIX::SettlCurrency);
  114. FIELD_SET(*this, FIX::SettlCurrFxRate);
  115. FIELD_SET(*this, FIX::SettlCurrFxRateCalc);
  116. FIELD_SET(*this, FIX::HandlInst);
  117. FIELD_SET(*this, FIX::MinQty);
  118. FIELD_SET(*this, FIX::MaxFloor);
  119. FIELD_SET(*this, FIX::OpenClose);
  120. FIELD_SET(*this, FIX::MaxShow);
  121. FIELD_SET(*this, FIX::Text);
  122. FIELD_SET(*this, FIX::EncodedTextLen);
  123. FIELD_SET(*this, FIX::EncodedText);
  124. FIELD_SET(*this, FIX::FutSettDate2);
  125. FIELD_SET(*this, FIX::OrderQty2);
  126. FIELD_SET(*this, FIX::ClearingFirm);
  127. FIELD_SET(*this, FIX::ClearingAccount);
  128. FIELD_SET(*this, FIX::MultiLegReportingType);
  129. FIELD_SET(*this, FIX::NoContraBrokers);
  130. class NoContraBrokers: public FIX::Group
  131. {
  132. public:
  133. NoContraBrokers() : FIX::Group(382,375,FIX::message_order(375,337,437,438,0)) {}
  134. FIELD_SET(*this, FIX::ContraBroker);
  135. FIELD_SET(*this, FIX::ContraTrader);
  136. FIELD_SET(*this, FIX::ContraTradeQty);
  137. FIELD_SET(*this, FIX::ContraTradeTime);
  138. };
  139. };
  140. }
  141. #endif