Command reference
avanza orders
Read orders, stop-losses, and trading status
avanza orders active-idsavanza orders bulk-orderavanza orders bulk-ordersavanza orders countavanza orders dealsavanza orders exchange-ratesavanza orders listavanza orders market-statusavanza orders orderbookavanza orders stop-lossavanza orders stop-losses
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 fileavanza 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 fileavanza 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 BUYavanza 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 fileavanza 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 fileavanza 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 fileavanza 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 fileavanza 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 fileavanza 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 fileavanza 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 IDavanza 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