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
8e029b72
Commit
8e029b72
authored
Apr 24, 2019
by
Amelin Konstantin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix CommodityOptionTemplate. optionType - required
parent
e9f23bde
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
src/main/scala/templates/CommodityOptionTemplate.scala
+2
-2
No files found.
src/main/scala/templates/CommodityOptionTemplate.scala
View file @
8e029b72
...
...
@@ -12,8 +12,8 @@ class CommodityOptionTemplate(source: Node) extends TradeTemplate(source) {
<fpml:buyerPartyReference
href
={
parties
(
get
(
source
\\
"trade"
\
"commodityOption"
\
"buyerPartyReference"
,
"href"
).
mkString
).
_1
}/>
<
fpml
:
sellerPartyReference
href
={
parties
(
get
(
source
\\
"trade"
\
"commodityOption"
\
"sellerPartyReference"
,
"href"
).
mkString
).
_1
}/>
{
/* Should be filled. optionType isn`t present in source!!!*/
}
{
/* { <fpml:optionType>{ get(source \\ "trade" \ "commodityOption" \ "optionType") }</fpml:optionType> } */
}
<
fpml
:
optionType>
{
if
(
get
(
source
\\
"
trade
"
\
"
commodityOption
"
\
"
buyerPartyReference
"
,
"
href
"
)
.mkString
==
"Party1"
)
"Call"
else
"Put"
}</
fpml
:
optionType>
<
fpml
:
optionType>
{
get
(
source
\\
"
trade
"
\
"
commodityOption
"
\
"
optionType
"
)
}
</fpml:optionType>
}
{
/* <fpml:optionType>{ if (get(source \\ "trade" \ "commodityOption" \ "buyerPartyReference", "href").mkString == "Party1") "Call" else "Put" }</fpml:optionType> */
}
<
fpml
:
commodity
id
={
get
(
source
\\
"trade"
\
"commodityOption"
\
"commodity"
,
"id"
)
}>
<
fpml
:
instrumentId
instrumentIdScheme
={
get
(
source
\\
"trade"
\
"commodityOption"
\
"commodity"
\
"instrumentId"
,
"instrumentIdScheme"
)
}>{
get
(
source
\\
"trade"
\
"commodityOption"
\
"commodity"
\
"instrumentId"
)
}</
fpml
:
instrumentId>
<fpml:unit>
{
get
(
source
\\
"
trade
"
\
"
commodityOption
"
\
"
commodity
"
\
"
unit
"
)
}
</fpml:unit>
...
...
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