Skip to main content
POST
Purchases collateral from an open auction. The bidder pays in the market’s borrow asset and receives the security tokens. Cost is the collateral quantity multiplied by the auction’s live declining price. Bids can be partial. Buy any quantity up to collateralRemaining, and the auction stays open for the rest.
The buyer receives an ERC-3643 security token, so they must satisfy its compliance rules. A bid from an unverified address reverts on transfer. Confirm the bidder is a verified holder on the token’s identity registry before submitting.

Path Parameters

string
required
Market ID.

Body Parameters

integer
required
Auction ID. Must be a positive integer sent as a JSON number.
string
required
Collateral to purchase, as a decimal string in collateral token units. Must be greater than zero.
string
Hash of the transaction you broadcast for this operation. Send it to confirm the transaction and record the result. Omit it to receive the calldata.

Response Fields

object
A bid larger than the collateral left is clamped by the contract to what remains, and the API prices the clamped amount. collateralAmount and estimatedCost in the response are therefore what the bid will actually cost, which can be less than what you asked for.
The price is read at execution, not at quote time, and it falls continuously. The amount actually paid is therefore at or below estimatedCost, never above.

Error Codes