Skip to content

Commit

Permalink
RLS: v1.0.0 !
Browse files Browse the repository at this point in the history
  • Loading branch information
attack68 committed Feb 1, 2024
1 parent fdb8589 commit af8b137
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 16 deletions.
6 changes: 3 additions & 3 deletions docs/source/_static/badges.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
{
"coverage": "99%",
"licence": "CC-BY-NC-ND-4.0",
"pypi": "v0.7.0",
"conda": "v0.7.0",
"pypi": "v1.0.0",
"conda": "v1.0.0",
"python": "3.9 | 3.10 | 3.11",
"style": "black",
"status": "beta"
"status": "stable"
}
7 changes: 6 additions & 1 deletion docs/source/_static/switcher.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,13 @@
"url": "https://rateslib.readthedocs.io/en/0.6.x/"
},
{
"name": "stable",
"name": "0.7.x",
"version": "0.7.x",
"url": "https://rateslib.readthedocs.io/en/0.7.x/"
},
{
"name": "stable",
"version": "1.0.0",
"url": "https://rateslib.readthedocs.io/en/stable/"
}
]
10 changes: 1 addition & 9 deletions docs/source/i_whatsnew.rst
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,6 @@ email contact through **[email protected]**.
- Description
- Consideration
- Timeframe
* - Coding Interest Rates
- Officially document this library's algorithms and release the book.
- Planned
- End 2023
* - Version 1.0
- Release the official first non-beta version of this library.
- Planned
- End 2023
* - Vanilla FX options and volatility products
- Adding option instruments and benchmark trades such as risk-reversals.
- Highly likely (v2.0?)
Expand All @@ -53,7 +45,7 @@ email contact through **[email protected]**.
- no ETA


1.0.0 (Not released)
1.0.0 (1st Feb 2024)
**********************

.. list-table::
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ build-backend = "setuptools.build_meta"

[project]
name = "rateslib"
version = "0.7.0"
version = "1.0.0"
description = "A fixed income library for trading interest rates"
readme = "README.md"
authors = [{ name = "J H M Darbyshire"}]
Expand Down
7 changes: 5 additions & 2 deletions rateslib/periods.py
Original file line number Diff line number Diff line change
Expand Up @@ -1465,10 +1465,13 @@ def _rfr_fixings_array(
rate = self._isda_compounded_rate_with_spread(rates_dual, dcf_vals)
notional_exposure = Series(
[rate.gradient(f"fixing_{i}")[0] for i in range(len(dcf_dates.index) - 1)]
)
).astype(float)
v = disc_curve[self.payment]
mask = ~fixed.to_numpy() # exclude fixings that are already fixed
notional_exposure[mask] *= (-self.notional * (self.dcf / dcf_of_r[mask]) * v / v_with_r[mask])

notional_exposure[mask] *= -self.notional * (self.dcf / dcf_of_r[mask]) * float(v)
notional_exposure[mask] /= v_with_r[mask].astype(float)
# notional_exposure[mask] *= (-self.notional * (self.dcf / dcf_of_r[mask]) * v / v_with_r[mask])
# notional_exposure[fixed.drop_index(drop=True)] = 0.0
notional_exposure[fixed.to_numpy()] = 0.0
extra_cols = {
Expand Down

0 comments on commit af8b137

Please sign in to comment.