Command reference
avanza collections
Read watchlists, alerts, and instrument notes
avanza collections alertsavanza collections note-orderbooksavanza collections notesavanza collections triggered-alertsavanza collections watchlist-dataavanza collections watchlist-newsavanza collections watchlists
avanza collections alerts
List price, percent, and news alerts
USAGE
$ avanza collections alerts [--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 collections note-orderbooks
List instruments that have notes
USAGE
$ avanza collections note-orderbooks [--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 collections notes
List instrument notes
USAGE
$ avanza collections notes [--fields <value> --json] [--output <value> [--fixture | ]] [--orderbook-id <value>]
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> Only notes for this orderbook
--output=<value> Write the raw fixture to a new temporary fileavanza collections triggered-alerts
List triggered alerts
USAGE
$ avanza collections triggered-alerts [--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 collections watchlist-data
Read quotes and selected data points for a watchlist
USAGE
$ avanza collections watchlist-data --watchlist-id <value> [--fields <value> --json] [--output <value> [--fixture | ]]
[--orderbook-ids <value>] [--data-points ABSOLUTE_PERFORMANCE_SINCE_ADDED|BETA|BUY_OR_SELL|BUY_PRICE|CATEGORY|CHANGE
|CHANGE_PERCENTAGE|COLLATERAL_FACTOR|CURRENCY|DATE_WHEN_ADDED|DIRECTION|DIVIDENDS_AMOUNT_12_MONTHS|DIVIDENDS_PER_YEA
R|EARNINGS_PER_SHARE|END_DATE|ETF_ORDINARY_DIRECT_YIELD|ETF_RISK|EV_EBIT_RATIO|FIVE_YEARS_PERFORMANCE|FLAG_CODE|FUND
_RATING|FUND_RISK|FUND_TOTAL_MARKET_VALUE|HIGHEST_PRICE|INSTRUMENT_TYPE|LAST_PRICE|LEVERAGE|LOWEST_PRICE|MANAGEMENT_
FEE|MARGIN_REQUIREMENT|MARKET_CAP|MAX_PERFORMANCE|NAME|NAV|NET_DEBT_TO_EBITDA_RATIO|NEXT_DIVIDEND_AMOUNT|NEXT_DIVIDE
ND_DATE|NEXT_REPORT_DATE|NUMBER_OF_OWNERS|ONE_MONTH_PERFORMANCE|ONE_WEEK_PERFORMANCE|ONE_YEAR_PERFORMANCE|OPTION_TYP
E|ORDINARY_DIRECT_YIELD|PRICE_BOOK_RATIO|PRICE_EARNINGS_RATIO|PRICE_LAST_UPDATED_DATE|PRICE_LAST_UPDATED_TIME|PRICE_
SALES_RATIO|PRICE_WHEN_ADDED|PRODUCT_FEE|RELATIVE_PERFORMANCE_SINCE_ADDED|RETURN_ON_EQUITY|SELL_PRICE|SHARPE_RATIO|S
HORT_SELLING_ALLOWED|SIX_MONTHS_PERFORMANCE|SPREAD|STANDARD_DEVIATION_PERCENT|STRIKE_PRICE|SUPER_INTEREST_APPROVED|T
EN_YEARS_PERFORMANCE|THIS_YEAR_PERFORMANCE|THREE_MONTHS_PERFORMANCE|THREE_YEARS_PERFORMANCE|TOTAL_FEE|UNDERLYING_INS
TRUMENT_NAME|VALUE_TRADED|VOLATILITY|VOLUME_TRADED|WARRANT_LEVERAGE|WARRANT_TYPE...]
FLAGS
--data-points=<option>...
[default: LAST_PRICE] Data points to include
<options: ABSOLUTE_PERFORMANCE_SINCE_ADDED|BETA|BUY_OR_SELL|BUY_PRICE|CATEGORY|CHANGE|CHANGE_PERCENTAGE|COLLATERAL_F
ACTOR|CURRENCY|DATE_WHEN_ADDED|DIRECTION|DIVIDENDS_AMOUNT_12_MONTHS|DIVIDENDS_PER_YEAR|EARNINGS_PER_SHARE|END_DATE|E
TF_ORDINARY_DIRECT_YIELD|ETF_RISK|EV_EBIT_RATIO|FIVE_YEARS_PERFORMANCE|FLAG_CODE|FUND_RATING|FUND_RISK|FUND_TOTAL_MA
RKET_VALUE|HIGHEST_PRICE|INSTRUMENT_TYPE|LAST_PRICE|LEVERAGE|LOWEST_PRICE|MANAGEMENT_FEE|MARGIN_REQUIREMENT|MARKET_C
AP|MAX_PERFORMANCE|NAME|NAV|NET_DEBT_TO_EBITDA_RATIO|NEXT_DIVIDEND_AMOUNT|NEXT_DIVIDEND_DATE|NEXT_REPORT_DATE|NUMBER
_OF_OWNERS|ONE_MONTH_PERFORMANCE|ONE_WEEK_PERFORMANCE|ONE_YEAR_PERFORMANCE|OPTION_TYPE|ORDINARY_DIRECT_YIELD|PRICE_B
OOK_RATIO|PRICE_EARNINGS_RATIO|PRICE_LAST_UPDATED_DATE|PRICE_LAST_UPDATED_TIME|PRICE_SALES_RATIO|PRICE_WHEN_ADDED|PR
ODUCT_FEE|RELATIVE_PERFORMANCE_SINCE_ADDED|RETURN_ON_EQUITY|SELL_PRICE|SHARPE_RATIO|SHORT_SELLING_ALLOWED|SIX_MONTHS
_PERFORMANCE|SPREAD|STANDARD_DEVIATION_PERCENT|STRIKE_PRICE|SUPER_INTEREST_APPROVED|TEN_YEARS_PERFORMANCE|THIS_YEAR_
PERFORMANCE|THREE_MONTHS_PERFORMANCE|THREE_YEARS_PERFORMANCE|TOTAL_FEE|UNDERLYING_INSTRUMENT_NAME|VALUE_TRADED|VOLAT
ILITY|VOLUME_TRADED|WARRANT_LEVERAGE|WARRANT_TYPE>
--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>
Comma-separated orderbook IDs; defaults to the whole watchlist
--output=<value>
Write the raw fixture to a new temporary file
--watchlist-id=<value>
(required) Watchlist IDavanza collections watchlist-news
List news for instruments in a watchlist
USAGE
$ avanza collections watchlist-news --watchlist-id <value> [--fields <value> --json] [--output <value> [--fixture | ]]
[--orderbook-ids <value>] [--categories <value>]
FLAGS
--categories=<value> Comma-separated news categories
--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> Comma-separated orderbook IDs; defaults to the whole watchlist
--output=<value> Write the raw fixture to a new temporary file
--watchlist-id=<value> (required) Watchlist IDavanza collections watchlists
List watchlists
USAGE
$ avanza collections watchlists [--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