Avanza Tools
Command reference

avanza orders

Read orders, stop-losses, and trading status

avanza orders active-ids

List IDs of active orders

USAGE
  $ avanza orders active-ids [--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

avanza orders bulk-order

Read a saved bulk order

USAGE
  $ avanza orders bulk-order --bulk-order-id <value> [--fields <value> --json] [--output <value> [--fixture | ]]

FLAGS
  --bulk-order-id=<value>  (required) Bulk order 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 orders bulk-orders

List saved bulk orders

USAGE
  $ avanza orders bulk-orders [--fields <value> --json] [--output <value> [--fixture | ]] [--account-id <value>] [--side
    <value>]

FLAGS
  --account-id=<value>  Account ID; defaults to all
  --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
  --side=<value>        Order side, for example BUY

avanza orders count

Count active orders

USAGE
  $ avanza orders count [--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

avanza orders deals

List today's deals

USAGE
  $ avanza orders deals [--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

avanza orders exchange-rates

List currency exchange rates

USAGE
  $ avanza orders exchange-rates [--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

avanza orders list

List open, fund, and cancelled orders

USAGE
  $ avanza orders list [--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

avanza orders market-status

Read whether a market is open

USAGE
  $ avanza orders market-status [--fields <value> --json] [--output <value> [--fixture | ]] [--country <value>] [--date
    <value>]

FLAGS
  --country=<value>  [default: SE] Country code, for example SE or US
  --date=<value>     Date (yyyy-MM-dd); defaults to today
  --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 orders orderbook

Read trading rules for an orderbook

USAGE
  $ avanza orders orderbook --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 orders stop-loss

Read a stop-loss order

USAGE
  $ avanza orders stop-loss --account-id <value> --stop-loss-id <value> [--fields <value> --json] [--output <value>
    [--fixture | ]]

FLAGS
  --account-id=<value>    (required) 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
  --stop-loss-id=<value>  (required) Stop-loss ID

avanza orders stop-losses

List active stop-loss orders

USAGE
  $ avanza orders stop-losses [--fields <value> --json] [--output <value> [--fixture | ]] [--account-id <value>]
    [--orderbook-id <value>]

FLAGS
  --account-id=<value>    Account ID; defaults to all
  --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>  Orderbook ID
  --output=<value>        Write the raw fixture to a new temporary file

On this page