# List orders

What the workspace asked the markets to buy: listing buys, buy orders, offers and auction bids. Open ones by default, newest first.

`GET https://api.goldmine.to/v1/orders`

## Query parameters

- `limit` (integer, default 25, 1 to 100): How many to return, 1 to 100.
- `cursor` (string): The next_cursor of the previous page. Send the same other parameters with it.
- `status` (string, default open, one of closed, open): open: everything still open, newest first. closed: what closed in the window closed_from to closed_before, at most 90 days.
- `market` (string): Only these markets, by key, comma separated.
- `contract_id` (string): Only those this contract asked for.
- `query` (string): Only items whose name contains this text, ignoring case.
- `closed_from` (string): With status closed: closed at or after this time. 30 days ago when absent.
- `closed_before` (string): With status closed: closed before this time. Now when absent.

## Response (200)

- `data` (array<Order>, required): This page, in the list's order.
  - `closed_at` (string): When it closed.
  - `contract_id` (string): The contract that asked for it.
  - `created_at` (string, required): When it was written, before it was sent.
  - `expires_at` (string): When the market ends it by itself.
  - `filled_quantity` (integer, required): How many have been bought.
  - `float_max` (number): The highest float it accepts.
  - `float_min` (number): The lowest float it accepts.
  - `id` (string, required): The order's id.
  - `item` (string, required): The item's market hash name.
  - `kind` (string, required, one of auction_bid, buy_order, listing_buy, offer, unknown): What it is.
  - `market` (string, required): The market's key, such as csfloat, dmarket or market-csgo.
  - `opened_at` (string): When the market took it.
  - `phase` (string): The finish's phase, when the item has one.
  - `price` (Money, required): Its price exactly as the market holds it, in the market's currency.
    - `amount` (string, required): The amount as a decimal string, exact, with at least two decimal places.
    - `currency` (string, required): The ISO 4217 currency code.
  - `price_usd` (Money): Its price in US dollars, to the cent. Absent when no exchange rate was recorded.
    - `amount` (string, required): The amount as a decimal string, exact, with at least two decimal places.
    - `currency` (string, required): The ISO 4217 currency code.
  - `quantity` (integer, required): How many it asks for.
  - `state` (string, required, one of cancelled, checking, ended, filled, not_sent, open, placing, refused, stuck, unknown): Where it stands.
  - `steam_account_name` (string): The Steam account whose market account it is on.
- `has_more` (boolean, required): True when another page follows.
- `next_cursor` (string): The cursor of the next page. Absent on the last page.

Errors answer the error body described in the overview: https://goldmine.to/llms.mdx/docs/index.md

## Example request

```shell
curl "https://api.goldmine.to/v1/orders?limit=25" \
  -H "Authorization: Bearer $CSTRADER_API_KEY"
```

## Example response

```json
{
  "data": [
    {
      "closed_at": "2026-11-21T09:30:00Z",
      "contract_id": "ctr_0190f3c2a1b47c3d8e9f0a1b2c3d4e5f",
      "created_at": "2026-11-21T09:30:00Z",
      "expires_at": "2026-11-21T09:30:00Z",
      "filled_quantity": 0,
      "float_max": 0.38,
      "float_min": 0,
      "id": "ord_0190f3c2a1b47c3d8e9f0a1b2c3d4e5f",
      "item": "AK-47 | Redline (Field-Tested)",
      "kind": "auction_bid",
      "market": "csfloat",
      "opened_at": "2026-11-21T09:30:00Z",
      "phase": "",
      "price": {
        "amount": "12.34",
        "currency": "USD"
      },
      "price_usd": {
        "amount": "12.34",
        "currency": "USD"
      },
      "quantity": 1,
      "state": "cancelled",
      "steam_account_name": "trader_bot_01"
    }
  ],
  "has_more": true,
  "next_cursor": "eyJwIjoiY3RyXzAxOTBmM2MyIn0"
}
```
