Biblioteca com ferramentas úteis para cálculos com contratos de depósitos interbancários (DI) da B3.
Project description
dib3_utils
Biblioteca com ferramentas úteis para cálculos com contratos de depósitos interbancários (DI) da B3. Sem dependências externas e simples API.
Instalação
pip install dib3_utils
Uso
import datetime
import dib3_utils
>>> dib3_utils.vencimento('DI1F30')
datetime.date(2030, 1, 2)
>>> dib3_utils.dias_uteis_vencimento('DI1F30')
1424
>>> dib3_utils.dias_corridos_vencimento('DI1F30')
2079
>>> dib3_utils.pu(ticker='DI1F30', taxa=0.11)
55448.42
>>> dib3_utils.taxa(ticker='DI1F30', pu=55448.42)
0.11
>>> dib3_utils.dv01(ticker='DI1F30', taxa=0.11)
28.22
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
dib3_utils-0.1.1.tar.gz
(2.0 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file dib3_utils-0.1.1.tar.gz.
File metadata
- Download URL: dib3_utils-0.1.1.tar.gz
- Upload date:
- Size: 2.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.3 CPython/3.12.7 Windows/10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
11543be4a70e453855a858cbc58ca53ea1ac217681274d4393012a06e6ff6059
|
|
| MD5 |
09b22319fa4b113bb0e61e7b68d12c59
|
|
| BLAKE2b-256 |
f539eda1f4255b0aa1f952137f6716887e2a6cc7554ed8178494890678af99fc
|
File details
Details for the file dib3_utils-0.1.1-py3-none-any.whl.
File metadata
- Download URL: dib3_utils-0.1.1-py3-none-any.whl
- Upload date:
- Size: 2.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.3 CPython/3.12.7 Windows/10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fa975cd6f7575939777a8de1a961765367d65e990f3091c58a51b37ee2ba1e33
|
|
| MD5 |
70870f55dd6ed80a113d3393ade30440
|
|
| BLAKE2b-256 |
9b1d0bb7aedd07b72c2d6c5ee6c33f5df5d879f2c48af9aae185fa91b074a102
|