OnixS C++ MTS Bond Vision SDP Handler  1.1.0
API documentation
SMP.Classes.BV_TRADE_SPLIT.h
Go to the documentation of this file.
1 #pragma once
2 /*
3 * Copyright Onix Solutions Limited [OnixS]. All rights reserved.
4 *
5 * This software owned by Onix Solutions Limited [OnixS] and is protected by copyright law
6 * and international copyright treaties.
7 *
8 * Access to and use of the software is governed by the terms of the applicable ONIXS Software
9 * Services Agreement (the Agreement) and Customer end user license agreements granting
10 * a non-assignable, non-transferable and non-exclusive license to use the software
11 * for it's own data processing purposes under the terms defined in the Agreement.
12 *
13 * Except as otherwise granted within the terms of the Agreement, copying or reproduction of any part
14 * of this source code or associated reference material to any other location for further reproduction
15 * or redistribution, and any amendments to this copyright notice, are expressly prohibited.
16 *
17 * Any reproduction or redistribution for sale or hiring of the Software not in accordance with
18 * the terms of the Agreement is a violation of copyright law.
19 */
20 
21 
22 /*
23 --------------
24 GENERATED FILE
25 --------------
26 */
27 
28 
29 #include <string>
36 
37 
38 namespace OnixS {
39 namespace Mts {
40 namespace BondVision {
41 namespace SDP {
42 
43 
44 
45 ///
46 class ONIXS_MTS_BONDVISION_SDP_API BV_TRADE_SPLIT : public Class
47 {
48 public:
50  accountInfo(100)
51 
52  {
53  clientAllocationId.reserve(100);
54  allocationDescription.reserve(50);
55  clientOrderId.reserve(50);
56  }
57 
58  virtual ~BV_TRADE_SPLIT() {}
59 
60  /// Class id
61  virtual ClassId::Enum id() const
62  {
64  }
65 
66  /// Buy Side Member requesting the split
68 
69  /// Unique ID of the sell side Member (counterpart of trade)
71 
72  /// Unique ID of the pre-allocation or of the allocation during the trade splitting phase
74 
75  /// Allocation Id for client use
76  std::string clientAllocationId; // maxSize = 100
77 
78  /// Description of the allocation
79  std::string allocationDescription; // maxSize = 50
80 
81  /// Specifies whether the pre-allocation is public or private
83 
84  /// Unique ID of the trader who is locking the allocation
86 
87  /// Unique ID of the trade to be split
89 
90  /// Unique ID of the executed order within the client institution.
91  std::string clientOrderId; // maxSize = 50
92 
93  /// Unique ID of the tradable instrument
95 
96  /// Time at which the pre-allocation was made
97  UInt64 preAllocationTime; // UTIME presentation
98 
99  /// Identifies the split attempt. (Reserved for future use)
101 
102  /// Number of account information
104 
105  /// Account information
106  static const size_t accountInfoSize = 100;
107  std::vector<BV_SPLIT_ACCOUNT_INFO> accountInfo;
108 
109  /// Block counter
111 
112  /// Total number of block to be sent for the allocation (Reserved for future use)
114 
115  /// Status of the block validation (Reserved for future use)
117 
118  /// Action applied to the allocation
120 
121  /// Status of the allocation
123 
124  /// Creation date
126 
127  /// Creation time
128  UInt64 creationTime; // UTIME presentation
129 
130  /// Last update date
132 
133  /// Last update time
134  UInt64 updateTime; // UTIME presentation
135 
136  /// Time zone information
138 
139 
140  ///
141  size_t deserialize(const void* buf, size_t inLen);
142 
143  /// Provides string presentation
144  virtual std::string toString () const;
145 
146  ///
147  virtual size_t serializationBufSize() const { return 2528; }
148 
149  ///
150  virtual BV_TRADE_SPLIT* clone() const;
151 
152  virtual BV_TRADE_SPLIT* clone(void*) const;
153 
154 private:
155  virtual size_t serialize(void* buf) const;
156 
157 };
158 
159 
160 }
161 }
162 }
163 }
std::vector< BV_SPLIT_ACCOUNT_INFO > accountInfo
virtual ClassId::Enum id() const
Class id.
UInt64 preAllocationTime
Time at which the pre-allocation was made.
UInt16 numAccountInfo
Number of account information.
std::string clientOrderId
Unique ID of the executed order within the client institution.
UInt32 workingTraderId
Unique ID of the trader who is locking the allocation.
BV_TRADE_SPLIT_EVENT::Enum event
Action applied to the allocation.
UInt32 tradeId
Unique ID of the trade to be split.
std::string clientAllocationId
Allocation Id for client use.
UInt16 numOfBlocks
Total number of block to be sent for the allocation (Reserved for future use)
UInt32 allocationId
Unique ID of the pre-allocation or of the allocation during the trade splitting phase.
BV_TRADE_SPLIT_STATUS::Enum status
Status of the allocation.
UInt32 instrumentId
Unique ID of the tradable instrument.
BV_PREALLOCATION_TYPE::Enum preAllocationType
Specifies whether the pre-allocation is public or private.
BV_BLOCK_SPLIT_STATUS::Enum blockValidity
Status of the block validation (Reserved for future use)
UInt16 splitAttemptNo
Identifies the split attempt. (Reserved for future use)
UInt32 sellSideMemberId
Unique ID of the sell side Member (counterpart of trade)
unsigned long long UInt64
Definition: Defines.h:47
BV_MEMBER_INFO member
Buy Side Member requesting the split.
unsigned short UInt16
Definition: Defines.h:45
std::string allocationDescription
Description of the allocation.