API reference
Client and configuration
Create an AvanzaClient and configure its transport and session.
Import AvanzaClient from avanza-ts. One instance owns its HTTP transport, active session, and domain clients.
import { AvanzaClient } from 'avanza-ts';
const client = new AvanzaClient();
const results = await client.market.search('volvo');Client
Prop
Type
Options
Pass an existing session or replace the transport when needed. The SDK uses the Node.js global fetch and https://www.avanza.se by default.
Prop
Type
See sessions for restoring and validating an authenticated client. All exported response types and error classes are listed in the complete reference.