Markets
Get Nominations
Read the candidates nominated to become a market lender of record
GET
/
lending-external-securities
/
api
/
markets
/
{marketId}
/
nominations
curl "https://api.trusset.org/lending-external-securities/api/markets/{marketId}/nominations" \
-H "X-API-Key: trusset_your_key_here"
const res = await fetch(
`https://api.trusset.org/lending-external-securities/api/markets/${marketId}/nominations`,
{ headers: { 'X-API-Key': 'trusset_your_key_here' } }
);
const { data } = await res.json();
if (data.seekingCurator) {
showPendingBanner(data.candidates);
}
{
"success": true,
"data": {
"candidates": [
"0x4e91a7c05d3b62f18a0c94e7db2358f1c60a4e93",
"0xb27d0f6a91c458e307b2d4f8916ac05e73128b64"
],
"curator": null,
"seekingCurator": true,
"realizationMode": "UNDECLARED"
}
}
{
"success": true,
"data": {
"candidates": [
"0x4e91a7c05d3b62f18a0c94e7db2358f1c60a4e93",
"0xb27d0f6a91c458e307b2d4f8916ac05e73128b64"
],
"curator": "0x4e91a7c05d3b62f18a0c94e7db2358f1c60a4e93",
"seekingCurator": false,
"realizationMode": "EXCHANGE_SALE"
}
}
Returns the addresses nominated at deployment to take this market’s lender-of-record role, together with whether the role has been taken and on what terms. See Lender of record.
Use it to tell an inert market apart from a live one before pointing borrowers or liquidity providers at it. While
seekingCurator is true, opening a loan and providing liquidity are refused with 409 MARKET_PENDING_CURATOR.
Path Parameters
string
required
Market ID.
Response Fields
object
Show child attributes
Show child attributes
array
Nominated addresses, lowercased and deduplicated. Empty when the factory could not be read or the market predates the lender-of-record model.
string
Address that holds the lender-of-record role, or null while the market is still seeking one.
boolean
Whether the market is still seeking a lender of record.
string
How seized collateral is realized once the role is taken.
EXCHANGE_SALE, ISSUER_REDEMPTION, AUCTION, or UNDECLARED before adoption. Null when the market records none.curl "https://api.trusset.org/lending-external-securities/api/markets/{marketId}/nominations" \
-H "X-API-Key: trusset_your_key_here"
const res = await fetch(
`https://api.trusset.org/lending-external-securities/api/markets/${marketId}/nominations`,
{ headers: { 'X-API-Key': 'trusset_your_key_here' } }
);
const { data } = await res.json();
if (data.seekingCurator) {
showPendingBanner(data.candidates);
}
{
"success": true,
"data": {
"candidates": [
"0x4e91a7c05d3b62f18a0c94e7db2358f1c60a4e93",
"0xb27d0f6a91c458e307b2d4f8916ac05e73128b64"
],
"curator": null,
"seekingCurator": true,
"realizationMode": "UNDECLARED"
}
}
{
"success": true,
"data": {
"candidates": [
"0x4e91a7c05d3b62f18a0c94e7db2358f1c60a4e93",
"0xb27d0f6a91c458e307b2d4f8916ac05e73128b64"
],
"curator": "0x4e91a7c05d3b62f18a0c94e7db2358f1c60a4e93",
"seekingCurator": false,
"realizationMode": "EXCHANGE_SALE"
}
}
Error Codes
| Code | HTTP | Cause |
|---|---|---|
NO_MARKET_ADDRESS | 400 | The market has no on-chain address |
MARKET_NOT_FOUND | 404 | No market with this ID on your instance |
⌘I
curl "https://api.trusset.org/lending-external-securities/api/markets/{marketId}/nominations" \
-H "X-API-Key: trusset_your_key_here"
const res = await fetch(
`https://api.trusset.org/lending-external-securities/api/markets/${marketId}/nominations`,
{ headers: { 'X-API-Key': 'trusset_your_key_here' } }
);
const { data } = await res.json();
if (data.seekingCurator) {
showPendingBanner(data.candidates);
}
{
"success": true,
"data": {
"candidates": [
"0x4e91a7c05d3b62f18a0c94e7db2358f1c60a4e93",
"0xb27d0f6a91c458e307b2d4f8916ac05e73128b64"
],
"curator": null,
"seekingCurator": true,
"realizationMode": "UNDECLARED"
}
}
{
"success": true,
"data": {
"candidates": [
"0x4e91a7c05d3b62f18a0c94e7db2358f1c60a4e93",
"0xb27d0f6a91c458e307b2d4f8916ac05e73128b64"
],
"curator": "0x4e91a7c05d3b62f18a0c94e7db2358f1c60a4e93",
"seekingCurator": false,
"realizationMode": "EXCHANGE_SALE"
}
}
