API Reference / Purchases and sales
List sales
The workspace's sales and lost items, newest first, with price, cost and profit.
/ v1/ salesQuery parameters
limit?integerHow many to return, 1 to 100.
Default25
Range1 to 100
cursor?stringThe next_cursor of the previous page. Send the same other parameters with it.
status?stringOnly sales in these states, comma separated.
market?stringOnly these markets, by key, comma separated.
buying_contract_id?stringOnly sales of items this contract bought.
query?stringOnly items whose name contains this text, ignoring case.
ended_from?stringOnly sales that ended at or after this time. A pending sale always matches.
Format"date-time"
ended_before?stringOnly 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?stringThe contract that bought the item.
cost?MoneyWhat the item cost, when it was bought here.
Show attributes
amountstringThe amount as a decimal string, exact, with at least two decimal places.
currencystringThe ISO 4217 currency code.
ended_at?stringWhen it was delivered, failed or lost.
Format"date-time"
failure_reason?stringWhy it failed, when it did.
Value in"buyer_"item_"market_"not_"sale_"sold_"steam_"trade_"unknown"
idstringThe sale's id.
itemstringThe item's market hash name.
list_price?MoneyThe price it was listed at when it sold.
Show attributes
amountstringThe amount as a decimal string, exact, with at least two decimal places.
currencystringThe ISO 4217 currency code.
loss_reason?stringWhy the item was lost, when it was.
Value in"reversed_"settlement_"taken_"unknown""voided_"written_
market?stringThe market it sold on.
not_bought_herebooleanTrue when the item was not bought through this workspace's contracts, so it has no cost and no profit.
priceMoneyWhat the sale pays, after the market's fee, in US dollars.
Show attributes
amountstringThe amount as a decimal string, exact, with at least two decimal places.
currencystringThe ISO 4217 currency code.
profitMoneyThe price less the cost once delivered, minus the cost when lost, and zero while pending or failed.
Show attributes
amountstringThe amount as a decimal string, exact, with at least two decimal places.
currencystringThe ISO 4217 currency code.
selling_contract_id?stringThe selling contract it sold under.
started_atstringWhen the buyer took the item.
Format"date-time"
statusstringpending: 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?stringThe Steam account the item is sent from.
has_morebooleanTrue when another page follows.
next_cursor?stringThe cursor of the next page. Absent on the last page.
application/json
An error. Its type says the class and its code the exact error.
errorErrorObjectWhat went wrong.
Show attributes
codestringThe error's code. Codes never change meaning and are never reused.
messagestringA sentence for a person. It may be reworded; branch on code, not on message.
namestringThe code's name, for reading.
param?stringThe parameter the error is about, when it is about one.
request_idstringThe id of this request. Quote it to support.
typestringThe class of the error. Each type has one HTTP status.
Value in"authentication_"permission_"not_"conflict_"validation_"rate_"api_"unavailable_
curl "https://api.goldmine.to/v1/sales?limit=25" \
-H "Authorization: Bearer $CSTRADER_API_KEY"const res = await fetch("https://api.goldmine.to/v1/sales?limit=25", {
headers: { Authorization: `Bearer ${process.env.CSTRADER_API_KEY}` },
});
const data = await res.json();req, err := http.NewRequestWithContext(ctx, http.MethodGet, "https://api.goldmine.to/v1/sales?limit=25", nil)
if err != nil {
return err
}
req.Header.Set("Authorization", "Bearer "+os.Getenv("CSTRADER_API_KEY"))
res, err := http.DefaultClient.Do(req)import os, requests
res = requests.get(
"https://api.goldmine.to/v1/sales?limit=25",
headers={"Authorization": f"Bearer {os.environ['CSTRADER_API_KEY']}"},
)
data = res.json(){
"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"
}{
"error": {
"type": "validation_error",
"code": "E00502",
"name": "InvalidParameter",
"message": "limit must be from 1 to 100.",
"param": "limit",
"request_id": "req_01a1fe10-786e-7e9d-9dce-4f758313ad79"
}
}