dib3-utils


Namedib3-utils JSON
Version 0.1.1 PyPI version JSON
download
home_pageNone
SummaryBiblioteca com ferramentas úteis para cálculos com contratos de depósitos interbancários (DI) da B3.
upload_time2024-11-21 00:03:43
maintainerNone
docs_urlNone
authorrenanmoretto
requires_python<4.0,>=3.10
licenseNone
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # 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
```python
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
            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "dib3-utils",
    "maintainer": null,
    "docs_url": null,
    "requires_python": "<4.0,>=3.10",
    "maintainer_email": null,
    "keywords": null,
    "author": "renanmoretto",
    "author_email": "himynameisrenan@outlook.com",
    "download_url": "https://files.pythonhosted.org/packages/f5/39/eda1f4255b0aa1f952137f6716887e2a6cc7554ed8178494890678af99fc/dib3_utils-0.1.1.tar.gz",
    "platform": null,
    "description": "# dib3_utils\n\nBiblioteca com ferramentas \u00fateis para c\u00e1lculos com contratos de dep\u00f3sitos interbanc\u00e1rios (DI) da B3. Sem depend\u00eancias externas e simples API.\n\n\n# Instala\u00e7\u00e3o\n```\npip install dib3_utils\n```\n\n# Uso\n```python\nimport datetime\nimport dib3_utils\n```\n```\n>>> dib3_utils.vencimento('DI1F30')\ndatetime.date(2030, 1, 2)\n\n>>> dib3_utils.dias_uteis_vencimento('DI1F30') \n1424\n\n>>> dib3_utils.dias_corridos_vencimento('DI1F30') \n2079\n\n>>> dib3_utils.pu(ticker='DI1F30', taxa=0.11)   \n55448.42\n\n>>> dib3_utils.taxa(ticker='DI1F30', pu=55448.42) \n0.11\n\n>>> dib3_utils.dv01(ticker='DI1F30', taxa=0.11)   \n28.22",
    "bugtrack_url": null,
    "license": null,
    "summary": "Biblioteca com ferramentas \u00fateis para c\u00e1lculos com contratos de dep\u00f3sitos interbanc\u00e1rios (DI) da B3.",
    "version": "0.1.1",
    "project_urls": null,
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "9b1d0bb7aedd07b72c2d6c5ee6c33f5df5d879f2c48af9aae185fa91b074a102",
                "md5": "70870f55dd6ed80a113d3393ade30440",
                "sha256": "fa975cd6f7575939777a8de1a961765367d65e990f3091c58a51b37ee2ba1e33"
            },
            "downloads": -1,
            "filename": "dib3_utils-0.1.1-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "70870f55dd6ed80a113d3393ade30440",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": "<4.0,>=3.10",
            "size": 2231,
            "upload_time": "2024-11-21T00:03:41",
            "upload_time_iso_8601": "2024-11-21T00:03:41.760159Z",
            "url": "https://files.pythonhosted.org/packages/9b/1d/0bb7aedd07b72c2d6c5ee6c33f5df5d879f2c48af9aae185fa91b074a102/dib3_utils-0.1.1-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "f539eda1f4255b0aa1f952137f6716887e2a6cc7554ed8178494890678af99fc",
                "md5": "09b22319fa4b113bb0e61e7b68d12c59",
                "sha256": "11543be4a70e453855a858cbc58ca53ea1ac217681274d4393012a06e6ff6059"
            },
            "downloads": -1,
            "filename": "dib3_utils-0.1.1.tar.gz",
            "has_sig": false,
            "md5_digest": "09b22319fa4b113bb0e61e7b68d12c59",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": "<4.0,>=3.10",
            "size": 1984,
            "upload_time": "2024-11-21T00:03:43",
            "upload_time_iso_8601": "2024-11-21T00:03:43.619278Z",
            "url": "https://files.pythonhosted.org/packages/f5/39/eda1f4255b0aa1f952137f6716887e2a6cc7554ed8178494890678af99fc/dib3_utils-0.1.1.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-11-21 00:03:43",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "lcname": "dib3-utils"
}
        
Elapsed time: 1.11876s