Skip to main content

A wrapper for the De Giro API to fetch portfolio data

Project description

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
  },
]

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

depyro-1.0.0.tar.gz (4.6 kB view hashes)

Uploaded Source

Built Distribution

depyro-1.0.0-py3-none-any.whl (4.9 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page