ListStrikePrice.h 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. #ifndef FIX42_LISTSTRIKEPRICE_H
  2. #define FIX42_LISTSTRIKEPRICE_H
  3. #include "Message.h"
  4. namespace FIX42
  5. {
  6. class ListStrikePrice : public Message
  7. {
  8. public:
  9. ListStrikePrice() : Message(MsgType()) {}
  10. ListStrikePrice(const FIX::Message& m) : Message(m) {}
  11. ListStrikePrice(const Message& m) : Message(m) {}
  12. ListStrikePrice(const ListStrikePrice& m) : Message(m) {}
  13. static FIX::MsgType MsgType() { return FIX::MsgType("m"); }
  14. ListStrikePrice(
  15. const FIX::ListID& aListID,
  16. const FIX::TotNoStrikes& aTotNoStrikes )
  17. : Message(MsgType())
  18. {
  19. set(aListID);
  20. set(aTotNoStrikes);
  21. }
  22. FIELD_SET(*this, FIX::ListID);
  23. FIELD_SET(*this, FIX::TotNoStrikes);
  24. FIELD_SET(*this, FIX::NoStrikes);
  25. class NoStrikes: public FIX::Group
  26. {
  27. public:
  28. NoStrikes() : FIX::Group(428,55,FIX::message_order(55,65,48,22,167,200,205,201,202,206,231,223,207,106,348,349,107,350,351,140,11,54,44,15,58,354,355,0)) {}
  29. FIELD_SET(*this, FIX::Symbol);
  30. FIELD_SET(*this, FIX::SymbolSfx);
  31. FIELD_SET(*this, FIX::SecurityID);
  32. FIELD_SET(*this, FIX::IDSource);
  33. FIELD_SET(*this, FIX::SecurityType);
  34. FIELD_SET(*this, FIX::MaturityMonthYear);
  35. FIELD_SET(*this, FIX::MaturityDay);
  36. FIELD_SET(*this, FIX::PutOrCall);
  37. FIELD_SET(*this, FIX::StrikePrice);
  38. FIELD_SET(*this, FIX::OptAttribute);
  39. FIELD_SET(*this, FIX::ContractMultiplier);
  40. FIELD_SET(*this, FIX::CouponRate);
  41. FIELD_SET(*this, FIX::SecurityExchange);
  42. FIELD_SET(*this, FIX::Issuer);
  43. FIELD_SET(*this, FIX::EncodedIssuerLen);
  44. FIELD_SET(*this, FIX::EncodedIssuer);
  45. FIELD_SET(*this, FIX::SecurityDesc);
  46. FIELD_SET(*this, FIX::EncodedSecurityDescLen);
  47. FIELD_SET(*this, FIX::EncodedSecurityDesc);
  48. FIELD_SET(*this, FIX::PrevClosePx);
  49. FIELD_SET(*this, FIX::ClOrdID);
  50. FIELD_SET(*this, FIX::Side);
  51. FIELD_SET(*this, FIX::Price);
  52. FIELD_SET(*this, FIX::Currency);
  53. FIELD_SET(*this, FIX::Text);
  54. FIELD_SET(*this, FIX::EncodedTextLen);
  55. FIELD_SET(*this, FIX::EncodedText);
  56. };
  57. };
  58. }
  59. #endif