depyro-1.0.0
توضیحات
A wrapper for the De Giro API to fetch portfolio data
| ویژگی | مقدار |
|---|---|
| سیستم عامل | OS Independent |
| نام فایل | depyro-1.0.0 |
| نام | depyro |
| نسخه کتابخانه | 1.0.0 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Daniel Steman |
| ایمیل نویسنده | daniel-steman@live.nl |
| آدرس صفحه اصلی | https://github.com/danielsteman/depyro |
| آدرس اینترنتی | https://pypi.org/project/depyro/ |
| مجوز | - |
# depyro :money_with_wings:
A wrapper for De Giro API, specifically for portfolio analysis. If you have ETFs in your portfolio, use in conjunction with `pyholdings` to discover ETF compositions.
### Get started
1. Set `username` and `password` as environment variables or in an `.env` file in the root of your project.
2. Instantiate the client and fetch portfolio information.
```
from depyro.core import Depyro
client = Depyro(auth_type="2fa")
>>> Enter authenticator token...
client.get_portfolio_info()
>>>
[
{
id: int,
positionType: str,
size: int,
price: float,
value: float,
plBase: float,
breakEvenPrice: float,
name: str,
isin: str,
symbol: str,
productType: str
},
]
```
نیازمندی
| مقدار | نام |
|---|---|
| ==0.19.2 | python-dotenv |
| ==2.26.0 | requests |
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.6 | Python |
نحوه نصب
نصب پکیج whl depyro-1.0.0:
pip install depyro-1.0.0.whl
نصب پکیج tar.gz depyro-1.0.0:
pip install depyro-1.0.0.tar.gz