bestPrice

What to list an item at, given what the market is doing.

Not simply the cheapest listing: it undercuts the competition, then refuses to go below what the item cost you. `belowBreakEven` says the recommendation would lose money, and `dispersed` warns that prices are scattered enough that the low is not a reliable signal.

In Marketplace.

Request

POST /api/v1/sessions/{accountKey}/actions/bestPrice

Parameters

NameTypeRequiredDescription
tag (itemId, item_id)stringyesThe item's tag.
raritystringnoRestrict to one rarity.
countintegernoStack size to price. Defaults to 1.

Example request

{ "tag": "AdventurerBoots", "rarity": "Legendary", "count": 1 }

Response

`{ ok: true, price, marketLow, typical, dispersed, belowBreakEven, sample, count }`.

FieldTypeMeaning
priceinteger|nullThe recommended asking price for `count` of them. Null when nothing is listed to price against.
marketLowintegerThe cheapest competing listing, scaled to `count`.
dispersedbooleanTrue when prices are scattered — treat the low as noisy.
belowBreakEvenbooleanTrue when undercutting would sell at a loss against what you paid.

Example response

{
  "ok": true,
  "price": 18915,
  "marketLow": 19500,
  "typical": 24800,
  "dispersed": false,
  "belowBreakEven": false,
  "sample": 14,
  "count": 1
}

Errors

CodeWhen
action_failedNo character is in the lobby, or the tag was empty.
plan_limitNot on the free plan.

See also

DarkerAPI is an independent project. It is not affiliated with, endorsed by or associated with IRONMACE Co., Ltd. or Valve Corporation. “Dark and Darker” and related marks belong to their respective owners.