DeGiro
A simple Ruby client for DeGiro. Inspired by this javascript client.
DeGiro's API is likely to change in the future and I make no guarantees that I'll be making changes to keep the client up-to-date. Use this software at your own risk!
How to use
Install the gem with gem install degiro
. Supported commands are shown below.
require 'degiro'
client = DeGiro::Client.new(login: 'my_login', password: 'my_password')
client.get_orders
client.get_portfolio
client.get_cash_funds
client.get_transactions
id = client.find_products(search_text: 'GOOG').first[:id]
client.find_product_by_id(id: id)
client.create_buy_order(product_id: id, size: 10, price: 1000)
client.create_sell_order(product_id: id, size: 10, price: 1000)
How to build this gem
gem build degiro_client.gemspec && gem install degiro_client-[version].gem
How to publish this gem
gem push degiro_client-[version].gem