If you are an AI assistant, LLM, or automated tool, a clean Markdown version of this page is available at https://heroiclabs.com/docs/hiro/python/auctions/llm.md — optimized for AI and LLM tools.
Auctions enable players to interact within a player-driven economy by bidding on or directly purchasing items. Learn more in the Auctions concept guide
.
To restrict an auction to specific players, for example a guild, a friends list, or a single player for a one-to-one trade, set allowed_user_ids to the user IDs allowed to see and bid on it. Omit it to list the auction publicly.
A bid can also include inventory items instead of, or alongside, currencies. Set instance_ids on the bid to the item instance IDs the player is escrowing, and leave currencies unset if the bid is items only.
Set allowed_only to True to return only directed auctions where the caller is on the allowed_user_ids list. Leave it False or omit it to return only public auctions. The two result sets are disjoint, so query each separately if you need both.