Skip to content

API Reference / Contracts

Get a contract

One contract by its id.

GET/v1/contracts/{id}

Path parameters

idstring

The id from a list answer.

Response body

application/json

The answer.

created_atstring

When it was created.

Format"date-time"

description?string

The contract's description.

evaluated_at?string

When its targets were last worked out.

Format"date-time"

idstring

The contract's id.

limitsContractLimits

The limits it trades within. An absent limit is no limit.

Show attributes
most_owned_per_item?integer

The most copies of one item the workspace may hold at once.

Format"int32"

purchases?PurchaseLimit

The most purchases it may make in a rolling window.

Show attributes
countinteger

The most purchases in the window.

Format"int32"

window_secondsinteger

The length of the rolling window, in seconds.

Format"int64"

spend?SpendLimit

The most it may spend in a rolling window.

Show attributes
amountMoney

The most it may spend in the window.

Show attributes
amountstring

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

currencystring

The ISO 4217 currency code.

window_secondsinteger

The length of the rolling window, in seconds.

Format"int64"

marketsarray<string>

The markets it trades on, by key, such as csfloat, dmarket and market-csgo.

matched_items?integer

Items its rules matched in its latest evaluation, priced or not.

Format"int32"

namestring

The contract's name.

prices_good_until?string

When the prices behind its current targets stop holding.

Format"date-time"

problemsarray<string>

Conditions that need a look, empty when there are none.

Value in"evaluation_failed""holdings_unconfirmed""targets_outdated""unknown""unpriced_items"

statusstring

off: saved but not trading. starting: switched on, its first targets being worked out. on: trading.

Value in"off""on""starting""unknown"

typestring

Whether it buys or sells.

Value in"buying""selling""unknown"

unpriced_items?integer

Of the matched items, those it could not price and so cannot trade.

Format"int32"

updated_atstring

When its settings were last changed.

Format"date-time"

versioninteger

Its settings version. Every saved change adds one.

Format"int64"

curl "https://api.goldmine.to/v1/contracts/ctr_0190f3c2a1b47c3d8e9f0a1b2c3d4e5f" \
  -H "Authorization: Bearer $CSTRADER_API_KEY"
{
  "created_at": "2026-11-21T09:30:00Z",
  "description": "Field-Tested rifles the market sells below their price",
  "evaluated_at": "2026-11-21T09:30:00Z",
  "id": "ctr_0190f3c2a1b47c3d8e9f0a1b2c3d4e5f",
  "limits": {
    "most_owned_per_item": 2,
    "purchases": {
      "count": 20,
      "window_seconds": 86400
    },
    "spend": {
      "amount": {
        "amount": "12.34",
        "currency": "USD"
      },
      "window_seconds": 86400
    }
  },
  "markets": [
    "csfloat"
  ],
  "matched_items": 128,
  "name": "Rifles under 50",
  "prices_good_until": "2026-11-21T09:30:00Z",
  "problems": [],
  "status": "off",
  "type": "buying",
  "unpriced_items": 3,
  "updated_at": "2026-11-21T09:30:00Z",
  "version": 4
}