A MagicMirror² (https://magicmirror.builders) module to display your data from the DeGiro broker. This module uses an external unofficial API (https://github.com/pladaria/degiro). We do not store any personal data.
- Navigate into your MagicMirror's
~MagicMirrorfolder - Install the DeGiro API with
npm install degiro --save - Navigate into your MagicMirror's
~MagicMirror/modulesfolder - Execute
git clone https://github.com/Prog-Party/MMM-DeGiro.git - A new folder
MMM-DeGirowill appear, navigate into it bycd MMM-DeGiro - Install with
npm install
Add this to your modules array in the configuration file config/config.js
{
module: "MMM-DeGiro",
config: {
username: "<YOUR_DEGIRO_USERNAME>",
password: "<YOUR_DEGIRO_PASSWORD>",
showPortfolio: true,
portfolioTemplate: "<YOUR_TEMPLATE>"
}
}
portfolioTemplate is optional, if no template is added the following default template is used.
portfolioTemplate is a string field where HTML can be added.
"<table>"
+ "<tr>"
+ "<th>Naam</th><th>Aantal</th><th>Waarde</th><th>Totaal</th><th>Dagresultaat</th>"
+ "</tr>"
+ "{{#portfolio}}"
+ "<tr data-total='{{total}}'>"
+ "<td>{{name}}</td>"
+ "<td>{{size}}</td>"
+ "<td>{{currency}} {{price}}</td>"
+ "<td>{{currency}} {{total}}</td>"
+ "<td class='{{#dayResultPositive}}positive{{/dayResultPositive}}{{#dayResultNegative}}negative{{/dayResultNegative}}'>{{currency}} {{dayResult}}</td>"
+ "</tr>"
+ "{{/portfolio}}"
+ "</table>"