Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
SPB_Exchange_Repo
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Amelin Konstantin
SPB_Exchange_Repo
Commits
11e60d11
Commit
11e60d11
authored
Oct 18, 2018
by
Amelin Konstantin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add examples to resources, change names
parent
10f1a8fa
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
378 additions
and
1 deletions
+378
-1
src/main/resources/nsd/Repo NSD bond.xml
+377
-0
src/main/resources/nsd/Repo NSD entity.xml
+0
-0
src/main/resources/rts/Repo RTS bond.xml
+0
-0
src/main/resources/rts/Repo RTS entity 1.xml
+0
-0
src/main/resources/rts/Repo RTS entity 2.xml
+0
-0
src/main/scala/Main.scala
+1
-1
No files found.
src/main/resources/nsd/Repo NSD bond.xml
0 → 100644
View file @
11e60d11
<?xml version="1.0" encoding="utf-8"?>
<nonpublicExecutionReport
xmlns=
"http://www.fpml.org/FpML-5/recordkeeping"
xmlns:nsdext=
"http://www.fpml.org/FpML-5/recordkeeping/nsd-ext"
xmlns:xsi=
"http://www.w3.org/2001/XMLSchema-instance"
xmlns:fpmlext=
"http://www.fpml.org/FpML-5/ext"
xsi:schemaLocation=
"http://www.fpml.org/FpML-5/recordkeeping ../fpml-recordkeeping-merged-schema.xsd http://www.fpml.org/FpML-5/recordkeeping/nsd-ext ../nsd-ext-merged-schema.xsd"
fpmlVersion=
"5-4"
actualBuild=
"5"
>
<!--Заголовок сообщения.-->
<!--Message header.-->
<header>
<!--Номер сообщения-->
<!--Message identifier-->
<messageId
messageIdScheme=
"http://repository.nsd.ru/coding-scheme/messageid(nsdrus)"
>
MesIdfra-1
</messageId>
<!--Отправитель сообщения-->
<!--Message sender-->
<sentBy>
P00000000111
</sentBy>
<!--Получатель сообщения-->
<!--Message receiver-->
<sendTo>
NDC000000000
</sendTo>
<!--Время создания сообщения-->
<!--Message creation time-->
<creationTimestamp>
2015-07-27T19:03:13
</creationTimestamp>
<!--Версия спецификации.-->
<!--The version(s) of specifications.-->
<implementationSpecification>
<!--Версия спецификации.-->
<!--Version of specification.-->
<version>
4.4
</version>
</implementationSpecification>
</header>
<!--Признак корректирующего сообщения-->
<!--Correction message mark-->
<isCorrection>
false
</isCorrection>
<!--Уникальный код цепочки сообщений-->
<!--Messages chain identifier-->
<correlationId
correlationIdScheme=
"http://repository.nsd.ru/coding-scheme/correlationId(nsdrus)"
>
[P00000000111]-[2015]-[MesIdfra-1]
</correlationId>
<!--Дата совершения отчитываемого события-->
<!--Event's actual date-->
<asOfDate>
2013-01-21
</asOfDate>
<!--Регистрация Анкеты-->
<!--Form initial registration-->
<trade
xsi:type=
"nsdext:TradeNsd"
>
<!--Общая информация о генсоглашении/договоре.-->
<!--Trade/Master agreement general information.-->
<tradeHeader>
<!--Регистрационный номер, присвоенный участником-->
<!--Party's identifiers-->
<partyTradeIdentifier>
<!--Участник.-->
<!--Party.-->
<partyReference
href=
"TradeRepository"
/>
<!--Регистрационный номер-->
<!--Trade/Master agreement/Report identifier-->
<tradeId>
NONREF
</tradeId>
<!--Регистрационный номер генерального соглашения-->
<!--Master agreement identifier.-->
<linkId
linkIdScheme=
"http://repository.nsd.ru/coding-scheme/linkid(nsdrus)"
>
MA0000000123
</linkId>
</partyTradeIdentifier>
<!--Регистрационный номер, присвоенный участником-->
<!--Party's identifiers-->
<partyTradeIdentifier>
<!--Участник.-->
<!--Party.-->
<partyReference
href=
"Party1"
/>
<!--Регистрационный номер-->
<!--Trade/Master agreement/Report identifier-->
<tradeId>
Fra-Party1-NUM1
</tradeId>
</partyTradeIdentifier>
<!--Регистрационный номер, присвоенный участником-->
<!--Party's identifiers-->
<partyTradeIdentifier>
<!--Участник.-->
<!--Party.-->
<partyReference
href=
"Party2"
/>
<!--Регистрационный номер-->
<!--Trade/Master agreement/Report identifier-->
<tradeId>
NONREF
</tradeId>
</partyTradeIdentifier>
<!--Регистрационный номер, присвоенный участником-->
<!--Party's identifiers-->
<partyTradeIdentifier>
<!--Участник.-->
<!--Party.-->
<partyReference
href=
"UTIGeneratingParty"
/>
<!--Регистрационный номер-->
<!--Trade/Master agreement/Report identifier-->
<tradeId>
VRKSDFKJH000000004DA2A92861A8A4A1B822DFGP5M2809T02
</tradeId>
</partyTradeIdentifier>
<!--Информация стороны о сделке.-->
<!--Party trade information.-->
<partyTradeInformation>
<!--Участник.-->
<!--Party.-->
<partyReference
href=
"TradeRepository"
/>
<!--Регулятивный режим отчетности.-->
<!--Reporting regime.-->
<reportingRegime>
<!--Наименование правил регулятивной отчетности.-->
<!--Reporting regime name.-->
<name
reportingRegimeNameScheme=
"http://www.fpml.org/coding-scheme/reporting-regime"
>
RussianFederation
</name>
</reportingRegime>
</partyTradeInformation>
<!--Дата сделки.-->
<!--Trade date.-->
<tradeDate>
2013-01-21
</tradeDate>
</tradeHeader>
<!--Сделка репо-->
<!--Repo transaction-->
<fpmlext:repo
xsi:type=
"nsdext:RepoNsd"
>
<!--Тип продукта.-->
<!--Product type.-->
<productType
productTypeScheme=
"http://www.fpml.org/coding-scheme/product-taxonomy"
>
InterestRate:Repo:BondRepo
</productType>
<!--Код классификации ПФИ и договоров РЕПО-->
<!--Derivatives classification code.-->
<productId>
Repo
</productId>
<!--Расчет плавающей ставки.-->
<!--Floating rate calculation.-->
<fpmlext:floatingRateCalculation>
<!--Индекс плавающей ставки.-->
<!--Floating rate index.-->
<floatingRateIndex
floatingRateIndexScheme=
"http://www.fpml.org/coding-scheme/floating-rate-index"
>
EUR-EONIA-OIS-COMPOUND
</floatingRateIndex>
<!--Период плавающей ставки.-->
<!--Floating rate index tenor.-->
<indexTenor>
<!--Мультипликатор периода.-->
<!--Period multiplier.-->
<periodMultiplier>
2
</periodMultiplier>
<!--Тип временного периода.-->
<!--Period type.-->
<period>
W
</period>
</indexTenor>
<!--График спрэда плавающей ставки.-->
<!--Floating rate spread schedule.-->
<spreadSchedule>
<!--Начальное значение.-->
<!--Initial value.-->
<initialValue>
-0.0025
</initialValue>
</spreadSchedule>
<!--Начальное значение ставки.-->
<!--Initial rate.-->
<initialRate>
12
</initialRate>
</fpmlext:floatingRateCalculation>
<!--Коэффициент для расчета дней в процентном периоде.-->
<!--Day count fraction.-->
<fpmlext:dayCountFraction
dayCountFractionScheme=
"http://www.fpml.org/coding-scheme/day-count-fraction"
>
ACT/365.FIXED
</fpmlext:dayCountFraction>
<!--Тип срока репо.-->
<!--Repo duration type.-->
<fpmlext:duration>
Term
</fpmlext:duration>
<!--Первая часть сделки репо.-->
<!--Repo spot leg.-->
<fpmlext:spotLeg
xsi:type=
"nsdext:RepoTransactionLegNsd"
>
<!--Сторона-покупатель инструмента.-->
<!--Buyer party.-->
<buyerPartyReference
href=
"Party1"
/>
<!--Сторона-продавец инструмента.-->
<!--Seller party.-->
<sellerPartyReference
href=
"Party2"
/>
<!--Дата расчетов.-->
<!--Settlement date.-->
<fpmlext:settlementDate>
<!--Дата.-->
<!--Date-->
<adjustableDate>
<!--Дата-->
<!--Date-->
<unadjustedDate>
2015-09-10
</unadjustedDate>
</adjustableDate>
</fpmlext:settlementDate>
<!--Сумма расчетов.-->
<!--Settlement amount.-->
<settlementAmount>
<!--Валюта суммы.-->
<!--Currency of money amount.-->
<currency
currencyScheme=
"http://www.fpml.org/ext/iso4217-2001-08-15"
>
RUB
</currency>
<!--Сумма.-->
<!--Amount.-->
<amount>
123.0000000
</amount>
</settlementAmount>
</fpmlext:spotLeg>
<!--Вторая часть сделки репо.-->
<!--Repo forward leg.-->
<fpmlext:forwardLeg
xsi:type=
"nsdext:ForwardRepoTransactionLegNsd"
>
<!--Сторона-покупатель инструмента.-->
<!--Buyer party.-->
<buyerPartyReference
href=
"Party1"
/>
<!--Сторона-продавец инструмента.-->
<!--Seller party.-->
<sellerPartyReference
href=
"Party2"
/>
<!--Дата расчетов.-->
<!--Settlement date.-->
<fpmlext:settlementDate>
<!--Дата.-->
<!--Date-->
<adjustableDate>
<!--Дата-->
<!--Date-->
<unadjustedDate>
2015-09-10
</unadjustedDate>
</adjustableDate>
</fpmlext:settlementDate>
<!--Сумма расчетов.-->
<!--Settlement amount.-->
<settlementAmount>
<!--Валюта суммы.-->
<!--Currency of money amount.-->
<currency
currencyScheme=
"http://www.fpml.org/ext/iso4217-2001-08-15"
>
RUB
</currency>
<!--Сумма.-->
<!--Amount.-->
<amount>
123.0000000
</amount>
</settlementAmount>
</fpmlext:forwardLeg>
<!--Облигация.-->
<!--Bond.-->
<bond
id=
"ISIN"
>
<!--Идентификатор базового актива.-->
<!--Asset identifier.-->
<instrumentId
instrumentIdScheme=
""
>
ISIN
</instrumentId>
</bond>
</fpmlext:repo>
<!--Обеспечение по сделке-->
<!--Collateral-->
<nsdext:collateral>
<!--Тип обеспечения по договору.-->
<!--Collateral type for the trade.-->
<nsdext:marginType>
FC
</nsdext:marginType>
<!--Форма обеспечения-->
<!--Form of collateral-->
<nsdext:collateralForm>
T
</nsdext:collateralForm>
</nsdext:collateral>
<!--Специальные атрибуты сделок.-->
<!--Specific regulatory trade attributes.-->
<nsdext:nsdSpecificTradeFields>
<!--Обязанность централизованного клиринга-->
<!--Cleared-->
<nsdext:cleared>
N
</nsdext:cleared>
<!--Код клиринговой организации.-->
<!--Clearing organization code.-->
<nsdext:clearingOrganizationCode>
NDC000000001
</nsdext:clearingOrganizationCode>
<!--Дата включения обязательств из договора в клиринговый пул-->
<!--Cleared date-->
<nsdext:clearedDate>
2015-04-15
</nsdext:clearedDate>
<!--Условия согласования параметров сделки (договора).-->
<!--Trade parameters reconciliation type.-->
<nsdext:reconciliationType>
FULL
</nsdext:reconciliationType>
<!--Тип расчетов.-->
<!--Settlement type.-->
<nsdext:clearSettlementType
clearSettlementTypeScheme=
"http://repository.nsd.ru/coding-scheme/clear-settlement-type"
>
CS
</nsdext:clearSettlementType>
<!--Метод расчетов.-->
<!--Settlement method.-->
<nsdext:clearSettlementMethod
clearSettlementMethodScheme=
"http://repository.nsd.ru/coding-scheme/clear-settlement-method"
>
C
</nsdext:clearSettlementMethod>
<!--Способ подтверждения сделки-->
<!--Contract details matching method-->
<nsdext:confirmationMethod>
MATH
</nsdext:confirmationMethod>
<!--Автоматическое закрытие сделки в дату окончания срока действия договора-->
<!--Automatic trade execution on the agreement end date-->
<nsdext:automaticExecution>
Y
</nsdext:automaticExecution>
<!--Признак связанности стороны 1 и стороны 2-->
<!--Parties are affiliated-->
<nsdext:partiesAreAffiliated>
N
</nsdext:partiesAreAffiliated>
<!--Регуляторный тип сделки.-->
<!--Transaction regulatory class.-->
<nsdext:regulatoryStatus
regulatoryAdviceScheme=
"http://repository.nsd.ru/coding-scheme/regulatory-status"
>
Derivative
</nsdext:regulatoryStatus>
<!--Дата начала срока действия договора.-->
<!--Agreement start date.-->
<nsdext:startAgreementDate>
2015-07-17
</nsdext:startAgreementDate>
<!--Дата окончания срока действия договора.-->
<!--Agreement end date.-->
<nsdext:endAgreementDate>
2015-07-09
</nsdext:endAgreementDate>
<!--Информация о клиенте стороны-->
<!--Information about Party clients-->
<nsdext:clientDetails>
<!--Сторона, обслуживающая клиента-->
<!--Party, servicing a client-->
<nsdext:servicingParty
href=
"Party1"
/>
<!--Тип клиента-->
<!--Client type-->
<nsdext:type>
P
</nsdext:type>
<!--Идентификатор клиента-->
<!--Identifier-->
<nsdext:id>
INN_123456789
</nsdext:id>
<!--Наименование клиента-->
<!--Name-->
<nsdext:name>
Клиент физическое лицо
</nsdext:name>
<!--Код страны клиента-->
<!--Country code-->
<nsdext:country
countryScheme=
"http://www.fpml.org/ext/iso3166"
>
AE
</nsdext:country>
</nsdext:clientDetails>
<!--Информация о клиенте стороны-->
<!--Information about Party clients-->
<nsdext:clientDetails>
<!--Сторона, обслуживающая клиента-->
<!--Party, servicing a client-->
<nsdext:servicingParty
href=
"Party2"
/>
<!--Договор заключен не в интересах клиента-->
<!--Own party trade-->
<nsdext:ownTrade>
true
</nsdext:ownTrade>
</nsdext:clientDetails>
</nsdext:nsdSpecificTradeFields>
</trade>
<!--Участники Анкеты-->
<!--Party-->
<party
id=
"TradeRepository"
>
<!--Идентификационный код-->
<!--Party's identifier.-->
<partyId>
NDC000000000
</partyId>
<!--Идентификационный код-->
<!--Party's identifier.-->
<partyId>
LEI_00000000000000000001
</partyId>
<!--Наименование участника.-->
<!--Party's name.-->
<partyName>
НКО АО НРД
</partyName>
</party>
<!--Участники Анкеты-->
<!--Party-->
<party
id=
"UTIGeneratingParty"
>
<!--Идентификационный код-->
<!--Party's identifier.-->
<partyId>
P00000000111
</partyId>
<!--Идентификационный код-->
<!--Party's identifier.-->
<partyId>
LEI_00000000000000000001
</partyId>
<!--Наименование участника.-->
<!--Party's name.-->
<partyName>
Клиент репозитария 1
</partyName>
</party>
<!--Участники Анкеты-->
<!--Party-->
<party
id=
"Party1"
>
<!--Идентификационный код-->
<!--Party's identifier.-->
<partyId>
P00000000111
</partyId>
<!--Идентификационный код-->
<!--Party's identifier.-->
<partyId>
LEI_00000000000000000001
</partyId>
<!--Наименование участника.-->
<!--Party's name.-->
<partyName>
Клиент репозитария 1
</partyName>
<!--Вид экономической деятельности-->
<!--Industry classification-->
<classification
industryClassificationScheme=
"http://www.fpml.org/coding-scheme/external/north-american-industry-classification-system"
>
Other
</classification>
<!--Страна.-->
<!--Country.-->
<country
countryScheme=
"http://www.fpml.org/ext/iso3166"
>
RU
</country>
<!--Тип лица-->
<!--Organization type-->
<organizationType
organizationTypeScheme=
"http://www.fpml.org/coding-scheme/organization-type"
>
L
</organizationType>
</party>
<!--Участники Анкеты-->
<!--Party-->
<party
id=
"Party2"
>
<!--Идентификационный код-->
<!--Party's identifier.-->
<partyId>
P00000000222
</partyId>
<!--Идентификационный код-->
<!--Party's identifier.-->
<partyId>
LEI_00000000000000000002
</partyId>
<!--Наименование участника.-->
<!--Party's name.-->
<partyName>
Клиент репозитария 2
</partyName>
<!--Вид экономической деятельности-->
<!--Industry classification-->
<classification
industryClassificationScheme=
"http://www.fpml.org/coding-scheme/external/north-american-industry-classification-system"
>
Other
</classification>
<!--Страна.-->
<!--Country.-->
<country
countryScheme=
"http://www.fpml.org/ext/iso3166"
>
RU
</country>
<!--Тип лица-->
<!--Organization type-->
<organizationType
organizationTypeScheme=
"http://www.fpml.org/coding-scheme/organization-type"
>
L
</organizationType>
</party>
<!--Участники Анкеты-->
<!--Party-->
<party
id=
"Sender"
>
<!--Идентификационный код-->
<!--Party's identifier.-->
<partyId>
P00000000111
</partyId>
<!--Идентификационный код-->
<!--Party's identifier.-->
<partyId>
LEI_00000000000000000001
</partyId>
<!--Наименование участника.-->
<!--Party's name.-->
<partyName>
Клиент репозитария 1
</partyName>
</party>
</nonpublicExecutionReport>
src/main/resources/nsd/
Example repo NSD
.xml
→
src/main/resources/nsd/
Repo NSD entity
.xml
View file @
11e60d11
File moved
src/main/resources/rts/Repo
_bond_float_1
.xml
→
src/main/resources/rts/Repo
RTS bond
.xml
View file @
11e60d11
File moved
src/main/resources/rts/
Example repo RTS
.xml
→
src/main/resources/rts/
Repo RTS entity 1
.xml
View file @
11e60d11
File moved
src/main/resources/rts/Repo
_1
.xml
→
src/main/resources/rts/Repo
RTS entity 2
.xml
View file @
11e60d11
File moved
src/main/scala/Main.scala
View file @
11e60d11
...
@@ -6,7 +6,7 @@ import templates._
...
@@ -6,7 +6,7 @@ import templates._
object
Main
extends
App
{
object
Main
extends
App
{
//val p = new PrettyPrinter(120, 2)
//val p = new PrettyPrinter(120, 2)
val
sourceXml
=
XML
.
loadFile
(
"src/main/resources/nsd/
Example repo NSD
.xml"
)
val
sourceXml
=
XML
.
loadFile
(
"src/main/resources/nsd/
Repo NSD entity
.xml"
)
val
template
=
new
RepoTemplate
(
sourceXml
)
val
template
=
new
RepoTemplate
(
sourceXml
)
//val outputXml = XML.loadString(p.format(template.render))
//val outputXml = XML.loadString(p.format(template.render))
val
outputXml
=
template
.
template
val
outputXml
=
template
.
template
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment