-
Notifications
You must be signed in to change notification settings - Fork 59
Get Started
Filip Hallqvist edited this page Jul 17, 2017
·
3 revisions
NOTE: This Wiki is only for versions < 1.0.0. For 1.0.0 docs, refer to API.md.
The first step into the world of gambling professional trading, using the private Avanza API, involves authenticating yourself.
import Avanza from 'avanza'
// Create a new client instance
const avanza = new Avanza()
// Authenticate the client
avanza.authenticate({
username: 'draghimario',
password: 'cashisking1337'
}).then(() => {
// This is where you do the magic
})