-
Notifications
You must be signed in to change notification settings - Fork 0
Market and Pricing
The WebShopX player market is built on two dimensions:
- Source mode (
source_mode)-
MANUAL: standard listing -
SUPPLY: supply-chest listing
-
- Trade mode (
trade_mode)-
DIRECT: buy-now (including dynamic pricing) -
AUCTION: auction
-
Constraint:
SUPPLYlistings do not supportAUCTION.
- Lock listing record
- Calculate total and costs
- Deduct buyer balance
- Create
market_trades - Decrease stock and enqueue delivery
- Settle seller after successful delivery
Given:
- Subtotal:
subtotal = unit_price * quantity - Buyer tax:
tax = subtotal * trade-tax-percent - Seller fee:
fee = subtotal * trade-fee-percent
Settlement values:
buyer_total = subtotal + taxseller_receive = subtotal - fee
A market trade can be refunded when status is PENDING / WAIT_CLAIM and refund policy conditions are met.
Refund will:
- Return buyer payment
- Cancel undelivered market delivery tasks
- Attempt to restore listing stock (if the listing was not fully unlisted)
- Seller binds a container and puts template items inside.
- Listing maintains transit stock.
- When stock goes below threshold or manual refresh is triggered, stock is pulled from the container.
-
supply_batch_size: pull amount per transfer -
supply_max_stock: transit stock cap -
auto-refresh-threshold: threshold that triggers auto restock
- If supply container becomes invalid, listing is auto-paused.
- Bound supply containers are market-protected to prevent accidental stock flow breakage.
4.1 Dynamic Algorithms (Read more)
DynamicAlgorithmType:
LINEAR_DEMAND_V1DIMINISHING_RETURN_V1LOG_SMOOTH_V1EXPONENTIAL_DEFENSE_V1THRESHOLD_STEP_V1ELASTICITY_V1PANIC_BUYING_V1
5.1 Auction Algorithm Enum (Read more)
AuctionAlgorithmType:
ENGLISH_AUCTION_V1DUTCH_AUCTION_V1VICKREY_AUCTION_V1CANDLE_AUCTION_V1
- English: open ascending bids with anti-sniping extension.
- Dutch: price drops over time, supports immediate buyout.
- Vickrey: sealed bids, settles at second-highest price.
- Candle: open bidding with random ending window.
- Placing a bid freezes bidder funds.
- Outbid bids are auto-refunded.
- Auction settlement creates market trade record and triggers delivery.
Market trades use market_item_deliveries queue.
- Auto delivery success: trade becomes
DELIVERED. - Retry reaches threshold: trade becomes
WAIT_CLAIM.
Seller income is credited after successful trade delivery (not at purchase time).
- Start with
DIRECT + fixed pricing, then gradually enable dynamic pricing and auctions. - For high-value items, configure
capandreservePriceto prevent extreme volatility. - In supply mode, use sensible batch size and transit caps to avoid sudden depletion.
- Review market rates regularly to keep the economy sustainable.
Warning
Wiki 已迁移至 https://docs.akihito.dpdns.org/category/webshopx/ ,当前 Wiki 不再更新,并将弃用。 This wiki has moved to https://docs.akihito.dpdns.org/category/webshopx/ . It is no longer updated and will be deprecated soon.
- 本 Wiki基于 WebShopX v1.1.2 编写。
- This Wiki is based on WebShopX v1.1.2.
Warning
Wiki 已迁移至 https://docs.akihito.dpdns.org/category/webshopx/ ,当前 Wiki 不再更新,并将弃用。 This wiki has moved to https://docs.akihito.dpdns.org/category/webshopx/ . It is no longer updated and will be deprecated soon.