Order Books
Get Order Book
Retrieve the full configuration of one commodity order book
GET
/
orderbooks
/
commodities
/
api
/
order-books
/
{orderBookId}
curl "https://api.trusset.org/orderbooks/commodities/api/order-books/clx_ob_comm_001" \
-H "X-API-Key: trusset_your_key_here"
const res = await fetch(
`https://api.trusset.org/orderbooks/commodities/api/order-books/${orderBookId}`,
{ headers: { 'X-API-Key': 'trusset_your_key_here' } }
);
const { data } = await res.json();
console.log(data.symbol, data.cfid ?? 'unpooled');
{
"success": true,
"data": {
"id": "clx_ob_comm_001",
"instanceId": "inst_abc123",
"tokenAddress": "0xd8f3ba9de5b7b83f66d1a7b1ad96c1a64b811ff9",
"quoteTokenAddress": "0x98ad0ca091552e23c564b41c74282e5343d03e8a",
"name": "Allocated Gold 999.9",
"symbol": "XAUA",
"status": "ACTIVE",
"tokenType": "LIGHT_TOKEN",
"settlementMode": "ON_CHAIN",
"custodyContract": "0xf3dac9cf19da1c95a80de890e200bc86e0c6f2da",
"cfid": "0x6b1f0d2c8a3e57941b6d0af25c8e3714b90d6f2a41c5e807396ba2d5f10c84e7",
"minOrderSize": "1000000",
"maxOrderSize": null,
"tickSize": "10000",
"makerFeeBps": 2,
"takerFeeBps": 8,
"mmMakerRebateBps": null,
"allowImport": true,
"allowSharedLiquidity": true,
"tradingMode": "CONTINUOUS",
"underlyingIdentifier": null,
"baseDecimals": null,
"quoteDecimals": null,
"settlementOperator": null,
"priceRefEnabled": true,
"priceRefMode": "EXTERNAL_FEED",
"priceRefFeedUrl": "https://feeds.example.com/xau",
"priceRefFeedHeaders": null,
"priceRefFeedHeadersSet": false,
"priceRefFeedPath": "data.price",
"priceRefEnforcement": "1MIN",
"priceRefSpreadBps": 100,
"priceRefLastPrice": "2412.55",
"priceRefLastUpdated": "2025-06-15T11:59:30.000Z",
"priceRefHaltOnStale": true,
"priceRefStaleTolerance": 300,
"priceRefCircuitBreakerBps": 800,
"createdAt": "2025-06-01T09:00:00.000Z",
"updatedAt": "2025-06-15T11:59:30.000Z"
}
}
Returns the stored record for a single book: its pair, status, sizing rules, fees, fungibility class, and price reference configuration.
Books you own and books you have imported both resolve. A book that is neither, or whose token type is not a commodity token, returns
ORDER_BOOK_NOT_FOUND rather than disclosing that it exists.
On a book you imported, the owner’s price feed configuration is left out: priceRefFeedUrl, priceRefFeedHeaders, priceRefFeedPath and priceRefFeedHeadersSet are not present.
Path Parameters
Response Fields
Show child attributes
Show child attributes
curl "https://api.trusset.org/orderbooks/commodities/api/order-books/clx_ob_comm_001" \
-H "X-API-Key: trusset_your_key_here"
const res = await fetch(
`https://api.trusset.org/orderbooks/commodities/api/order-books/${orderBookId}`,
{ headers: { 'X-API-Key': 'trusset_your_key_here' } }
);
const { data } = await res.json();
console.log(data.symbol, data.cfid ?? 'unpooled');
{
"success": true,
"data": {
"id": "clx_ob_comm_001",
"instanceId": "inst_abc123",
"tokenAddress": "0xd8f3ba9de5b7b83f66d1a7b1ad96c1a64b811ff9",
"quoteTokenAddress": "0x98ad0ca091552e23c564b41c74282e5343d03e8a",
"name": "Allocated Gold 999.9",
"symbol": "XAUA",
"status": "ACTIVE",
"tokenType": "LIGHT_TOKEN",
"settlementMode": "ON_CHAIN",
"custodyContract": "0xf3dac9cf19da1c95a80de890e200bc86e0c6f2da",
"cfid": "0x6b1f0d2c8a3e57941b6d0af25c8e3714b90d6f2a41c5e807396ba2d5f10c84e7",
"minOrderSize": "1000000",
"maxOrderSize": null,
"tickSize": "10000",
"makerFeeBps": 2,
"takerFeeBps": 8,
"mmMakerRebateBps": null,
"allowImport": true,
"allowSharedLiquidity": true,
"tradingMode": "CONTINUOUS",
"underlyingIdentifier": null,
"baseDecimals": null,
"quoteDecimals": null,
"settlementOperator": null,
"priceRefEnabled": true,
"priceRefMode": "EXTERNAL_FEED",
"priceRefFeedUrl": "https://feeds.example.com/xau",
"priceRefFeedHeaders": null,
"priceRefFeedHeadersSet": false,
"priceRefFeedPath": "data.price",
"priceRefEnforcement": "1MIN",
"priceRefSpreadBps": 100,
"priceRefLastPrice": "2412.55",
"priceRefLastUpdated": "2025-06-15T11:59:30.000Z",
"priceRefHaltOnStale": true,
"priceRefStaleTolerance": 300,
"priceRefCircuitBreakerBps": 800,
"createdAt": "2025-06-01T09:00:00.000Z",
"updatedAt": "2025-06-15T11:59:30.000Z"
}
}
Error Codes
| Code | HTTP | Cause |
|---|---|---|
ORDER_BOOK_NOT_FOUND | 404 | No such commodity book on this instance, and not imported |
SERVICE_NOT_ENABLED | 403 | The Trading service is not enabled on this instance |
⌘I
curl "https://api.trusset.org/orderbooks/commodities/api/order-books/clx_ob_comm_001" \
-H "X-API-Key: trusset_your_key_here"
const res = await fetch(
`https://api.trusset.org/orderbooks/commodities/api/order-books/${orderBookId}`,
{ headers: { 'X-API-Key': 'trusset_your_key_here' } }
);
const { data } = await res.json();
console.log(data.symbol, data.cfid ?? 'unpooled');
{
"success": true,
"data": {
"id": "clx_ob_comm_001",
"instanceId": "inst_abc123",
"tokenAddress": "0xd8f3ba9de5b7b83f66d1a7b1ad96c1a64b811ff9",
"quoteTokenAddress": "0x98ad0ca091552e23c564b41c74282e5343d03e8a",
"name": "Allocated Gold 999.9",
"symbol": "XAUA",
"status": "ACTIVE",
"tokenType": "LIGHT_TOKEN",
"settlementMode": "ON_CHAIN",
"custodyContract": "0xf3dac9cf19da1c95a80de890e200bc86e0c6f2da",
"cfid": "0x6b1f0d2c8a3e57941b6d0af25c8e3714b90d6f2a41c5e807396ba2d5f10c84e7",
"minOrderSize": "1000000",
"maxOrderSize": null,
"tickSize": "10000",
"makerFeeBps": 2,
"takerFeeBps": 8,
"mmMakerRebateBps": null,
"allowImport": true,
"allowSharedLiquidity": true,
"tradingMode": "CONTINUOUS",
"underlyingIdentifier": null,
"baseDecimals": null,
"quoteDecimals": null,
"settlementOperator": null,
"priceRefEnabled": true,
"priceRefMode": "EXTERNAL_FEED",
"priceRefFeedUrl": "https://feeds.example.com/xau",
"priceRefFeedHeaders": null,
"priceRefFeedHeadersSet": false,
"priceRefFeedPath": "data.price",
"priceRefEnforcement": "1MIN",
"priceRefSpreadBps": 100,
"priceRefLastPrice": "2412.55",
"priceRefLastUpdated": "2025-06-15T11:59:30.000Z",
"priceRefHaltOnStale": true,
"priceRefStaleTolerance": 300,
"priceRefCircuitBreakerBps": 800,
"createdAt": "2025-06-01T09:00:00.000Z",
"updatedAt": "2025-06-15T11:59:30.000Z"
}
}
