Off-Chain Settlement
Get Customer Orders
List one customer’s off-chain orders
GET
/
orderbooks
/
stocks
/
api
/
offchain
/
customers
/
{customerRef}
/
orders
curl "https://api.trusset.org/orderbooks/stocks/api/offchain/customers/cust_1042/orders?status=OPEN" \
-H "X-API-Key: trusset_your_key_here"
const res = await fetch(
`https://api.trusset.org/orderbooks/stocks/api/offchain/customers/${customerRef}/orders?status=OPEN`,
{ headers: { 'X-API-Key': 'trusset_your_key_here' } }
);
const { data } = await res.json();
{
"success": true,
"data": {
"orders": [
{
"orderId": "b7c1e0d4-6f2a-4f1e-9d33-5c8a1f0b2e77",
"orderBookId": "clx_ob_stock_001",
"userAddress": "offchain:cust_1042",
"side": "BUY",
"orderType": "LIMIT",
"price": "182350000",
"quantity": "5000000",
"filledQuantity": "1000000",
"remainingQuantity": "4000000",
"status": "PARTIALLY_FILLED",
"timeInForce": "GTC",
"createdAt": "2025-06-15T12:00:00.000Z",
"orderBook": { "id": "clx_ob_stock_001", "symbol": "NYF1" }
}
],
"total": 1,
"limit": 50,
"offset": 0
}
}
Returns orders placed under one customer reference on your instance, newest first, each carrying its order book. This is the read behind a customer-facing order blotter.
The scope is your instance and that reference only. There is no cross-instance visibility and no wallet involved.
Path Parameters
Query Parameters
Response Fields
Show child attributes
Show child attributes
Order records, each with its
orderBook in the shape of Get Order Book. userAddress carries offchain:<customerRef>.curl "https://api.trusset.org/orderbooks/stocks/api/offchain/customers/cust_1042/orders?status=OPEN" \
-H "X-API-Key: trusset_your_key_here"
const res = await fetch(
`https://api.trusset.org/orderbooks/stocks/api/offchain/customers/${customerRef}/orders?status=OPEN`,
{ headers: { 'X-API-Key': 'trusset_your_key_here' } }
);
const { data } = await res.json();
{
"success": true,
"data": {
"orders": [
{
"orderId": "b7c1e0d4-6f2a-4f1e-9d33-5c8a1f0b2e77",
"orderBookId": "clx_ob_stock_001",
"userAddress": "offchain:cust_1042",
"side": "BUY",
"orderType": "LIMIT",
"price": "182350000",
"quantity": "5000000",
"filledQuantity": "1000000",
"remainingQuantity": "4000000",
"status": "PARTIALLY_FILLED",
"timeInForce": "GTC",
"createdAt": "2025-06-15T12:00:00.000Z",
"orderBook": { "id": "clx_ob_stock_001", "symbol": "NYF1" }
}
],
"total": 1,
"limit": 50,
"offset": 0
}
}
Error Codes
| Code | HTTP | Cause |
|---|---|---|
INVALID_PARAM | 400 | customerRef is missing or longer than 256 characters |
SERVICE_NOT_ENABLED | 403 | The Trading service is not enabled on this instance |
⌘I
curl "https://api.trusset.org/orderbooks/stocks/api/offchain/customers/cust_1042/orders?status=OPEN" \
-H "X-API-Key: trusset_your_key_here"
const res = await fetch(
`https://api.trusset.org/orderbooks/stocks/api/offchain/customers/${customerRef}/orders?status=OPEN`,
{ headers: { 'X-API-Key': 'trusset_your_key_here' } }
);
const { data } = await res.json();
{
"success": true,
"data": {
"orders": [
{
"orderId": "b7c1e0d4-6f2a-4f1e-9d33-5c8a1f0b2e77",
"orderBookId": "clx_ob_stock_001",
"userAddress": "offchain:cust_1042",
"side": "BUY",
"orderType": "LIMIT",
"price": "182350000",
"quantity": "5000000",
"filledQuantity": "1000000",
"remainingQuantity": "4000000",
"status": "PARTIALLY_FILLED",
"timeInForce": "GTC",
"createdAt": "2025-06-15T12:00:00.000Z",
"orderBook": { "id": "clx_ob_stock_001", "symbol": "NYF1" }
}
],
"total": 1,
"limit": 50,
"offset": 0
}
}
