Skip to content

API Reference / Contracts

List contracts

The workspace's buying and selling contracts, newest first.

GET/v1/contracts

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.

type?string

Only contracts of this type.

Value in"buying""selling"

status?string

Only contracts in these states, comma separated.

query?string

Only contracts whose name, or an item they match, contains this text.

Response body

application/json

The answer.

dataarray<Contract>

This page, in the list's order.

Show attributes
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"

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/contracts?limit=25" \
  -H "Authorization: Bearer $CSTRADER_API_KEY"
{
  "data": [
    {
      "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
    }
  ],
  "has_more": true,
  "next_cursor": "eyJwIjoiY3RyXzAxOTBmM2MyIn0"
}