avanza-api
TypeScript icon, indicating that this package has built-in type declarations

2.1.4 • Public • Published

Avanza API

Install

npm i avanza-api

Usage

import Avanza from "avanza-api";
const avanza = new Avanza();
 
await avanza.authenticate({
  username: "",
  password: "",
  totpSecret: ""
});
 
if (avanza.isAuthenticated) {
  const accounts = await avanza.getAccounts();
  console.log(accounts);
}

Login with BankId

avanza.authenticate({
  personnummer: "123456789012"
});

If multiple username are connected to your BankId, you will need to choose which to login by adding username key.

avanza.authenticate({
  username: "",
  personnummer: "123456789012"
});

Readme

Keywords

Package Sidebar

Install

npm i avanza-api

Weekly Downloads

4

Version

2.1.4

License

ISC

Unpacked Size

43.5 kB

Total Files

20

Last publish

Collaborators

  • codler