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 details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

Details for the file depyro-1.0.0.tar.gz.

File metadata

  • Download URL: depyro-1.0.0.tar.gz
  • Upload date:
  • Size: 4.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.8

File hashes

Hashes for depyro-1.0.0.tar.gz
Algorithm Hash digest
SHA256 8508966a947353351d017ecccdd2c5fdea93509c453a995d9087acef3440b84a
MD5 a42251b67d0867c18e86c3389e057021
BLAKE2b-256 c810ff0863aa800f5adb0264cc4a10ca9ab7ade744ce470d7dec807172191906

See more details on using hashes here.

File details

Details for the file depyro-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: depyro-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 4.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.8

File hashes

Hashes for depyro-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 8470c2949a7f5461a27814648b4b94b1cd4927d4c498948c306158cc43e471d3
MD5 828128be603770141a28ec64020a4478
BLAKE2b-256 0e2c1ec82c0f38b566ce7d5af85acfa244daa3461c959fc12fe5220a6c92f65e

See more details on using hashes here.

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