OnixS C++ Eurex T7 Market and Reference Data Interface (EMDI, RDI, EOBI) Handlers  7.4.3
API documentation
CrossRequest.cpp
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 
21 #include "MessageDataStructures.h"
22 #include "../Utils.h"
23 
24 namespace OnixS{
25 namespace Eurex{
26 namespace MarketData{
27 namespace EOBI{
28 
30 
31 std::string EOBI::CrossRequest::msgType() const
32 {
33  return std::string("U23", 3);
34 }
35 
37 {
38  return EOBI::MarketDataType::CrossTradeAnnouncement; // implied constant
39 }
40 
42 {
43  return EOBI::SecurityIDSource::Marketplace; // implied constant
44 }
45 
47 {
48  return (getData<CrossRequestMsgData>())->SecurityID;
49 }
50 
52 {
53  return (getData<CrossRequestMsgData>())->LastQty;
54 }
55 
57 {
58  return (getData<CrossRequestMsgData>())->TransactTime;
59 }
60 
61 void CrossRequest::toString(std::string& presentation) const
62 {
63  presentation
64  << "CrossRequest [msgSeqNum="
65  << msgSeqNum()
66  << ", securityID="
67  << securityID()
68  << ", lastQty="
69  << lastQty()
70  << ", transactTime="
71  << transactTime();
72 
73  presentation << ']';
74 }
75 
76 }}}}
EOBI::Implementation::CrossRequestMsgData CrossRequestMsgData
QuantityType lastQty() const
Defines the requested quantity in a Cross Request.
std::string toString() const
Returns text presentation.
Definition: MessageBase.cpp:37
UInt64 securityID() const
Unique instrument identifier.
std::string msgType() const
Message type.
Definition: Defines.h:30
UInt64 transactTime() const
Transaction timestamp.
EOBI::MarketDataType::Enum marketDataType() const
Market data type.
UInt32 msgSeqNum() const
Message sequence number.
Definition: MessageBase.cpp:32
EOBI::SecurityIDSource::Enum securityIDSource() const
Marketplace assigned identifier.