Skip to main content

Unofficial Degiro API in python

Project description

degiropy

Unofficial Degiro API in Python

Getting Started

Installing

pipenv --python 3
pipenv install requests
pipenv install degiropy

Usage

from degiropy import Degiropy
from degiropy.types import Actions, OrderTypes, TimeTypes, ProductTypes, Sort

degiro = Degiropy(username, password, verbose=True)
# Initialization
degiro.login()
degiro.get_config()
degiro.init_url_config()
degiro.init_data()

# Usage examples
cf = degiro.get_cash_funds()
print(cf['EUR']['value']) # prints EUR amount

degiro.get_portfolio_summary() # returns object with `equity` and `cash` properties

degiro.get_portfolio(False) # Returns portfolio skipping historical data

order = {} # Fill order data
degiro.place_order(order) # Places an order 

Development

python setup.py build
python setup.py install

License

BSD 2

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

degiropy-0.1.2.tar.gz (4.7 kB view hashes)

Uploaded Source

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