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
3474fac9
Commit
3474fac9
authored
Oct 22, 2018
by
Amelin Konstantin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
delete unused {} from RepoTemplate
parent
5bb51892
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
26 additions
and
27 deletions
+26
-27
src/main/scala/templates/RepoTemplate.scala
+26
-27
No files found.
src/main/scala/templates/RepoTemplate.scala
View file @
3474fac9
...
...
@@ -115,25 +115,24 @@ final class RepoTemplate(source: Node) extends TradeTemplate(source) {
<fpmlext:repo
xsi:
type
=
"rtsrep:Repo"
>
<
fpml
:
productId>
{
get
(
Try
{
(
source
\
"
trade
"
\
"
repo
"
\
"
productType
"
)
.head
})
}
</fpml:productId>
<fpml:productId
productIdScheme
={
get
(
Try
{
(
source
\
"trade"
\
"repo"
\
"productId"
).
head
},
"productIdScheme"
)
}>{
get
(
Try
{
(
source
\
"trade"
\
"repo"
\
"productId"
).
head
})
}</
fpml
:
productId>
{
<fpmlext:fixedRateSchedule>
<fpml:initialValue>
{
get
(
Try
{
(
source
\
"
trade
"
\
"
repo
"
\
"
fixedRateSchedule
"
\
"
initialValue
"
)
.head
})
}
</fpml:initialValue>
<step>
<stepDate>
{
get
(
Try
{
(
source
\
"
trade
"
\
"
repo
"
\
"
fixedRateSchedule
"
\\
"
stepDate
"
)
.head
})
}
</stepDate>
<stepValue>
{
get
(
Try
{
(
source
\
"
trade
"
\
"
repo
"
\
"
fixedRateSchedule
"
\\
"
stepValue
"
)
.head
})
}
</stepValue>
</step>
</fpmlext:fixedRateSchedule>
<fpmlext:floatingRateCalculation>
<fpml:floatingRateIndex>
{
get
(
Try
{
(
source
\
"
trade
"
\
"
repo
"
\
"
floatingRateCalculation
"
\
"
floatingRateIndex
"
)
.head
})
}
</fpml:floatingRateIndex>
<indexTenor>
<periodMultiplier>
{
get
(
Try
{
(
source
\
"
trade
"
\
"
repo
"
\
"
floatingRateCalculation
"
\\
"
periodMultiplier
"
)
.head
})
}
</periodMultiplier>
<period>
{
get
(
Try
{
(
source
\
"
trade
"
\
"
repo
"
\
"
floatingRateCalculation
"
\\
"
period
"
)
.head
})
}
</period>
</indexTenor>
<spreadSchedule>
<initialValue>
{
get
(
Try
{
(
source
\
"
trade
"
\
"
repo
"
\
"
floatingRateCalculation
"
\\
"
initialValue
"
)
.head
})
}
</initialValue>
</spreadSchedule>
<initialRate>
{
get
(
Try
{
(
source
\
"
trade
"
\
"
repo
"
\
"
floatingRateCalculation
"
\\
"
initialRate
"
)
.head
})
}
</initialRate>
</fpmlext:floatingRateCalculation>
}
<fpmlext:fixedRateSchedule>
<fpml:initialValue>
{
get
(
Try
{
(
source
\
"
trade
"
\
"
repo
"
\
"
fixedRateSchedule
"
\
"
initialValue
"
)
.head
})
}
</fpml:initialValue>
<step>
<stepDate>
{
get
(
Try
{
(
source
\
"
trade
"
\
"
repo
"
\
"
fixedRateSchedule
"
\\
"
stepDate
"
)
.head
})
}
</stepDate>
<stepValue>
{
get
(
Try
{
(
source
\
"
trade
"
\
"
repo
"
\
"
fixedRateSchedule
"
\\
"
stepValue
"
)
.head
})
}
</stepValue>
</step>
</fpmlext:fixedRateSchedule>
<fpmlext:floatingRateCalculation>
<fpml:floatingRateIndex>
{
get
(
Try
{
(
source
\
"
trade
"
\
"
repo
"
\
"
floatingRateCalculation
"
\
"
floatingRateIndex
"
)
.head
})
}
</fpml:floatingRateIndex>
<indexTenor>
<periodMultiplier>
{
get
(
Try
{
(
source
\
"
trade
"
\
"
repo
"
\
"
floatingRateCalculation
"
\\
"
periodMultiplier
"
)
.head
})
}
</periodMultiplier>
<period>
{
get
(
Try
{
(
source
\
"
trade
"
\
"
repo
"
\
"
floatingRateCalculation
"
\\
"
period
"
)
.head
})
}
</period>
</indexTenor>
<spreadSchedule>
<initialValue>
{
get
(
Try
{
(
source
\
"
trade
"
\
"
repo
"
\
"
floatingRateCalculation
"
\\
"
initialValue
"
)
.head
})
}
</initialValue>
</spreadSchedule>
<initialRate>
{
get
(
Try
{
(
source
\
"
trade
"
\
"
repo
"
\
"
floatingRateCalculation
"
\\
"
initialRate
"
)
.head
})
}
</initialRate>
</fpmlext:floatingRateCalculation>
<fpmlext:dayCountFraction>
{
get
(
Try
{
(
source
\
"
trade
"
\
"
repo
"
\
"
dayCountFraction
"
)
.head
})
}
</fpmlext:dayCountFraction>
<fpmlext:spotLeg
xsi:
type
=
"rtsrep:RepoTransactionLeg"
>
<
fpml
:
buyerPartyReference
href
={
get
(
Try
{
(
source
\
"trade"
\
"repo"
\
"spotLeg"
\
"buyerPartyReference"
).
head
},
"href"
)
}
/>
...
...
@@ -181,13 +180,12 @@ final class RepoTemplate(source: Node) extends TradeTemplate(source) {
</rtsrep:deliveryDate>
*/
}
</fpmlext:forwardLeg>
{
<fpml:equity
id
={
get
(
Try
{
(
source
\
"
trade
"
\
"
repo
"
\
"
equity
"
)
.head
},
"
id
"
)
}>
<
fpml
:
instrumentId
instrumentIdScheme
=
""
>{
get
(
Try
{
(
source
\
"trade"
\
"repo"
\
"equity"
\
"instrumentId"
).
head
})
}</
fpml
:
instrumentId>
</fpml:equity>
<fpml:bond
id
={
get
(
Try
{
(
source
\
"trade"
\
"repo"
\
"bond"
).
head
},
"id"
)
}>
<
fpml
:
instrumentId
instrumentIdScheme
=
""
>{
get
(
Try
{
(
source
\
"trade"
\
"repo"
\
"bond"
\
"instrumentId"
).
head
})
}</
fpml
:
instrumentId>
</fpml:bond>
}
<fpml:equity
id
={
get
(
Try
{
(
source
\
"trade"
\
"repo"
\
"equity"
).
head
},
"id"
)
}>
<
fpml
:
instrumentId
instrumentIdScheme
=
""
>{
get
(
Try
{
(
source
\
"trade"
\
"repo"
\
"equity"
\
"instrumentId"
).
head
})
}</
fpml
:
instrumentId>
</fpml:equity>
<fpml:bond
id
={
get
(
Try
{
(
source
\
"trade"
\
"repo"
\
"bond"
).
head
},
"id"
)
}>
<
fpml
:
instrumentId
instrumentIdScheme
=
""
>{
get
(
Try
{
(
source
\
"trade"
\
"repo"
\
"bond"
\
"instrumentId"
).
head
})
}</
fpml
:
instrumentId>
</fpml:bond>
</fpmlext:repo>
<fpml:documentation>
<fpml:masterAgreement>
...
...
@@ -196,4 +194,4 @@ final class RepoTemplate(source: Node) extends TradeTemplate(source) {
</fpml:documentation>
</fpml:trade>
}
}
}
\ No newline at end of file
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