Dofus 3

Dofus 3 marketplace bot: sell, track prices and buy automatically

MoonBot dashboard: the account manager, with the status, script and connection of each account
The MoonBot account manager: marketplace selling is configured account by account.
Contents
  1. What the marketplace bot does
  2. Automatic selling in a single step
  3. Setting your prices: one kama under the market, with a floor
  4. Tracking prices and volumes
  5. Buying automatically
  6. Example: repricing your listings
  7. Required tier
  8. Tips to avoid selling at a loss

The Marketplace (HDV) is where your farming turns into kamas. It is also a thankless chore: relisting items, watching prices, dropping by one kama whenever a competitor goes under you, without ever selling off cheap. A Dofus 3 marketplace bot does this work for you. This guide covers what MoonBot can do at the marketplace on Dofus 3, with the engine's real Lua functions and examples ready to adapt.

What the marketplace bot does

On Dofus 3, the MoonBot engine covers all three uses of the marketplace:

  • Sell. List items from your bag, but also from your bank and haven bag when the marketplace offers them, in lots of 1, 10, 100 or 1,000.
  • Adjust prices. Reprice your listings one kama under the cheapest offer, with a floor price so you never sell at a loss.
  • Buy. Buy the cheapest lot under a maximum price, or a specific listing chosen for its stats.

The bot also reads an item's official market price (history over 24 hours, 7 days or 30 days), the number of items sold over the period and the list of sales made while it was offline. That is enough to decide what to sell, and at what price, without opening the game.

Automatic selling in a single step

In a MoonBot route, selling takes a single step: sale = true on a marketplace map. The bot opens the marketplace, first sells the items you flagged as priority in the HDV tab of the dashboard, then the rest according to your default rules, updates its prices and closes it.

function bank()
    return {
        { map = "CARTE_HDV", sale = true },      -- sell according to the HDV tab
        { map = "CARTE_BANQUE", npcBank = true }, -- deposit the rest in the bank
    }
end

Replace the map identifiers with those of your marketplace and your bank (the MapViewer tab shows the identifier of the current map). Placed in bank(), this sequence runs every time the bag is full: the bot sells what needs selling, deposits the rest and goes back to farming. From a script, the same operation is called with hdv.autoSell().

Setting your prices: one kama under the market, with a floor

The most common strategy is to sit one kama under the cheapest listing, so yours is the next one sold. It has a known flaw: if a seller dumps their stock, you follow them down. Hence the importance of the floor price, the price below which the bot refuses to go.

The Dofus 3 engine offers two functions to bring your listings back to the right price. Call them with the marketplace open in sell mode:

FunctionWhat it does
hdv.undercutAll(lot, baisseMax, planchers)For one lot size, places each listing one kama under the cheapest one. baisseMax caps the drop in a single pass (0.10 = 10%) and planchers sets a minimum price, shared or per item.
hdv.updateAllItems(ecart, delai, minimums)Refreshes all your listings, whatever the lot size, with an offset in kamas from the lowest price (-1 = one kama under) and minimum unit prices.

hdv.undercutAll() returns a summary (listings updated, skipped, failed), so you can log every pass at the marketplace.

Tracking prices and volumes

Before selling, it helps to know what an item really sells for, and whether it sells at all. The hdv namespace gives access to the same information as the game client:

  • hdv.getLowestPrice(id, lot): the cheapest offer for a lot size (0 if there is none).
  • hdv.getMiddlePrice(id): the server's average price.
  • hdv.getPriceHistory(id, "7j"): the official market price over 24 hours, 7 days or 30 days, with minimum, maximum and average price, and volume.
  • hdv.getSaleCount(id, "7j"): the number of items sold over the period.
  • hdv.getTax() and hdv.getLotSizes(): the marketplace tax and the accepted lot sizes.

An item that rarely sells does not deserve a slot in your listings, even if it is expensive: the number of sales over 7 days is often a better criterion than the price.

Buying automatically

The bot can also buy. hdv.buyItem(id, lot, prixMax) buys the cheapest lot of an item under a maximum price, after a search. For finer purchases, hdv.offers(id) returns each listing with its stats, or the mount's characteristics for a Dragoturkey, and hdv.buyOffer(uid, lot, prixMax) buys exactly the listing you picked. This lets you, for example, buy only a mount of a given level under a set price.

Combined with crafting, these functions let you buy ingredients under a target price, craft, then resell the result: the classic crafter-reseller loop.

Example: repricing your listings

This script adds a custom step on the marketplace map: the bot opens the marketplace in sell mode, places its lots of 100 one kama under the competition without going below the floor, prints the summary, then closes it.

local function ajusterPrix()
    if not hdv.openSell(-1) then return end           -- -1: marketplace detected automatically
    local planchers = { [303] = 5000 }                -- Ash Wood: never below 5,000 kamas per lot
    local bilan = hdv.undercutAll(100, 0.10, planchers) -- lots of 100, drop capped at 10%
    global.printMessage("Modifiées : " .. bilan.updated
        .. " | Ignorées : " .. bilan.skipped
        .. " | Erreurs : " .. bilan.errors)
    hdv.close()
end

function bank()
    return {
        { map = "CARTE_HDV", custom = ajusterPrix },
        { map = "CARTE_BANQUE", npcBank = true },
    }
end

Replace ID 303 and the amount with your own items, and the maps with yours. The documentation built into the dashboard details each function and gives the minimum engine version when a function is recent.

Required tier

Selling and the marketplace are part of the features included from the Standard tier (€87 per month, 150 bots), like crafting and statistics. The free tier and the Beginner tier cover gathering, the bank, routes and Lua scripting, but not automatic selling. Prices are the same on Dofus 3, Dofus Retro and Dofus Touch; the details are on the Dofus 3 bot page.

Ready-to-run scripts. Don't feel like setting everything up yourself? The community publishes its selling and trading scripts for Dofus 3 on the MoonBot marketplace, free or paid: browse the Dofus 3 trading scripts. Each page describes what the script does; you then get it from the Marketplace tab of the app.

Tips to avoid selling at a loss

  • Always set a floor. Without a minimum price, a single seller in a hurry can drag your listings down.
  • Cap the drop per pass. A maximum drop of 10% per pass keeps you from following an absurd listing.
  • Check the volume. An item sold ten times a week does not justify a lot of 1,000.
  • Factor in the tax. The marketplace tax (hdv.getTax()) is paid when you list an item: avoid relisting again and again for no reason.
  • Review offline sales. hdv.offlineSales() lists what sold while the bot was disconnected.

Botting breaks the terms of use of Dofus and exposes your accounts to sanctions. MoonBot is independent third-party software, not affiliated with Ankama: you use it at your own responsibility.

To keep the marketplace stocked, see our Dofus 3 farming bot guide; for the full state of the engine, read the Dofus 3 (Unity) bot article.

Frequently asked questions

Is there a marketplace bot for Dofus 3?

Yes. MoonBot sells automatically on the Dofus 3 Marketplace (HDV), sets its prices one kama under the competition without going below a floor, reads the official market price of items and can buy under a maximum price.

Does the bot lower its prices automatically?

Yes, if you ask it to. The hdv.undercutAll() function places each listing one kama under the cheapest one, with a maximum drop per pass and per-item floor prices so you never sell at a loss.

Can I sell items stored in the bank?

Yes. On Dofus 3, the marketplace also offers items from the bank and the haven bag; the hdv.sellableItems() function lists them with their origin.

Do I need a subscription for marketplace selling?

Yes. Selling and the marketplace are included from the Standard tier (€87 per month, 150 bots). The free tier and Beginner cover gathering, the bank, routes and Lua.

Can the bot buy a specific mount or item?

Yes. hdv.offers() returns each listing with its stats or the mount's characteristics, and hdv.buyOffer() buys the chosen listing under a maximum price.

Ready to automate Dofus 3?

Create an account, add your characters and launch your first script in minutes. The free tier unlocks up to 5 bots through Discord invites, with nothing to install.

Start for freeSee pricing

Automate your game

The most complete Dofus bot

100% cloud: nothing to install, no VPS. Combat, gathering, marketplace, crafting, multi-account and Lua scripting.

  • 100% cloud — nothing to install
  • Free up to 5 bots
Start for free
← Back to the blog