API Reference / Purchases and sales
List purchases
The items the workspace's contracts bought, newest first.
/ v1/ purchasesQuery 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.
contract_id?stringOnly purchases for this contract.
status?stringOnly purchases in these states, comma separated.
market?stringOnly these markets, by key, comma separated.
query?stringOnly items whose name contains this text, ignoring case.
created_from?stringOnly purchases recorded at or after this time.
Format"date-time"
created_before?stringOnly purchases recorded before this time.
Format"date-time"
Response body
application/json
The answer.
dataarray<Purchase>This page, in the list's order.
Show attributes
contract_id?stringThe contract it was bought for.
created_atstringWhen the purchase was recorded.
Format"date-time"
delivered_at?stringWhen the item arrived in the Steam account.
Format"date-time"
failed_at?stringWhen it failed.
Format"date-time"
failure_reason?stringWhy it failed, when it did.
Value in"account_"insufficient_"listing_"marketplace_"trade_"trade_"unknown"
float?numberThe item's float, when known.
idstringThe purchase's id.
itemstringThe item's market hash name.
marketstringThe market it was bought on.
most_it_would_payMoneyThe most the contract would have paid for it when it was bought.
Show attributes
amountstringThe amount as a decimal string, exact, with at least two decimal places.
currencystringThe ISO 4217 currency code.
paint_seed?integerThe item's pattern, 0 to 1000, when known.
Format"int32"
priceMoneyWhat was paid, in US dollars, exact.
Show attributes
amountstringThe amount as a decimal string, exact, with at least two decimal places.
currencystringThe ISO 4217 currency code.
purchased_at?stringWhen the market confirmed the buy.
Format"date-time"
statusstringpending: bought and on its way. delivered: in the Steam account. failed: not bought, or bought and reversed.
Value in"delivered""failed""pending""unknown"
steam_account_name?stringThe Steam account that bought it.
waystringHow it was bought.
Value in"auction""buy_"listing""offer""unknown"
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/purchases?limit=25" \
-H "Authorization: Bearer $CSTRADER_API_KEY"const res = await fetch("https://api.goldmine.to/v1/purchases?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/purchases?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/purchases?limit=25",
headers={"Authorization": f"Bearer {os.environ['CSTRADER_API_KEY']}"},
)
data = res.json(){
"data": [
{
"contract_id": "ctr_0190f3c2a1b47c3d8e9f0a1b2c3d4e5f",
"created_at": "2026-11-21T09:30:00Z",
"delivered_at": "2026-11-21T09:30:00Z",
"failed_at": "2026-11-21T09:30:00Z",
"failure_reason": "account_unavailable",
"float": 0.2147,
"id": "pur_0190f3c2a1b47c3d8e9f0a1b2c3d4e5f",
"item": "AK-47 | Redline (Field-Tested)",
"market": "csfloat",
"most_it_would_pay": {
"amount": "12.34",
"currency": "USD"
},
"paint_seed": 661,
"price": {
"amount": "12.34",
"currency": "USD"
},
"purchased_at": "2026-11-21T09:30:00Z",
"status": "delivered",
"steam_account_name": "trader_bot_01",
"way": "auction"
}
],
"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"
}
}