Skip to content

Commit 4e7aad4

Browse files
committed
added binary payoff type.
1 parent 88bf784 commit 4e7aad4

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed

src/examples/EQ/binary_option.json

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
{"contracts" : [
2+
{
3+
"action":"PV",
4+
"pricer":"Analytical",
5+
"asset":"EQ",
6+
"payoff_type": "Binary",
7+
"market_data":{
8+
"underlying_price":100,
9+
"option_type":"C",
10+
"strike_price":100,
11+
"volatility":0.4,
12+
"risk_free_rate":0.06,
13+
"maturity":"2023-12-31",
14+
"dividend": 0.01
15+
}
16+
},
17+
{
18+
"action":"PV",
19+
"pricer":"MonteCarlo",
20+
"asset":"EQ",
21+
"payoff_type": "Binary",
22+
"market_data":{
23+
"underlying_price":100,
24+
"option_type":"C",
25+
"strike_price":105,
26+
"volatility":0.45,
27+
"risk_free_rate":0.06,
28+
"maturity":"2023-12-31",
29+
"dividend": 0.01,
30+
"simulation":100000
31+
}}
32+
]
33+
}

0 commit comments

Comments
 (0)