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
The bid transaction is returned alone, with no approval step. The bidder must already have approved the market contract to spend the borrow asset, otherwise the bid reverts.
The price is read at execution, not at quote time, and it falls continuously. The amount actually paid is therefore at or below what you computed from currentPrice a moment earlier, never above. Size the approval against the quoted price to leave headroom.