auction ======= .. py:module:: wow.models.auction .. autoapi-nested-parse:: Models for the Auction House API. Forever has fifteen auction houses per ruleset, in five Alliance, Horde and Blackwater groups; every ruleset lists the same fifteen. ``client.auctions`` reads them. .. py:type:: AuctionTimeLeft :canonical: Literal['SHORT', 'MEDIUM', 'LONG', 'VERY_LONG'] How much longer an auction has to run, as a coarse band rather than a timestamp. .. py:class:: AuctionItemModifier Bases: :py:obj:`wow.models._common.Model` One modifier on an auctioned item, such as the context a dungeon or raid drop came from. .. py:attribute:: type :type: int .. py:attribute:: value :type: int .. py:class:: AuctionItem Bases: :py:obj:`wow.models._common.Model` The item an auction sells: its id plus whatever bonuses and modifiers make one stack differ from another. .. py:attribute:: id :type: int .. py:attribute:: context :type: int | None :value: None .. py:attribute:: bonus_lists :type: tuple[int, ...] :value: () .. py:attribute:: modifiers :type: tuple[AuctionItemModifier, ...] :value: () .. py:class:: AuctionEntry Bases: :py:obj:`wow.models._common.Model` One posted auction: a buyout, a starting bid, or both. .. py:attribute:: id :type: int .. py:attribute:: item :type: AuctionItem .. py:attribute:: quantity :type: int .. py:attribute:: time_left :type: AuctionTimeLeft .. py:attribute:: bid :type: int | None :value: None .. py:attribute:: buyout :type: int | None :value: None .. py:class:: AuctionHouseIndex Bases: :py:obj:`wow.models._common.Document` Every auction house for one ruleset. .. py:attribute:: auctions :type: tuple[wow.models._common.Ref, ...] .. py:class:: AuctionHouse Bases: :py:obj:`wow.models._common.Document` One auction house, with its posted, non-stackable auctions. :ivar ruleset: The ruleset the request was made through, not necessarily the house's own ruleset; Battle.net echoes whichever ruleset id you asked with. :ivar auctions: An empty house, such as house 112, carries none. .. py:attribute:: id :type: int .. py:attribute:: name :type: str .. py:attribute:: commodities :type: wow.models._common.Link .. py:attribute:: ruleset :type: wow.models._common.Link .. py:attribute:: auctions :type: tuple[AuctionEntry, ...] :value: () .. py:class:: CommodityEntry Bases: :py:obj:`wow.models._common.Model` One posted stack of a commodity, sold at a fixed unit price with no bidding. .. py:attribute:: id :type: int .. py:attribute:: item :type: AuctionItem .. py:attribute:: quantity :type: int .. py:attribute:: unit_price :type: int .. py:attribute:: time_left :type: AuctionTimeLeft .. py:class:: CommodityHouse Bases: :py:obj:`wow.models._common.Document` The commodities listed at one auction house: stackable items with no item modifiers, sold at a fixed price. .. py:attribute:: auctions :type: tuple[CommodityEntry, ...] :value: ()