Wowpedia
Advertisement
Game Flavors
Links
Patch
Added in 8.3.0

Queries the auction house for the player's active auctions.

C_AuctionHouse.QueryOwnedAuctions(sorts)

Arguments

sorts 
AuctionHouseSortType[]
Key Type Description
sortOrder Enum.AuctionHouseSortOrder?
reverseSort boolean?
Enum.AuctionHouseSortOrder
Value Key Description
0 Price
1 Name
2 Level
3 Bid
4 Buyout
5 TimeRemaining Only works for Owned auctions. Added in 9.0.1

Example

Queries owned auctions, sorted by time remaining.

local btn = CreateFrame("Button", nil, UIParent, "UIPanelButtonTemplate")
btn:SetPoint("CENTER")
btn:SetSize(120, 40)
btn:SetText("Example")
btn:SetScript("OnClick", function(self, button)
	local sorts = {
		{sortOrder = Enum.AuctionHouseSortOrder.TimeRemaining, reverseSort = false},
	}
	C_AuctionHouse.QueryOwnedAuctions(sorts)
end)

Patch changes


Advertisement