Dutch Auctions
Get Auction
Retrieve one Dutch auction by ID from the market auction venue
GET
/
lending-external-securities-v2
/
api
/
liquidations
/
{marketId}
/
auctions
/
{auctionId}
curl "https://api.trusset.org/lending-external-securities-v2/api/liquidations/{marketId}/auctions/3" \
-H "X-API-Key: trusset_your_key_here"
const res = await fetch(
`https://api.trusset.org/lending-external-securities-v2/api/liquidations/${marketId}/auctions/3`,
{ headers: { 'X-API-Key': 'trusset_your_key_here' } }
);
const { success, data, error } = await res.json();
{
"success": true,
"data": {
"auctionId": "3",
"loanId": "7",
"borrower": "0x7d2e9B4c1A8f03e6B5D9c2A7F4e18B06c3D5a92F",
"collateralRemaining": "120.0",
"debtRemaining": "11540.1",
"currentPrice": "112.18",
"endTime": 1718449200,
"active": true,
"expired": false,
"biddable": true,
"settleable": false,
"phase": "RUNNING",
"venueAddress": "0x5c3e8a91d2f04b7e6a1c9d38f0b2e47a6d15c8e3"
}
}
{
"success": true,
"data": {
"auctionId": "1",
"loanId": "4",
"borrower": "0x7d2e9B4c1A8f03e6B5D9c2A7F4e18B06c3D5a92F",
"collateralRemaining": "0.0",
"debtRemaining": "0.0",
"currentPrice": "0.0",
"endTime": 1718362800,
"active": false,
"expired": false,
"biddable": false,
"settleable": false,
"phase": "CLOSED",
"venueAddress": "0x5c3e8a91d2f04b7e6a1c9d38f0b2e47a6d15c8e3"
}
}
{
"success": false,
"error": {
"code": "AUCTION_NOT_FOUND",
"message": "Auction not found"
}
}
Returns a single auction with its live price, read from the market’s auction venue. Unlike List Active Auctions, this also returns closed auctions, which carry
active: false and phase: "CLOSED". An auction past its end time that nobody has settled is not closed: it keeps active: true with phase: "EXPIRED".
Auction IDs count from 1 on each venue. This reads only the venue the market names now, so after the market admin replaces a venue, the old venue’s auctions are no longer reachable here.
Path Parameters
string
required
string
required
Auction ID on the market’s venue. A positive integer.
Response Fields
object
Show child attributes
Show child attributes
string
Auction ID, echoed from the path.
string
Loan whose collateral is on sale.
string
Borrower whose collateral is on sale, in the checksummed form the chain returns.
string
Collateral still for sale, in collateral token units. Zero once the auction is closed.
string
Debt the auction has not yet discharged, in borrow asset units.
string
Price per whole collateral unit, in borrow asset units, read on this request. The floor price after the end time, and
0.0 once the auction is closed.integer
Unix seconds when bidding closes.
boolean
Whether the venue still holds the auction open. It turns
false when the last unit sells or when the auction is settled after expiry.boolean
true while the auction is open and endTime has passed.boolean
true while the auction is open and running.boolean
true when Settle Expired Auction accepts the auction.string
RUNNING, EXPIRED or CLOSED. Computed against the API server’s clock, while the venue judges by the block timestamp.string
The market’s auction venue, lowercased. This is the contract the auction lives on, and the one a bid or a settlement targets.
AUCTION_NOT_FOUND does not prove the auction never existed. The same 404 answers an ID above the number of auctions the venue has created, a market with no venue wired, and a venue that could not be read. Check Get Auction Module before concluding an ID is wrong.curl "https://api.trusset.org/lending-external-securities-v2/api/liquidations/{marketId}/auctions/3" \
-H "X-API-Key: trusset_your_key_here"
const res = await fetch(
`https://api.trusset.org/lending-external-securities-v2/api/liquidations/${marketId}/auctions/3`,
{ headers: { 'X-API-Key': 'trusset_your_key_here' } }
);
const { success, data, error } = await res.json();
{
"success": true,
"data": {
"auctionId": "3",
"loanId": "7",
"borrower": "0x7d2e9B4c1A8f03e6B5D9c2A7F4e18B06c3D5a92F",
"collateralRemaining": "120.0",
"debtRemaining": "11540.1",
"currentPrice": "112.18",
"endTime": 1718449200,
"active": true,
"expired": false,
"biddable": true,
"settleable": false,
"phase": "RUNNING",
"venueAddress": "0x5c3e8a91d2f04b7e6a1c9d38f0b2e47a6d15c8e3"
}
}
{
"success": true,
"data": {
"auctionId": "1",
"loanId": "4",
"borrower": "0x7d2e9B4c1A8f03e6B5D9c2A7F4e18B06c3D5a92F",
"collateralRemaining": "0.0",
"debtRemaining": "0.0",
"currentPrice": "0.0",
"endTime": 1718362800,
"active": false,
"expired": false,
"biddable": false,
"settleable": false,
"phase": "CLOSED",
"venueAddress": "0x5c3e8a91d2f04b7e6a1c9d38f0b2e47a6d15c8e3"
}
}
{
"success": false,
"error": {
"code": "AUCTION_NOT_FOUND",
"message": "Auction not found"
}
}
Error Codes
| Code | HTTP | Cause |
|---|---|---|
MISSING_MARKET_ID | 400 | The market ID is longer than 100 characters |
NO_MARKET_ADDRESS | 400 | The market has no on-chain address recorded |
AUCTION_NOT_FOUND | 404 | The ID is not a positive integer within the number of auctions the venue has created, the market has no venue wired, or the venue could not be read |
MARKET_NOT_FOUND | 404 | No market with this ID on your instance |
⌘I
curl "https://api.trusset.org/lending-external-securities-v2/api/liquidations/{marketId}/auctions/3" \
-H "X-API-Key: trusset_your_key_here"
const res = await fetch(
`https://api.trusset.org/lending-external-securities-v2/api/liquidations/${marketId}/auctions/3`,
{ headers: { 'X-API-Key': 'trusset_your_key_here' } }
);
const { success, data, error } = await res.json();
{
"success": true,
"data": {
"auctionId": "3",
"loanId": "7",
"borrower": "0x7d2e9B4c1A8f03e6B5D9c2A7F4e18B06c3D5a92F",
"collateralRemaining": "120.0",
"debtRemaining": "11540.1",
"currentPrice": "112.18",
"endTime": 1718449200,
"active": true,
"expired": false,
"biddable": true,
"settleable": false,
"phase": "RUNNING",
"venueAddress": "0x5c3e8a91d2f04b7e6a1c9d38f0b2e47a6d15c8e3"
}
}
{
"success": true,
"data": {
"auctionId": "1",
"loanId": "4",
"borrower": "0x7d2e9B4c1A8f03e6B5D9c2A7F4e18B06c3D5a92F",
"collateralRemaining": "0.0",
"debtRemaining": "0.0",
"currentPrice": "0.0",
"endTime": 1718362800,
"active": false,
"expired": false,
"biddable": false,
"settleable": false,
"phase": "CLOSED",
"venueAddress": "0x5c3e8a91d2f04b7e6a1c9d38f0b2e47a6d15c8e3"
}
}
{
"success": false,
"error": {
"code": "AUCTION_NOT_FOUND",
"message": "Auction not found"
}
}
