Functions to handle business days calculations
Project description
python-bizdays
In several countries and markets, the accountability of the price of a financial instrument, mainly bonds and derivatives, involves the use of different rules to compute the way the days go by. In Brazil, several financial instruments pay interest according to the business days along their life cycle. So, having a way to compute the number of business days between 2 dates is fairly useful to price financial instruments. bizdays was created to make it easier.
bizdays computes business days between two dates based on the definition of nonworking days (usually holidays and weekends). It also computes other collateral effects like adjust dates for the next or previous business day, check whether a date is a business day, create sequences of business days, and much more.
Several financial libraries compute the holidays, giving no option to users set it by their own. Furtherly, the financial calendar is usually a small feature of a huge library, as quantlib, for example, and some users, including myself, don't want to put a hand in such a huge library only to use the financial calendar.
bizdays is a pure Python module without strong dependencies, what makes it appropriated for small projects.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file bizdays-1.0.15.tar.gz
.
File metadata
- Download URL: bizdays-1.0.15.tar.gz
- Upload date:
- Size: 13.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.7.1 CPython/3.11.5 Linux/5.15.153.1-microsoft-standard-WSL2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | fe486bbc8ea765b80f0da083ba0aaf72c9665c94972c71f67b95d478ab10ba18 |
|
MD5 | 83af5279dc9ad15b196cc5c2aaaaed7c |
|
BLAKE2b-256 | c83051bc0c0a13f69a86bf1f9d2d43410de3be7966b152871ce5f315d69d6aac |
File details
Details for the file bizdays-1.0.15-py3-none-any.whl
.
File metadata
- Download URL: bizdays-1.0.15-py3-none-any.whl
- Upload date:
- Size: 13.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.7.1 CPython/3.11.5 Linux/5.15.153.1-microsoft-standard-WSL2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5a6a6564c2977f7a1805c1690000dc3bb86be888e31311195b78d14b91c9836f |
|
MD5 | adbdf003381681020d7e702bad0a8f3d |
|
BLAKE2b-256 | 18db1e2f5498a961445149b4469cbdb4f204fef8482a57cba5d9b2e6ee109920 |