Markets
List Register Markets
The lending markets this instance imported as asset register
GET
/
asset-registers
/
api
/
markets
curl "https://api.trusset.org/asset-registers/api/markets" \
-H "X-API-Key: trusset_your_key_here"
const res = await fetch('https://api.trusset.org/asset-registers/api/markets', {
headers: { 'X-API-Key': 'trusset_your_key_here' }
});
const { data } = await res.json();
const standing = data.markets.reduce((sum, market) => sum + (market.activePledges ?? 0), 0);
{
"success": true,
"data": {
"markets": [
{
"marketAddress": "0x70a0e25c7b768b87e658348b3b577678a173e038",
"tokenAddress": "0x39478e924930d7fed1fa3803ecf9b0ddc08ce512",
"adapterAddress": "0x5c1d8e3f0a2b47c6913d0e8a7f24b6c5d9031e7a",
"collateralTokenName": "ACME Senior Bond 2030",
"collateralTokenSymbol": "ACME30",
"collateralTokenIsin": "DE000A3E5XK7",
"collateralDecimals": 18,
"collateralMode": "FREEZE",
"borrowAssetSymbol": "EURe",
"lenderOfRecord": "0x4e91a7c05d3b62f18a0c94e7db2358f1c60a4e93",
"seekingLender": false,
"collateralAgent": "0x8b17e4d90c3a25f6e1d09b7c4a3f52e86d1c0b94",
"marketActive": true,
"registerKind": "OFF_CHAIN",
"registerKindLabel": "Off-chain register",
"issuer": { "companyName": "ACME Industrial AG", "instanceName": "ACME Production" },
"importedAt": "2026-11-18T10:31:07.000Z",
"activePledges": 3
}
]
},
"error": null,
"metadata": {
"timestamp": "2026-11-18T12:05:44.000Z",
"requestId": "550e8400-e29b-41d4-a716-446655440000",
"instanceId": "cmwk2r8v10003l80f4t6h9d2e"
}
}
Returns the lending markets this instance imported as the asset register of their collateral token, most recently imported first. These are the markets whose pledge record this instance can read with List Pledges and whose events reach its pledge webhooks.
A market leaves this list when this instance declines it, and when its deployer clears or replaces the register for the token. The list holds at most 500 markets.
Only an account Trusset approved as an asset register can call this endpoint. Any other account is refused with
403 REGISTER_NOT_APPROVED.
Response Fields
Show child attributes
Show child attributes
The fields of a queue item without
assignedAt, plus the two below. marketActive can read false here: an imported market stays listed after it was deactivated.Show child attributes
Show child attributes
Pledges the index holds as standing for this market: not ended, with an amount above zero. The index advances when the market is scanned, so a new lock can take a few minutes to count.
null when the market’s pledge record has not been read from the chain yet, or when the count could not be read. Read List Pledges for the market to start its record.curl "https://api.trusset.org/asset-registers/api/markets" \
-H "X-API-Key: trusset_your_key_here"
const res = await fetch('https://api.trusset.org/asset-registers/api/markets', {
headers: { 'X-API-Key': 'trusset_your_key_here' }
});
const { data } = await res.json();
const standing = data.markets.reduce((sum, market) => sum + (market.activePledges ?? 0), 0);
{
"success": true,
"data": {
"markets": [
{
"marketAddress": "0x70a0e25c7b768b87e658348b3b577678a173e038",
"tokenAddress": "0x39478e924930d7fed1fa3803ecf9b0ddc08ce512",
"adapterAddress": "0x5c1d8e3f0a2b47c6913d0e8a7f24b6c5d9031e7a",
"collateralTokenName": "ACME Senior Bond 2030",
"collateralTokenSymbol": "ACME30",
"collateralTokenIsin": "DE000A3E5XK7",
"collateralDecimals": 18,
"collateralMode": "FREEZE",
"borrowAssetSymbol": "EURe",
"lenderOfRecord": "0x4e91a7c05d3b62f18a0c94e7db2358f1c60a4e93",
"seekingLender": false,
"collateralAgent": "0x8b17e4d90c3a25f6e1d09b7c4a3f52e86d1c0b94",
"marketActive": true,
"registerKind": "OFF_CHAIN",
"registerKindLabel": "Off-chain register",
"issuer": { "companyName": "ACME Industrial AG", "instanceName": "ACME Production" },
"importedAt": "2026-11-18T10:31:07.000Z",
"activePledges": 3
}
]
},
"error": null,
"metadata": {
"timestamp": "2026-11-18T12:05:44.000Z",
"requestId": "550e8400-e29b-41d4-a716-446655440000",
"instanceId": "cmwk2r8v10003l80f4t6h9d2e"
}
}
Error Codes
| Code | HTTP | Cause |
|---|---|---|
AUTH_REQUIRED | 401 | No X-API-Key header |
AUTH_FAILED | 401 | The key is malformed, unknown, expired, or its instance is archived |
CREDIT_LIMIT_EXCEEDED | 402 | The instance’s monthly credit allowance is exhausted |
ACCOUNT_FROZEN | 403 | The account behind the key is suspended |
REGISTER_NOT_APPROVED | 403 | Trusset has not approved this account as an asset register |
RATE_LIMIT_EXCEEDED | 429 | More than 100 reads in the minute |
REGISTER_MARKETS_FAILED | 500 | The list could not be read |
⌘I
curl "https://api.trusset.org/asset-registers/api/markets" \
-H "X-API-Key: trusset_your_key_here"
const res = await fetch('https://api.trusset.org/asset-registers/api/markets', {
headers: { 'X-API-Key': 'trusset_your_key_here' }
});
const { data } = await res.json();
const standing = data.markets.reduce((sum, market) => sum + (market.activePledges ?? 0), 0);
{
"success": true,
"data": {
"markets": [
{
"marketAddress": "0x70a0e25c7b768b87e658348b3b577678a173e038",
"tokenAddress": "0x39478e924930d7fed1fa3803ecf9b0ddc08ce512",
"adapterAddress": "0x5c1d8e3f0a2b47c6913d0e8a7f24b6c5d9031e7a",
"collateralTokenName": "ACME Senior Bond 2030",
"collateralTokenSymbol": "ACME30",
"collateralTokenIsin": "DE000A3E5XK7",
"collateralDecimals": 18,
"collateralMode": "FREEZE",
"borrowAssetSymbol": "EURe",
"lenderOfRecord": "0x4e91a7c05d3b62f18a0c94e7db2358f1c60a4e93",
"seekingLender": false,
"collateralAgent": "0x8b17e4d90c3a25f6e1d09b7c4a3f52e86d1c0b94",
"marketActive": true,
"registerKind": "OFF_CHAIN",
"registerKindLabel": "Off-chain register",
"issuer": { "companyName": "ACME Industrial AG", "instanceName": "ACME Production" },
"importedAt": "2026-11-18T10:31:07.000Z",
"activePledges": 3
}
]
},
"error": null,
"metadata": {
"timestamp": "2026-11-18T12:05:44.000Z",
"requestId": "550e8400-e29b-41d4-a716-446655440000",
"instanceId": "cmwk2r8v10003l80f4t6h9d2e"
}
}
