Skip to content

example in README fails #80

Description

@JeffreySarnoff
julia> using Bruno
julia> stock = Stock(50; volatility=0.3)
julia> call = EuroCallOption(stock, 55; maturity=.5)
ERROR: MethodError: no method matching EuroCallOption(::Stock{Int64, Int64, Float64}, ::Int64; maturity::Float64)

Closest candidates are:
  EuroCallOption(::Any, ::Any, ::Any, ::Any, ::Any) got unsupported keyword argument "maturity"
   @ Bruno C:\Users\MrJSa\.julia\packages\Bruno\qKQWh\src\Instruments\financial_instruments.jl:103
  EuroCallOption(::Any, ::Any, ::Any, ::Any, ::Any, ::Any) got unsupported keyword argument "maturity"
   @ Bruno C:\Users\MrJSa\.julia\packages\Bruno\qKQWh\src\Instruments\financial_instruments.jl:103
  EuroCallOption(::Any, ::Any) got unsupported keyword argument "maturity"
   @ Bruno C:\Users\MrJSa\.julia\packages\Bruno\qKQWh\src\Instruments\financial_instruments.jl:103
  ...

Stacktrace:
 [1] top-level scope
   @ REPL[17]:1

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions