Skip to main content
GET
/
orderbooks
/
stocks
/
api
/
offchain
/
customers
/
{customerRef}
/
orders
curl -X GET "https://api.trusset.org/orderbooks/stocks/api/offchain/customers/cust_12345/orders?status=OPEN&limit=20" \
  -H "x-api-key: trusset_{instanceRef}_{secret}"
{
  "success": true,
  "data": [
    {
      "id": "ord_oc_001",
      "orderBookId": "ob_offchain_001",
      "customerRef": "cust_12345",
      "side": "BUY",
      "orderType": "LIMIT",
      "price": "100000000000000000000",
      "quantity": "5000000000000000000",
      "filledQuantity": "0",
      "status": "OPEN",
      "createdAt": "2025-01-15T10:30:00.000Z"
    }
  ],
  "metadata": {
    "requestId": "550e8400-e29b-41d4-a716-446655440000",
    "timestamp": "2025-01-15T10:35:00.000Z",
    "instanceId": "inst_abc"
  }
}

Documentation Index

Fetch the complete documentation index at: https://docs.trusset.org/llms.txt

Use this file to discover all available pages before exploring further.

Returns a paginated list of orders placed by a specific customer across off-chain order books.

Authentication

Requires an instance API key with the trading service enabled.

Path Parameters

customerRef
string
required
The customer reference identifier. Max 256 characters.

Query Parameters

orderBookId
string
Filter orders to a specific order book.
status
string
Filter by order status.
limit
integer
Number of results to return. Default 50, maximum 100.
offset
integer
Offset for pagination. Default 0.
curl -X GET "https://api.trusset.org/orderbooks/stocks/api/offchain/customers/cust_12345/orders?status=OPEN&limit=20" \
  -H "x-api-key: trusset_{instanceRef}_{secret}"
{
  "success": true,
  "data": [
    {
      "id": "ord_oc_001",
      "orderBookId": "ob_offchain_001",
      "customerRef": "cust_12345",
      "side": "BUY",
      "orderType": "LIMIT",
      "price": "100000000000000000000",
      "quantity": "5000000000000000000",
      "filledQuantity": "0",
      "status": "OPEN",
      "createdAt": "2025-01-15T10:30:00.000Z"
    }
  ],
  "metadata": {
    "requestId": "550e8400-e29b-41d4-a716-446655440000",
    "timestamp": "2025-01-15T10:35:00.000Z",
    "instanceId": "inst_abc"
  }
}