Skip to content

Lanrutcon/DegiroAPI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 

Repository files navigation

DegiroAPI

Unofficial Degiro API for Python


An unofficial API for Degiro made in Python. It can be used to:

  • Check your portfolio, cash funds and orders
  • Get info from products (e.g. Stocks and ETFs)
  • Set new orders (Buy/Sell)
  • Delete current orders

Based on Pladaria's work.


Install

pip:

pip install git+https://github.com/Lanrutcon/DegiroAPI.git

Without pip:

git clone https://github.com/Lanrutcon/DegiroAPI.git
cd DegiroAPI
python setup.py install

Examples

Login:

from DegiroAPI import *
account = DegiroAPI('username', 'password')
account.login()

Setting a limit order to buy 5 shares of 'MSFT', 150$ a share:

buyOrder = {
    'buySell': 0, #buy = 0, sell = 1
    'orderType': 0, #limit order
    'productId': account.search_product('MSFT')['id'], #getting Degiro's id for MSFT
    'size': 5, #number of shares to buy/sell
    'timeType': 1, #day = 1, permanent = 3
    'price': 150 #price per share
}
api.set_order(buyOrder)

About

Unofficial Degiro API for Python

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages