Skip to content

Instantly share code, notes, and snippets.

@larssonandreas
Last active April 10, 2017 20:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save larssonandreas/0d544de8521cae18b3239d1a262a6de7 to your computer and use it in GitHub Desktop.
Save larssonandreas/0d544de8521cae18b3239d1a262a6de7 to your computer and use it in GitHub Desktop.
Avanza with require
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