Skip to content

Conversation

@chuckremes
Copy link

Good library. Better foundation than the one I wrote. :)

I find the getter/setter way of initializing objects a little bit grating so I added a DSL block style initializer. Also made some aliases for the calc methods so it read a little more like english.

If you like these changes, I may add a utility to allow for generating 30/60/90 day implied volatility calculations. See here for why: http://quant.stackexchange.com/questions/27714/how-to-compute-30-60-90-day-implied-volatility

Not sure if that utility belongs in this gem... it's fairly compact and focused. Maybe just provide some additional functions for computing forward prices.

Many Ruby objects offer the ability to initialize an instance object
using a block. It's a very natural Ruby idiom. Added appropriate
methods to support this idiom and removed the attr_accessors.

Aliased the new methods to the old methods so the original API
would continue to work. Would like to deprecate this old API.

Aliased shorter names for the 'calc' methods. The original method
naming is a bit clunky so this cleans it up.
Removed section on Testing since there are no tests.
Rubygems now complains when no license exists, so I just chose
the simple 0-clause BSD license. Really just says "use as-is at
your own risk"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant