Back to index...

NameTypeDeprecatedSecureDescription
Command.Auction.AnalyzefunctionRequests auction statistics from the server. The results will be sent to Event.Auction.Statistics...
Command.Auction.BidfunctionBids or buys out an auction.
Command.Auction.CancelfunctionCancels an auction.
Command.Auction.FulfillfunctionFulfills an existing buy order.
Command.Auction.OrderfunctionPosts a new buy order.
Command.Auction.PostfunctionPosts a new auction.
Command.Auction.ScanfunctionRequests an auction house scan. For type "search", if "index" is omitted then this function will ...
Event.Auction.ScanSignals incoming auction data.
Event.Auction.StatisticsSignals receipt of auction statistics.
Inspect.Auction.DetailfunctionProvides detailed information about auctions.
Utility.Auction.CostfunctiondeprecatedReturns the amount of silver it will cost to post a given auction.
Utility.Auction.CostOrderfunctionReturns the amount of silver it will cost to post a given order.
Utility.Auction.CostPostfunctionReturns the amount of silver it will cost to post a given auction.

Command.Auction.Analyze

Requests auction statistics from the server. The results will be sent to Event.Auction.Statistics. This command is throttled by the "auctionanalyze" throttle type, proportional to the number of days requested.

Usage:

Interaction category: auction

Command.Auction.Analyze(itemtype, begin, end)
Command.Auction.Analyze(itemtype, begin, end, callback)
ParameterTypeDatatypeDescription
beginparameternumberUNIX timestamp to begin analysis at.
callbackparametercallbackfunctionA standard command callback, used for detecting success or failure. See the "callbackfunction" documentation for more details.
endparameternumberUNIX timestamp to end analysis at.
itemtypeparameteritemtypeItem type to analyze.

Command.Auction.Bid

Bids or buys out an auction.

Usage:

Interaction category: auction

Throttled.

Command.Auction.Bid(auction, bid)
Command.Auction.Bid(auction, bid, quantity)
Command.Auction.Bid(auction, bid, callback)
Command.Auction.Bid(auction, bid, quantity, callback)
ParameterTypeDatatypeDescription
auctionparameterauctionThe auction to be targeted.
bidparameternumberThe amount to bid. To place a buyout, simply bid the buyout value.
callbackparametercallbackfunctionA standard command callback, used for detecting success or failure. See the "callbackfunction" documentation for more details.
quantityparameternumberHow many items to purchase. If omitted, defaults to the entire auction quantity.

Command.Auction.Cancel

Cancels an auction.

Usage:

Interaction category: auction

Throttled.

Command.Auction.Cancel(auction)
Command.Auction.Cancel(auction, callback)
ParameterTypeDatatypeDescription
auctionparameterauctionThe auction to be targeted.
callbackparametercallbackfunctionA standard command callback, used for detecting success or failure. See the "callbackfunction" documentation for more details.

Command.Auction.Fulfill

Fulfills an existing buy order.

Usage:

Interaction category: auction

Throttled.

Command.Auction.Fulfill(auction, item, quantity)
Command.Auction.Fulfill(auction, item, quantity, callback)
ParameterTypeDatatypeDescription
auctionparameterauctionThe auction to be targeted.
callbackparametercallbackfunctionA standard command callback, used for detecting success or failure. See the "callbackfunction" documentation for more details.
itemparameteritemThe ID of the item to be taken.
quantityparameternumberStack size to fulfill.

Command.Auction.Order

Posts a new buy order.

Usage:

Interaction category: auction

Throttled.

Command.Auction.Order(itemtype, quantity, time, buyout)
Command.Auction.Order(itemtype, quantity, time, buyout, callback)
ParameterTypeDatatypeDescription
buyoutparameternumberThe total buyout for the new auction, in silver. Must be evenly divisible by quantity.
callbackparametercallbackfunctionA standard command callback, used for detecting success or failure. See the "callbackfunction" documentation for more details.
itemtypeparameteritemtypeThe item type to be ordered.
quantityparameternumberThe number of items to be ordered.
timeparameternumberThe duration that the order should last, in hours. Valid values are limited to 12, 24, and 48.

Command.Auction.Post

Posts a new auction.

Usage:

Interaction category: auction

Throttled.

Command.Auction.Post(item, time, bid, buyout)
Command.Auction.Post(item, time, bid, buyout, partial)
Command.Auction.Post(item, time, bid, buyout, callback)
Command.Auction.Post(item, time, bid, buyout, partial, callback)
ParameterTypeDatatypeDescription
bidparameternumber/nilThe minimum bid for the new auction, in silver. nil if no bid is desired.
buyoutparameternumber/nilThe buyout for the new auction, in silver. nil if no buyout is desired.
callbackparametercallbackfunctionA standard command callback, used for detecting success or failure. See the "callbackfunction" documentation for more details.
itemparameteritemThe ID of the item to be auctioned.
partialparameterbooleanWhether partial buyouts should be permitted. Must be "false" if a buyout is not provided or if a bid is provided that is different from the buyout. If this parameter is omitted, will default to "true" when possible, or "false" otherwise.
timeparameternumberThe duration that the auction should last, in hours. Valid values are limited to 12, 24, and 48.

Command.Auction.Scan

Requests an auction house scan. For type "search", if "index" is omitted then this function will error if the "auctionfullscan" queue is not ready. Type "search" with "index" will throttle on the "auction" command queue. Other types throttle on the "global" command queue.

Usage:

Interaction category: auction

Command.Auction.Scan(parameters)
ParameterTypeDatatypeDescription
parametersparametertableTable containing data about the requested scan.
type: Type of scan to perform. One of "bids", "buy", "mine", "orders", or "search".
If type is "bids", "mine", or "orders", no other parameters are allowed.
If type is "search":
category: Category to search for. Same as the "category" member returned by Inspect.Item.Detail(). Optional.
index: Numeric item index to start the scan at. If provided, the auction scan will return the first 50 items immediately following this index.
levelMax: Maximum level the item must require. Optional.
levelMin: Minimum level the item must require. Optional.
priceMax: Maximum price of the item. Optional.
priceMin: Minimum price of the item. Optional.
rarity: The minimum rarity to search for. Same as the "rarity" member returned by Inspect.Item.Detail(). Optional.
role: The role that the item must be compatible with. One of "mage", "rogue", "cleric", "warrior", or "primalist". Optional.
statType: Which stat to filter based on. One of "armor", "block", "critPower", "critSpell", "dexterity", "dodge", "endurance", "health", "hit", "intelligence", "mana", "powerAttack", "powerSpell", "resistAir", "resistDeath", "resistEarth", "resistFire", "resistLife", "resistWater", "strength", or "wisdom". Optional. If provided, statMin and statMax must also be provided.
statMax: Maximum allowed value for the filter stat. Optional. If provided, statType and statMin must also be provided.
statMin: Minimum allowed value for the filter stat. Optional. If provided, statType and statMax must also be provided.
sort: Which column the requested items should be sorted based on. One of "rarity", "name", "level", "time", "seller", "pricePerUnit", "bid", "buyout", "stack". Optional.
sortOrder: What order to sort in. One of "ascending" or "descending". Optional.
text: A string to search for in the item name. Optional.
type: Type of scan to perform. One of "search", "buy", "mine", or "bids". If "mine" or "bids", must be the only member in the table.
If type is "buy":
category: Category to search for. Same as the "category" member returned by Inspect.Item.Detail(). Optional.
text: A string to search for in the item name. Optional.
hardwareevent
true

Event.Auction.Scan

Signals incoming auction data.

Usage:

Event.Auction.Scan(type, auctions)
ParameterTypeDatatypeDescription
auctionsparameter<nope>A table of the auctions returned from this scan.
typeparametervariantA table containing information on this scan. In the same format as the parameter to Command.Auction.Scan().

Event.Auction.Statistics

Signals receipt of auction statistics.

Usage:

Event.Auction.Statistics(itemtype, data)
ParameterTypeDatatypeDescription
dataparameter<nope>Table containing a series of tables with different timestamps, each containing data for a single day.
itemtypeparametervariantItem type that the attached statistics refer to.
members
priceAverage Average item price during this day.
priceMax Maximum item price during this day.
priceMin Minimum item price during this day.
priceVariance Variance in item price during this day.
time UNIX timestamp of the day.
volume Quantity of items traded during this day.

Inspect.Auction.Detail

Provides detailed information about auctions.

Usage:

Interaction category: auction

detail = Inspect.Auction.Detail(auction)
details = Inspect.Auction.Detail(auctions)
ParameterTypeDatatypeDescription
auctionparameterauctionAn identifier for the auction to retrieve detail for.
auctionsparametertableA table containing auction identifiers to retrieve details for. The value is the sort order.
detailresulttableDetail table for a single auction.
detailsresulttableDetail tables for all requested auctions. The key is the auction ID, the value is the auction's detail table.
members
bid The current bid on this auction, in silver.
bidder Current high bidder on this auction. Available only if your current character is the bidder or the seller.
buyout The buyout amount for this auction, in silver.
id The ID of the requested element.
item ID of the item involved in the auction.
itemStack The size of this item stack.
itemType The item's type specifier.
partial Whether partial buyouts are permitted.
remaining Time remaining in the auction, as a number of seconds.
seller The name of the auction's seller.

Utility.Auction.Cost

Returns the amount of silver it will cost to post a given auction.

Usage:

cost = Utility.Auction.Cost(item, time, bid, buyout)
cost = Utility.Auction.Cost(item, time, bid, buyout, partial)
ParameterTypeDatatypeDescription
bidparameternumber/nilThe minimum bid for the new auction, in silver. nil if no bid is desired.
buyoutparameternumber/nilThe buyout for the new auction, in silver. nil if no buyout is desired.
itemparameteritemThe ID of the item to be auctioned.
partialparameterbooleanWhether partial buyouts should be permitted. Must be "false" if a buyout is not provided or if a bid is provided that is different from the buyout. If this parameter is omitted, will default to "true" when possible, or "false" otherwise.
timeparameternumberThe duration that the auction should last, in hours. Valid values are limited to 12, 24, and 48.
costresultnumberThe cost of posting this auction, in silver.
deprecated
standard

Utility.Auction.CostOrder

Returns the amount of silver it will cost to post a given order.

Usage:

cost = Utility.Auction.CostOrder(itemtype, quantity, time, buyout)
ParameterTypeDatatypeDescription
buyoutparameternumberThe total buyout for the new auction, in silver. Must be evenly divisible by quantity.
itemtypeparameteritemtypeThe item type to be ordered.
quantityparameternumberThe number of items to be ordered.
timeparameternumberThe duration that the order should last, in hours. Valid values are limited to 12, 24, and 48.
costresultnumberThe cost of posting this order, in silver. Includes the full deposit for the items.

Utility.Auction.CostPost

Returns the amount of silver it will cost to post a given auction.

Usage:

cost = Utility.Auction.CostPost(item, time, bid, buyout)
cost = Utility.Auction.CostPost(item, time, bid, buyout, partial)
ParameterTypeDatatypeDescription
bidparameternumber/nilThe minimum bid for the new auction, in silver. nil if no bid is desired.
buyoutparameternumber/nilThe buyout for the new auction, in silver. nil if no buyout is desired.
itemparameteritemThe ID of the item to be auctioned.
partialparameterbooleanWhether partial buyouts should be permitted. Must be "false" if a buyout is not provided or if a bid is provided that is different from the buyout. If this parameter is omitted, will default to "true" when possible, or "false" otherwise.
timeparameternumberThe duration that the auction should last, in hours. Valid values are limited to 12, 24, and 48.
costresultnumberThe cost of posting this auction, in silver.

Back to index...