Last active
April 10, 2017 20:10
-
-
Save larssonandreas/0d544de8521cae18b3239d1a262a6de7 to your computer and use it in GitHub Desktop.
Avanza with require
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var Avanza = require("avanza") | |
const avanza = new Avanza() | |
avanza.authenticate({ | |
username: 'draghimario', | |
password: 'cashisking1337' | |
}).then(() => { | |
avanza.getPositions().then(positions => { | |
console.log(positions); | |
}); | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment