Order Books
Remove Import
Detach an imported commodity book from your venue
DELETE
/
orderbooks
/
commodities
/
api
/
imports
/
{importId}
curl -X DELETE "https://api.trusset.org/orderbooks/commodities/api/imports/clx_import_031" \
-H "X-API-Key: trusset_your_key_here"
const res = await fetch(
`https://api.trusset.org/orderbooks/commodities/api/imports/${importId}`,
{ method: 'DELETE', headers: { 'X-API-Key': 'trusset_your_key_here' } }
);
const { data } = await res.json();
{
"success": true,
"data": {
"id": "clx_import_031",
"instanceId": "inst_abc123",
"orderBookId": "clx_ob_comm_055",
"active": false,
"updatedAt": "2025-06-15T12:10:00.000Z"
}
}
Deactivates an import link. The book stops appearing in List Order Books and stops resolving on the reads scoped to books you can reach.
Nothing is deleted. The link row is kept with
active: false, so trade history stays intact and re-importing the same book reactivates this record rather than creating a new one.
Path Parameters
string
required
Import ID, from Import Order Book or the
_importId field on an imported book. This is the import record’s ID, not the order book’s.Response Fields
object
curl -X DELETE "https://api.trusset.org/orderbooks/commodities/api/imports/clx_import_031" \
-H "X-API-Key: trusset_your_key_here"
const res = await fetch(
`https://api.trusset.org/orderbooks/commodities/api/imports/${importId}`,
{ method: 'DELETE', headers: { 'X-API-Key': 'trusset_your_key_here' } }
);
const { data } = await res.json();
{
"success": true,
"data": {
"id": "clx_import_031",
"instanceId": "inst_abc123",
"orderBookId": "clx_ob_comm_055",
"active": false,
"updatedAt": "2025-06-15T12:10:00.000Z"
}
}
Error Codes
| Code | HTTP | Cause |
|---|---|---|
INVALID_PARAM | 400 | importId is missing or longer than 100 characters |
IMPORT_NOT_FOUND | 404 | No import with that ID on your instance |
SERVICE_NOT_ENABLED | 403 | The Trading service is not enabled on this instance |
⌘I
curl -X DELETE "https://api.trusset.org/orderbooks/commodities/api/imports/clx_import_031" \
-H "X-API-Key: trusset_your_key_here"
const res = await fetch(
`https://api.trusset.org/orderbooks/commodities/api/imports/${importId}`,
{ method: 'DELETE', headers: { 'X-API-Key': 'trusset_your_key_here' } }
);
const { data } = await res.json();
{
"success": true,
"data": {
"id": "clx_import_031",
"instanceId": "inst_abc123",
"orderBookId": "clx_ob_comm_055",
"active": false,
"updatedAt": "2025-06-15T12:10:00.000Z"
}
}
