Style change and limit number of simulation results sent
This commit is contained in:
4
serve.go
4
serve.go
@@ -30,6 +30,10 @@ func index(w http.ResponseWriter, r *http.Request) {
|
||||
mcOpt.PriceMonteCarlo()
|
||||
bsOpt.PriceClosedForm()
|
||||
|
||||
// Only send the first 10000 levels, as the data going over
|
||||
// the wire would otherwise be very significant
|
||||
mcOpt.Levels = mcOpt.Levels[:1000]
|
||||
|
||||
options := make(map[string]Option)
|
||||
options["MonteCarlo"] = mcOpt
|
||||
options["ClosedForm"] = bsOpt
|
||||
|
||||
Reference in New Issue
Block a user