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
side | Meaning |
|---|---|
ask | A sell-listing quote. |
bid | A buy-order quote. |
mid | The 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_amountis what buying at that price comes to.sale_amountis what selling at that price comes to.payout_amountis 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 value | Meaning |
|---|---|
quantity=null | The quantity is unknown. |
quantity=0 | No quantity is available in that row. |
is_quantity_minimum=true | The quantity is a lower bound. |
is_all_items_same_price=false | The quote does not describe the price of every unit. |
is_all_items_same_price=null | It is unknown whether every unit has that price. |
Missing and delisted prices
| State | What you see |
|---|---|
| The source reports no amount | market_price_amount=null |
| The quote is delisted | The 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.