SecurityDefinitionRequest.h 3.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. #ifndef FIX42_SECURITYDEFINITIONREQUEST_H
  2. #define FIX42_SECURITYDEFINITIONREQUEST_H
  3. #include "Message.h"
  4. namespace FIX42
  5. {
  6. class SecurityDefinitionRequest : public Message
  7. {
  8. public:
  9. SecurityDefinitionRequest() : Message(MsgType()) {}
  10. SecurityDefinitionRequest(const FIX::Message& m) : Message(m) {}
  11. SecurityDefinitionRequest(const Message& m) : Message(m) {}
  12. SecurityDefinitionRequest(const SecurityDefinitionRequest& m) : Message(m) {}
  13. static FIX::MsgType MsgType() { return FIX::MsgType("c"); }
  14. SecurityDefinitionRequest(
  15. const FIX::SecurityReqID& aSecurityReqID,
  16. const FIX::SecurityRequestType& aSecurityRequestType )
  17. : Message(MsgType())
  18. {
  19. set(aSecurityReqID);
  20. set(aSecurityRequestType);
  21. }
  22. FIELD_SET(*this, FIX::SecurityReqID);
  23. FIELD_SET(*this, FIX::SecurityRequestType);
  24. FIELD_SET(*this, FIX::Symbol);
  25. FIELD_SET(*this, FIX::SymbolSfx);
  26. FIELD_SET(*this, FIX::SecurityID);
  27. FIELD_SET(*this, FIX::IDSource);
  28. FIELD_SET(*this, FIX::SecurityType);
  29. FIELD_SET(*this, FIX::MaturityMonthYear);
  30. FIELD_SET(*this, FIX::MaturityDay);
  31. FIELD_SET(*this, FIX::PutOrCall);
  32. FIELD_SET(*this, FIX::StrikePrice);
  33. FIELD_SET(*this, FIX::OptAttribute);
  34. FIELD_SET(*this, FIX::ContractMultiplier);
  35. FIELD_SET(*this, FIX::CouponRate);
  36. FIELD_SET(*this, FIX::SecurityExchange);
  37. FIELD_SET(*this, FIX::Issuer);
  38. FIELD_SET(*this, FIX::EncodedIssuerLen);
  39. FIELD_SET(*this, FIX::EncodedIssuer);
  40. FIELD_SET(*this, FIX::SecurityDesc);
  41. FIELD_SET(*this, FIX::EncodedSecurityDescLen);
  42. FIELD_SET(*this, FIX::EncodedSecurityDesc);
  43. FIELD_SET(*this, FIX::Currency);
  44. FIELD_SET(*this, FIX::Text);
  45. FIELD_SET(*this, FIX::EncodedTextLen);
  46. FIELD_SET(*this, FIX::EncodedText);
  47. FIELD_SET(*this, FIX::TradingSessionID);
  48. FIELD_SET(*this, FIX::NoRelatedSym);
  49. class NoRelatedSym: public FIX::Group
  50. {
  51. public:
  52. NoRelatedSym() : FIX::Group(146,311,FIX::message_order(311,312,309,305,310,313,314,315,316,317,436,435,308,306,362,363,307,364,365,319,54,318,0)) {}
  53. FIELD_SET(*this, FIX::UnderlyingSymbol);
  54. FIELD_SET(*this, FIX::UnderlyingSymbolSfx);
  55. FIELD_SET(*this, FIX::UnderlyingSecurityID);
  56. FIELD_SET(*this, FIX::UnderlyingIDSource);
  57. FIELD_SET(*this, FIX::UnderlyingSecurityType);
  58. FIELD_SET(*this, FIX::UnderlyingMaturityMonthYear);
  59. FIELD_SET(*this, FIX::UnderlyingMaturityDay);
  60. FIELD_SET(*this, FIX::UnderlyingPutOrCall);
  61. FIELD_SET(*this, FIX::UnderlyingStrikePrice);
  62. FIELD_SET(*this, FIX::UnderlyingOptAttribute);
  63. FIELD_SET(*this, FIX::UnderlyingContractMultiplier);
  64. FIELD_SET(*this, FIX::UnderlyingCouponRate);
  65. FIELD_SET(*this, FIX::UnderlyingSecurityExchange);
  66. FIELD_SET(*this, FIX::UnderlyingIssuer);
  67. FIELD_SET(*this, FIX::EncodedUnderlyingIssuerLen);
  68. FIELD_SET(*this, FIX::EncodedUnderlyingIssuer);
  69. FIELD_SET(*this, FIX::UnderlyingSecurityDesc);
  70. FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDescLen);
  71. FIELD_SET(*this, FIX::EncodedUnderlyingSecurityDesc);
  72. FIELD_SET(*this, FIX::RatioQty);
  73. FIELD_SET(*this, FIX::Side);
  74. FIELD_SET(*this, FIX::UnderlyingCurrency);
  75. };
  76. };
  77. }
  78. #endif