Skip to content
Avanza API
TypeScript
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.vscode
src Fix process Oct 6, 2019
.gitignore
README.md
package-lock.json
package.json
tsconfig.json

README.md

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"
});
You can’t perform that action at this time.