OnixS C++ MTS Bond Vision SDP Handler 1.5.1
API documentation
Loading...
Searching...
No Matches
SMP.Classes.TI_INSTRUMENT.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--------------
24GENERATED FILE
25--------------
26*/
27
28
29#include <string>
33
34
35#if defined (_MSC_VER)
36#pragma warning (push)
37#pragma warning (disable: 4251)
38#endif
39
40namespace OnixS {
41namespace Mts {
42namespace BondVision {
43namespace SDP {
44
45
46
48class ONIXS_MTS_BONDVISION_SDP_API TI_INSTRUMENT : public Class
49{
50public:
52 {
53 instrumentCode.reserve(12);
54 instrumentDesc.reserve(36);
55 bondTypology.reserve(6);
56 currencyCode.reserve(3);
57 settlCurrencyCode.reserve(3);
58 alternativeCode.reserve(16);
59 }
60
61 virtual ~TI_INSTRUMENT() {}
62
64 virtual ClassId::Enum id() const
65 {
67 }
68
71
73 std::string instrumentCode; // maxSize = 12
74
76 std::string instrumentDesc; // maxSize = 36
77
80
83
86
89
91 Double couponRate; // DOUBLE presentation
92
95
98
101
104
107
110
113
116
118 Double auctionInstrumentPrice; // DOUBLE presentation
119
121 Double auctionInstrumentYield; // DOUBLE presentation
122
124 Double redemptionPrice; // DOUBLE presentation
125
128
131
134
137
140
143
146
149
152
155
158
161
163 std::string bondTypology; // maxSize = 6
164
166 std::string currencyCode; // maxSize = 3
167
169 std::string settlCurrencyCode; // maxSize = 3
170
172 Double bPV; // DOUBLE presentation
173
176
178 std::string alternativeCode; // maxSize = 16
179
181 Double outstanding; // DOUBLE presentation
182
185
186
188 size_t deserialize(const void* buf, size_t inLen);
189
191 virtual std::string toString () const;
192
194 virtual size_t serializationBufSize() const { return 260; }
195
197 virtual TI_INSTRUMENT* clone() const;
198
199 virtual TI_INSTRUMENT* clone(void*) const;
200
201private:
202 virtual size_t serialize(void* buf) const;
203
204};
205
206
207}
208}
209}
210}
211
212#if defined (_MSC_VER)
213#pragma warning (pop)
214#endif
TI_INSTRUMENT_TYPOLOGY::Enum instrumentTipology
ID of the type of instrument (for example, Corporate)
UInt32 issuerId
Unique ID of the issuing body.
virtual ClassId::Enum id() const
Class id.
UInt16 startExceptionDays
Number of working days between the start date of the exception period and the date on which the coupo...
UInt32 residualMaturityDays
Number of days to the maturity of the instrument.
UInt32 financialInstrumentId
Unique ID of the financial instrument (Bond)
TI_FLAG::Enum benchmarkFlag
Flag indicating whether the instrument under examination is of the benchmark type or not.
TI_DAY_COUNT_CONVENTION_TYPE::Enum dayCountConventionType
Unique ID code of the type of calculation of the accrual.
UInt16 baseCoefficientIndex
Field used by the Calculation Engine.
virtual TI_INSTRUMENT * clone() const
UInt16 stopExceptionDays
Number of working days between the stop date of the exception period and the date on which the coupon...
TI_YIELD_FORMULA_TYPE::Enum yieldFormulaType
Unique ID code of the method for calculating the price or yield of the instrument.
UInt16 couponFrequency
Frequency of the coupon. Number of months between the payments of the coupons. Not set for instrument...
UInt16 settlPeriod
Time interval between the date on which trading took place and the date on which the operation was se...
UInt32 firstAccrualDate
Start date of interest accrual.
std::string alternativeCode
MIC code of the financial instrument.
std::string bondTypology
It indicates the financial group (for example, BTP, CCT, BTA, BTC, etc.)
UInt32 lastCouponDate
Date on which the last coupon was detached before the instrument is paid.
TI_COUPON_TYPE::Enum couponType
ID of the type of coupon.
Double redemptionPrice
Redemption price of the instrument.
UInt32 residualMaturityId
ID of the residual maturity of the instrument on the current date.
UInt32 maturityDate
Date of payment of the instrument.
std::string instrumentDesc
Description of the instrument.
Double auctionInstrumentYield
Yield of the instrument at the time of the auction expressed as a percentage.
UInt32 issueDate
Date of issue of the instrument.
TI_EXCEPTION_DATE_TYPE::Enum exceptionDateType
Unique ID code of the type of exception date of the coupon.
UInt32 firstCouponDate
Date on which the first coupon was detached.
UInt16 mTSClassification
MTS classification of the financial instrument.
Double couponRate
Current coupon rate, expressed as a percentage.
UInt32 firstSettlDate
First date of settlement of the instrument.
std::string currencyCode
Unique ID code of the Trading Currency related to the instrument.
std::string settlCurrencyCode
Unique ID code of the Settlement Currency related to the instrument.
virtual TI_INSTRUMENT * clone(void *) const
size_t deserialize(const void *buf, size_t inLen)
TI_FLAG::Enum cCPEligibleFg
Allows counterparties with CCP to close a trade in a Bilateral modality.
UInt16 inflationIndexId
Unique ID of the Inflation Index.
virtual std::string toString() const
Provides string presentation.
TI_DISCOUNT_RATE_FORMULA_TYPE::Enum discountRateFormulaType
Unique ID code of the method for calculating the discount rate of the instrument.
Double auctionInstrumentPrice
Auction price of the instrument.
std::string instrumentCode
Alphanumeric ID code of the instrument (ISIN coding)
UInt16 maturityBucket
ID of the group to which the instrument belongs, defined as a function of its maturity.
UInt16 settlExpiryPeriod
Time interval allowed to conclude the settlement of the operation, expressed as a number of working d...
unsigned short UInt16
Definition Defines.h:45