4040def test_european_call_bk ():
4141
4242 opt_type = OptionTypes .EUROPEAN_CALL
43- strike_price = 100
43+ strike_price = 100.0
4444
4545 bond_option = BondOption (bond , expiry_dt , strike_price , opt_type )
4646
@@ -60,7 +60,7 @@ def test_european_call_bk():
6060def test_american_call_bk ():
6161
6262 opt_type = OptionTypes .AMERICAN_CALL
63- strike_price = 100
63+ strike_price = 100.0
6464
6565 bond_option = BondOption (bond , expiry_dt , strike_price , opt_type )
6666
@@ -79,7 +79,7 @@ def test_american_call_bk():
7979def test_european_put_bk ():
8080
8181 opt_type = OptionTypes .EUROPEAN_PUT
82- strike_price = 100
82+ strike_price = 100.0
8383
8484 bond_option = BondOption (bond , expiry_dt , strike_price , opt_type )
8585
@@ -98,7 +98,7 @@ def test_european_put_bk():
9898def test_american_put_bk ():
9999
100100 opt_type = OptionTypes .AMERICAN_PUT
101- strike_price = 100
101+ strike_price = 100.0
102102
103103 bond_option = BondOption (bond , expiry_dt , strike_price , opt_type )
104104
@@ -117,7 +117,7 @@ def test_american_put_bk():
117117def test_european_call_bdt ():
118118
119119 opt_type = OptionTypes .EUROPEAN_CALL
120- strike_price = 100
120+ strike_price = 100.0
121121
122122 bond_option = BondOption (bond , expiry_dt , strike_price , opt_type )
123123
@@ -135,7 +135,7 @@ def test_european_call_bdt():
135135def test_american_call_bdt ():
136136
137137 opt_type = OptionTypes .AMERICAN_CALL
138- strike_price = 100
138+ strike_price = 100.0
139139
140140 bond_option = BondOption (bond , expiry_dt , strike_price , opt_type )
141141
@@ -153,7 +153,7 @@ def test_american_call_bdt():
153153def test_european_put_bdt ():
154154
155155 opt_type = OptionTypes .EUROPEAN_PUT
156- strike_price = 100
156+ strike_price = 100.0
157157
158158 bond_option = BondOption (bond , expiry_dt , strike_price , opt_type )
159159
@@ -171,7 +171,7 @@ def test_european_put_bdt():
171171def test_american_put_bdt ():
172172
173173 opt_type = OptionTypes .AMERICAN_PUT
174- strike_price = 100
174+ strike_price = 100.0
175175
176176 bond_option = BondOption (bond , expiry_dt , strike_price , opt_type )
177177
@@ -192,7 +192,7 @@ def test_american_put_bdt():
192192def test_european_call_hw ():
193193
194194 opt_type = OptionTypes .EUROPEAN_CALL
195- strike_price = 100
195+ strike_price = 100.0
196196 num_time_steps = 100
197197
198198 bond_option = BondOption (bond , expiry_dt , strike_price , opt_type )
@@ -212,7 +212,7 @@ def test_european_call_hw():
212212def test_american_call_hw ():
213213
214214 opt_type = OptionTypes .AMERICAN_CALL
215- strike_price = 100
215+ strike_price = 100.0
216216
217217 bond_option = BondOption (bond , expiry_dt , strike_price , opt_type )
218218
@@ -231,7 +231,7 @@ def test_american_call_hw():
231231def test_european_put_hw ():
232232
233233 opt_type = OptionTypes .EUROPEAN_PUT
234- strike_price = 100
234+ strike_price = 100.0
235235
236236 bond_option = BondOption (bond , expiry_dt , strike_price , opt_type )
237237
@@ -250,7 +250,7 @@ def test_european_put_hw():
250250def test_american_put_hw ():
251251
252252 opt_type = OptionTypes .AMERICAN_PUT
253- strike_price = 100
253+ strike_price = 100.0
254254
255255 bond_option = BondOption (bond , expiry_dt , strike_price , opt_type )
256256
0 commit comments