option_lab 0.1.0 → 0.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,5 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module OptionLab
4
- VERSION = "0.1.0"
4
+
5
+ VERSION = '0.1.2'
6
+
5
7
  end
data/lib/option_lab.rb CHANGED
@@ -1,6 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  require_relative 'option_lab/version'
4
+ require_relative 'option_lab/configuration'
4
5
  require_relative 'option_lab/models'
5
6
  require_relative 'option_lab/black_scholes'
6
7
  require_relative 'option_lab/binomial_tree'
@@ -12,12 +13,10 @@ require_relative 'option_lab/plotting'
12
13
 
13
14
  # Main module for OptionLab
14
15
  module OptionLab
15
-
16
16
  class Error < StandardError; end
17
17
 
18
18
  # Public API methods
19
19
  class << self
20
-
21
20
  # Run a strategy calculation
22
21
  # @param inputs [Hash, Models::Inputs] Input data for the strategy calculation
23
22
  # @return [Models::Outputs] Output data from the strategy calculation
@@ -128,7 +127,5 @@ module OptionLab
128
127
  def get_american_greeks(option_type, s0, x, r, volatility, years_to_maturity, dividend_yield = 0.0)
129
128
  BjerksundStensland.get_greeks(option_type, s0, x, r, volatility, years_to_maturity, dividend_yield)
130
129
  end
131
-
132
130
  end
133
-
134
- end
131
+ end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: option_lab
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jack Killilea
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2025-04-27 00:00:00.000000000 Z
11
+ date: 2025-04-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: distribution
@@ -171,6 +171,7 @@ files:
171
171
  - lib/option_lab/binomial_tree.rb
172
172
  - lib/option_lab/bjerksund_stensland.rb
173
173
  - lib/option_lab/black_scholes.rb
174
+ - lib/option_lab/configuration.rb
174
175
  - lib/option_lab/engine.rb
175
176
  - lib/option_lab/models.rb
176
177
  - lib/option_lab/plotting.rb