OnixS C++ Eurex T7 Market and Reference Data Interface (EMDI, RDI, EOBI) Handlers  7.4.3
API documentation
InstrumentStateChange.h
Go to the documentation of this file.
1 /*
2 * Copyright Onix Solutions Limited [OnixS]. All rights reserved.
3 *
4 * This software owned by Onix Solutions Limited [OnixS] and is protected by copyright law
5 * and international copyright treaties.
6 *
7 * Access to and use of the software is governed by the terms of the applicable OnixS Software
8 * Services Agreement (the Agreement) and Customer end user license agreements granting
9 * a non-assignable, non-transferable and non-exclusive license to use the software
10 * for it's own data processing purposes under the terms defined in the Agreement.
11 *
12 * Except as otherwise granted within the terms of the Agreement, copying or reproduction of any part
13 * of this source code or associated reference material to any other location for further reproduction
14 * or redistribution, and any amendments to this copyright notice, are expressly prohibited.
15 *
16 * Any reproduction or redistribution for sale or hiring of the Software not in accordance with
17 * the terms of the Agreement is a violation of copyright law.
18 */
19 
20 #pragma once
21 
25 
26 namespace OnixS
27 {
28  namespace Eurex
29  {
30  namespace MarketData
31  {
32  /// Instrument state change
33  class ONIXS_EUREX_EMDI_API InstrumentStateChange : public Message
34  {
35  public:
36  /// Product identifier.
38  {
39  return getUInt32 (Tags::MarketSegmentID);
40  }
41 
42  /// Instrument identifier.
44  {
45  return getInt64 (Tags::SecurityID);
46  }
47 
48  /// Security Status.
50  {
51  return getIntEnumFieldValue<SecurityStatus> (*this, Tags::SecurityStatus);
52  }
53 
54  /// Defines the security trading status.
56  {
57  return getIntEnumFieldValue<SecurityTradingStatus> (*this, Tags::SecurityTradingStatus);
58  }
59 
60  /// Indicator for stressed market conditions.
62  {
63  return getIntEnumFieldValue<MarketCondition>(*this, Tags::MarketCondition);
64  }
65 
66  /// Indicates if product is in the state Fast Market.
67  bool fastMarketIndicator() const
68  {
69  return getUInt32 (Tags::FastMarketIndicator) == 1;
70  }
71 
72  /// Identifies an event related to a securityTradingStatus()
74  {
75  return getIntEnumFieldValue<SecurityTradingEvent> (*this, Tags::SecurityTradingEvent);
76  }
77 
78  /// Identifies the sold out status (applicable for continuous auction trading model only).
80  {
81  return getIntEnumFieldValue<SoldOutIndicator>(*this, Tags::SoldOutIndicator);
82  }
83 
84  /// Time when request was processed by the matcher (nanoseconds).
85  UInt64 transactTime() const
86  {
87  return getUInt64(Tags::TransactTime);
88  }
89 
90  /// Defines the TES security status.
92  {
93  return getIntEnumFieldValue<SecurityStatus> (*this, Tags::TESSecurityStatus);
94  }
95 
96  private:
98 
99  InstrumentStateChange (const void* impl)
100  : Message (impl)
101  {
102  }
103  };
104  }
105  }
106 }
UInt64 transactTime() const
Time when request was processed by the matcher (nanoseconds).
SecurityId securityId() const
Instrument identifier.
bool fastMarketIndicator() const
Indicates if product is in the state Fast Market.
SecurityTradingEvent::Enum securityTradingEvent() const
Identifies an event related to a securityTradingStatus()
SecurityTradingStatus::Enum securityTradingStatus() const
Defines the security trading status.
SoldOutIndicator::Enum soldOutIndicator() const
Identifies the sold out status (applicable for continuous auction trading model only).
const Tag SecurityTradingStatus
Definition: Tags.h:63
Definition: Defines.h:30
Int64 SecurityId
Alias for Security Id type.
Definition: Defines.h:51
MarketSegmentId marketSegmentId() const
Product identifier.
MarketCondition::Enum marketCondition() const
Indicator for stressed market conditions.
SecurityStatus::Enum securityStatus() const
Security Status.
const Tag SecurityTradingEvent
Definition: Tags.h:207
SecurityStatus::Enum tesSecurityStatus() const
Defines the TES security status.
UInt32 MarketSegmentId
Alias for Market Segment ID type.
Definition: Defines.h:40
const Tag FastMarketIndicator
Definition: Tags.h:159