Avanza Tools
Command reference

avanza positions

Read positions and statistics

avanza positions countries

Read country allocations for positions

USAGE
  $ avanza positions countries [--fields <value> --json] [--output <value> [--fixture | ]] [--account-id <value>]

FLAGS
  --account-id=<value>  Optional account URL parameter ID
  --fields=<value>      Select comma-separated JSON fields (dotted paths for nested fields)
  --fixture             Print the HTTP request and response as a fixture
  --json                Print the command response as JSON
  --output=<value>      Write the raw fixture to a new temporary file

avanza positions list

Read positions

USAGE
  $ avanza positions list [--fields <value> --json] [--output <value> [--fixture | ]] [--account-id <value>]

FLAGS
  --account-id=<value>  Optional account URL parameter ID
  --fields=<value>      Select comma-separated JSON fields (dotted paths for nested fields)
  --fixture             Print the HTTP request and response as a fixture
  --json                Print the command response as JSON
  --output=<value>      Write the raw fixture to a new temporary file

avanza positions orderbooks

Read orderbook details for positions

USAGE
  $ avanza positions orderbooks --orderbook-ids <value>... [--fields <value> --json] [--output <value> [--fixture | ]]

FLAGS
  --fields=<value>            Select comma-separated JSON fields (dotted paths for nested fields)
  --fixture                   Print the HTTP request and response as a fixture
  --json                      Print the command response as JSON
  --orderbook-ids=<value>...  (required) Comma-separated orderbook IDs
  --output=<value>            Write the raw fixture to a new temporary file

Read popular position statistics for an orderbook

USAGE
  $ avanza positions popular-statistics --orderbook-id <value> [--fields <value> --json] [--output <value> [--fixture |
  ]]

FLAGS
  --fields=<value>        Select comma-separated JSON fields (dotted paths for nested fields)
  --fixture               Print the HTTP request and response as a fixture
  --json                  Print the command response as JSON
  --orderbook-id=<value>  (required) Orderbook ID
  --output=<value>        Write the raw fixture to a new temporary file

avanza positions statistics

Read position statistics for an orderbook

USAGE
  $ avanza positions statistics --orderbook-id <value> [--fields <value> --json] [--output <value> [--fixture | ]]

FLAGS
  --fields=<value>        Select comma-separated JSON fields (dotted paths for nested fields)
  --fixture               Print the HTTP request and response as a fixture
  --json                  Print the command response as JSON
  --orderbook-id=<value>  (required) Orderbook ID
  --output=<value>        Write the raw fixture to a new temporary file

avanza positions tools

Read active position tools

USAGE
  $ avanza positions tools [--fields <value> --json] [--output <value> [--fixture | ]]

FLAGS
  --fields=<value>  Select comma-separated JSON fields (dotted paths for nested fields)
  --fixture         Print the HTTP request and response as a fixture
  --json            Print the command response as JSON
  --output=<value>  Write the raw fixture to a new temporary file

On this page