Appendix: concepts

Price semantics

Learn what the side, amount, and quantity fields of a quote mean, and how to treat missing and delisted prices.

A quote tells you what one side of one market offers for an item. Read the side, the amount, and the quantity together before you compare quotes.

Side

sideMeaning
askA sell-listing quote.
bidA buy-order quote.
midThe CSCP valuation, an estimate with no quantity.

Amounts

The market price, market_price_amount, is in the currency of the market. Each quote also carries three fee-adjusted amounts, converted into the response currency:

  • buy_amount is what buying at that price comes to.
  • sale_amount is what selling at that price comes to.
  • payout_amount is what selling and then withdrawing comes to.

These amounts apply the official fees of the market. Amounts are decimal strings to preserve precision. See cost calculation.

Quantity

Field and valueMeaning
quantity=nullThe quantity is unknown.
quantity=0No quantity is available in that row.
is_quantity_minimum=trueThe quantity is a lower bound.
is_all_items_same_price=falseThe quote does not describe the price of every unit.
is_all_items_same_price=nullIt is unknown whether every unit has that price.

Missing and delisted prices

StateWhat you see
The source reports no amountmarket_price_amount=null
The quote is delistedThe last known amount is kept, quantity=0, and delisted_at is set.

Do not turn either state into a zero-priced opportunity. Apply your own freshness and availability checks before you act on data, as described in freshness and timestamps.