Skip to content

API Reference / Purchases and sales

List sales

The workspace's sales and lost items, newest first, with price, cost and profit.

GET/v1/sales

Query parameters

limit?integer

How many to return, 1 to 100.

Default25

Range1 to 100

cursor?string

The next_cursor of the previous page. Send the same other parameters with it.

status?string

Only sales in these states, comma separated.

market?string

Only these markets, by key, comma separated.

buying_contract_id?string

Only sales of items this contract bought.

query?string

Only items whose name contains this text, ignoring case.

ended_from?string

Only sales that ended at or after this time. A pending sale always matches.

Format"date-time"

ended_before?string

Only sales that ended before this time. A pending sale always matches.

Format"date-time"

Response body

application/json

The answer.

dataarray<Sale>

This page, in the list's order.

Show attributes
buying_contract_id?string

The contract that bought the item.

cost?Money

What the item cost, when it was bought here.

Show attributes
amountstring

The amount as a decimal string, exact, with at least two decimal places.

currencystring

The ISO 4217 currency code.

ended_at?string

When it was delivered, failed or lost.

Format"date-time"

failure_reason?string

Why it failed, when it did.

Value in"buyer_did_not_accept""item_not_in_account""market_cancelled""not_sent_in_time""sale_not_as_listed""sold_on_another_market""steam_refused""trade_reversed""unknown"

idstring

The sale's id.

itemstring

The item's market hash name.

list_price?Money

The price it was listed at when it sold.

Show attributes
amountstring

The amount as a decimal string, exact, with at least two decimal places.

currencystring

The ISO 4217 currency code.

loss_reason?string

Why the item was lost, when it was.

Value in"reversed_not_returned""settlement_missing""taken_unpaid""unknown""voided_after_delivery""written_off"

market?string

The market it sold on.

not_bought_hereboolean

True when the item was not bought through this workspace's contracts, so it has no cost and no profit.

priceMoney

What the sale pays, after the market's fee, in US dollars.

Show attributes
amountstring

The amount as a decimal string, exact, with at least two decimal places.

currencystring

The ISO 4217 currency code.

profitMoney

The price less the cost once delivered, minus the cost when lost, and zero while pending or failed.

Show attributes
amountstring

The amount as a decimal string, exact, with at least two decimal places.

currencystring

The ISO 4217 currency code.

selling_contract_id?string

The selling contract it sold under.

started_atstring

When the buyer took the item.

Format"date-time"

statusstring

pending: a buyer took it and the trade is under way. delivered: the buyer accepted and the sale is booked. failed: no money came and the item is still yours. lost: the item left and no money came.

Value in"delivered""failed""lost""pending""unknown"

steam_account_name?string

The Steam account the item is sent from.

has_moreboolean

True when another page follows.

next_cursor?string

The cursor of the next page. Absent on the last page.

curl "https://api.goldmine.to/v1/sales?limit=25" \
  -H "Authorization: Bearer $CSTRADER_API_KEY"
{
  "data": [
    {
      "buying_contract_id": "ctr_0190f3c2a1b47c3d8e9f0a1b2c3d4e5f",
      "cost": {
        "amount": "12.34",
        "currency": "USD"
      },
      "ended_at": "2026-11-21T09:30:00Z",
      "failure_reason": "buyer_did_not_accept",
      "id": "sal_0190f3c2a1b47c3d8e9f0a1b2c3d4e5f",
      "item": "AK-47 | Redline (Field-Tested)",
      "list_price": {
        "amount": "12.34",
        "currency": "USD"
      },
      "loss_reason": "reversed_not_returned",
      "market": "csfloat",
      "not_bought_here": false,
      "price": {
        "amount": "12.34",
        "currency": "USD"
      },
      "profit": {
        "amount": "12.34",
        "currency": "USD"
      },
      "selling_contract_id": "ctr_0191f3c2a1b47c3d8e9f0a1b2c3d4e5f",
      "started_at": "2026-11-21T09:30:00Z",
      "status": "delivered",
      "steam_account_name": "trader_bot_01"
    }
  ],
  "has_more": true,
  "next_cursor": "eyJwIjoiY3RyXzAxOTBmM2MyIn0"
}