SecurityStatus.h 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. #ifndef FIX42_SECURITYSTATUS_H
  2. #define FIX42_SECURITYSTATUS_H
  3. #include "Message.h"
  4. namespace FIX42
  5. {
  6. class SecurityStatus : public Message
  7. {
  8. public:
  9. SecurityStatus() : Message(MsgType()) {}
  10. SecurityStatus(const FIX::Message& m) : Message(m) {}
  11. SecurityStatus(const Message& m) : Message(m) {}
  12. SecurityStatus(const SecurityStatus& m) : Message(m) {}
  13. static FIX::MsgType MsgType() { return FIX::MsgType("f"); }
  14. SecurityStatus(
  15. const FIX::Symbol& aSymbol )
  16. : Message(MsgType())
  17. {
  18. set(aSymbol);
  19. }
  20. FIELD_SET(*this, FIX::SecurityStatusReqID);
  21. FIELD_SET(*this, FIX::Symbol);
  22. FIELD_SET(*this, FIX::SymbolSfx);
  23. FIELD_SET(*this, FIX::SecurityID);
  24. FIELD_SET(*this, FIX::IDSource);
  25. FIELD_SET(*this, FIX::SecurityType);
  26. FIELD_SET(*this, FIX::MaturityMonthYear);
  27. FIELD_SET(*this, FIX::MaturityDay);
  28. FIELD_SET(*this, FIX::PutOrCall);
  29. FIELD_SET(*this, FIX::StrikePrice);
  30. FIELD_SET(*this, FIX::OptAttribute);
  31. FIELD_SET(*this, FIX::ContractMultiplier);
  32. FIELD_SET(*this, FIX::CouponRate);
  33. FIELD_SET(*this, FIX::SecurityExchange);
  34. FIELD_SET(*this, FIX::Issuer);
  35. FIELD_SET(*this, FIX::EncodedIssuerLen);
  36. FIELD_SET(*this, FIX::EncodedIssuer);
  37. FIELD_SET(*this, FIX::SecurityDesc);
  38. FIELD_SET(*this, FIX::EncodedSecurityDescLen);
  39. FIELD_SET(*this, FIX::EncodedSecurityDesc);
  40. FIELD_SET(*this, FIX::Currency);
  41. FIELD_SET(*this, FIX::TradingSessionID);
  42. FIELD_SET(*this, FIX::UnsolicitedIndicator);
  43. FIELD_SET(*this, FIX::SecurityTradingStatus);
  44. FIELD_SET(*this, FIX::FinancialStatus);
  45. FIELD_SET(*this, FIX::CorporateAction);
  46. FIELD_SET(*this, FIX::HaltReasonChar);
  47. FIELD_SET(*this, FIX::InViewOfCommon);
  48. FIELD_SET(*this, FIX::DueToRelated);
  49. FIELD_SET(*this, FIX::BuyVolume);
  50. FIELD_SET(*this, FIX::SellVolume);
  51. FIELD_SET(*this, FIX::HighPx);
  52. FIELD_SET(*this, FIX::LowPx);
  53. FIELD_SET(*this, FIX::LastPx);
  54. FIELD_SET(*this, FIX::TransactTime);
  55. FIELD_SET(*this, FIX::Adjustment);
  56. };
  57. }
  58. #endif