API C AuctionHouse.PostCommodity

Posts a commodity item on the auction house.
 needsConfirmation = C_AuctionHouse.PostCommodity(item, duration, quantity, unitPrice)
==Arguments==
:;item:
:;duration:
Value	Description
1 	12 Hours
2 	24 Hours
3 	48 Hours
:;quantity:
:;unitPrice: - Amount in copper, only accepts gold and silver and silently fails for non-zero copper counts.
==Returns==
:;needsConfirmation:boolean
==Example==
Auctions 14 units of the commodity item in the topleft corner of your default backpack, for 48 hours with a 27 silver price per unit.
function Example() -- /run Example()
	C_AuctionHouse.PostCommodity(ItemLocation:CreateFromBagAndSlot(0, 1), 3, 14, 2700)
end
* Presses the "Create Auction" button, in a macro suitable format which uses a secure template.
/run if not AHPostC then local f=CreateFrame("Button","AHPostC",nil,"SecureActionButtonTemplate")f:SetAttribute("type","click")f:SetAttribute("clickbutton",AuctionHouseFrame.CommoditiesSellFrame.PostButton)end
/click AHPostC LeftButton 1
* This would brick the Auction House.
 /run AuctionHouseFrame.CommoditiesSellFrame.PostButton:Click()
==Patch changes==
==See also==
* ()
* https://www.curseforge.com/wow/addons/magic-button/ - Adds macros for keybinds to buy, post, and cancel on the auction house.