Average¶
Usage¶
$ warmac average [options] item
Important
For item names with multiple words, please use one of the following options:
Enclose the item’s name within quotation marks. Example:
"condition overload"Replace spaces with underscore characters. Example:
condition_overload
- item¶
The item in which to calculate the price statistic for.
Options¶
Tip
Options that take an argument can be in the form of --foo bar or
--foo=bar.
- -s, --stat <stat>¶
Specifies the type of statistical average to calculate for the item. It can be one of median, mean, mode, or geometric. By default, the calculated statistic is the item’s median price.
- -p, --platform <platform>¶
Specifies which platform to fetch the item’s orders for. It can be one of pc, ps4, xbox, or switch. Cross-play orders are enabled by default. To restrict orders to the specified platform only, use the –same-platform option. By default, the platform that the orders are fetched for is PC.
- -S, --same-platform¶
Specifies that orders from only the platform given by
--platformwill be collected, instead of collecting cross-platform orders. If passed without--platform, this option will be ignored, and cross-platform orders will be collected.
- -t, --timerange <days>¶
Specifies the number of days to consider for calculating the average. The value passed indicates how far back to start the statistic calculation. The value given must be within the range of 1 to 60. By default, only orders up to 5 days old are taken into account.
- -m, --maxrank¶
Calculates the price statistic of the mod/arcane at its maximum rank instead of when it is unranked. This option does nothing if it is used with an item that is not a mod. This option cannot be used together with the
--radiantoption.
- -r, --radiant¶
Calculates the price statistic of the relic at a radiant refinement instead of at an intact refinement. This option does nothing if it used with an item that is not a relic. This option cannot be used together with the
--maxrankoption.
- -b, --buyers¶
Calculates the price statistic of the item based on orders from buyers instead of orders from sellers.
- -n, --ndigits <ndigits>¶
Specifies the number of decimal places to round the statistic to. Must be in range [0, 10), that is, inclusive of 0 but exclusive of 10. By default, the number of decimals that the statistic is rounded to is 1.
- -d, --detailed-report¶
Prints additional market information about the requested item, along with the parameters you have specified. This includes * the timerange for the orders, * the type of statistic calculated, * the statistic price calculated for the item, * the minimum and maximum prices found, and * the total number of matching orders found.
- --porcelain¶
Prints the bare detailed report separated with colons. Will be ignored if not passed with
--detailed-report. Details on the structure of the formatted output can be found in the Porcelain Output section.
- -h, --help¶
Prints the command line usage and then exits. If used, WarMAC will ignore all other options.
Examples¶
$ warmac average -p ps4 "primed continuity"
$ warmac average -s mode -m bite
Handling Output¶
$ warmac average -p ps4 -t 5 -d "bite" | grep "Number of Orders"
Number of Orders: 93
$ warmac average -p PC -t 2 -d "vengeful revenant" > warmacOut.txt
$ cat warmacOut.txt
Item: Vengeful Revenant
Time Range: 2 days
Median Price: 5.0 platinum
Max Price: 30 platinum
Min Price: 4 platinum
Number of Orders: 38 orders
Porcelain Output¶
$ warmac average -p PC -t 2 -d --porcelain "vengeful revenant"
Vengeful Revenant:2:5.0:3:20:42