interest_days 0.2.1 → 0.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +17 -0
- data/Gemfile +1 -4
- data/Gemfile.lock +1 -1
- data/README.md +5 -1
- data/lib/interest_days/calculation/isda_act_364.rb +1 -1
- data/lib/interest_days/calculator.rb +1 -0
- data/lib/interest_days/version.rb +1 -1
- data/lib/interest_days.rb +1 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a4ccc6e4b904bb4a1b308b1bc6020f44a54b4b427ce176c758fe691d848bc806
|
4
|
+
data.tar.gz: 5153de34cd150fd8867ab9f8842334582e15c1f9c22ae63f722701148aa88eb2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7ee66d5bc9262d3a8059991c4b0e0374958fb7cc411b62f87453d59c1d1d5405f23f82cbb7edb7e2bc3ca47f4aee65c61cd9e758d743604f00c9f0f8c60b11ab
|
7
|
+
data.tar.gz: dd5b07dbeebe22e3800ffc71ddfc882309ee9ce5c0073c1047825a3b5ef496c56fe5e40d98a73ee7a5f12584935519904372e63d91c13a070cac66c997cb8975
|
data/CHANGELOG.md
CHANGED
@@ -1,4 +1,21 @@
|
|
1
1
|
|
2
|
+
## [0.3.0] / 2022-02-03
|
3
|
+
==================
|
4
|
+
|
5
|
+
* Bump version to 0.3.0
|
6
|
+
* Finish including isda act 364 (#11)
|
7
|
+
|
8
|
+
## [0.2.1] / 2022-02-03
|
9
|
+
==================
|
10
|
+
|
11
|
+
* Bump version to 0.2.1
|
12
|
+
* Change the gemspec metadata.
|
13
|
+
* Setup siplecov.
|
14
|
+
* Add spec for act 364 strategy.
|
15
|
+
* Add act 364 calculation strategy.
|
16
|
+
* Tests isda 30 e 360 (#5)
|
17
|
+
* Add codecov integration.
|
18
|
+
|
2
19
|
## [0.2.0] / 2021-10-08
|
3
20
|
==================
|
4
21
|
|
data/Gemfile
CHANGED
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
@@ -1,7 +1,8 @@
|
|
1
1
|
# InterestDays
|
2
2
|
|
3
3
|
This gem provide interest day factor calculation based on ISDA conventions e.g. Isda Act 360.
|
4
|
-
Since version 0.2 interest_day gem support 30/360 US EOM and 30/360 Bond Basis conventions.
|
4
|
+
- Since version 0.2 interest_day gem support 30/360 US EOM and 30/360 Bond Basis conventions.
|
5
|
+
- Since version 0.3 the gem also supports Isda Act 364
|
5
6
|
|
6
7
|
## Installation
|
7
8
|
|
@@ -31,11 +32,14 @@ calculator.interest_day_count_factor
|
|
31
32
|
|
32
33
|
currently there a five supported conventions:
|
33
34
|
- :isda_act_360
|
35
|
+
- :isda_act_364
|
34
36
|
- :isda_act_365
|
35
37
|
- :isda_30_e_360
|
36
38
|
- :us_eom_30_360
|
37
39
|
- :bond_basis_30_360
|
38
40
|
|
41
|
+
As often, [Wikipedia](https://en.wikipedia.org/wiki/Day_count_convention) is the best resource, so check it out to get more insights into these conventions.
|
42
|
+
|
39
43
|
## Development
|
40
44
|
|
41
45
|
After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
|
@@ -22,6 +22,7 @@ module InterestDays
|
|
22
22
|
def strategies
|
23
23
|
@strategies ||= {
|
24
24
|
isda_act_360: InterestDays::Calculation::IsdaAct360,
|
25
|
+
isda_act_364: InterestDays::Calculation::IsdaAct364,
|
25
26
|
isda_act_365: InterestDays::Calculation::IsdaAct365,
|
26
27
|
isda_30_e_360: InterestDays::Calculation::Isda30e360,
|
27
28
|
bond_basis_30_360: InterestDays::Calculation::Isda30e360,
|
data/lib/interest_days.rb
CHANGED
@@ -6,6 +6,7 @@ require "interest_days/calculation/base"
|
|
6
6
|
require "interest_days/calculation/thirty_threesixty_base"
|
7
7
|
require "interest_days/calculation/us_eom_30_360"
|
8
8
|
require "interest_days/calculation/isda_act_360"
|
9
|
+
require "interest_days/calculation/isda_act_364"
|
9
10
|
require "interest_days/calculation/isda_act_365"
|
10
11
|
require "interest_days/calculation/isda_30_e_360"
|
11
12
|
|