Skip to main content
POST
Writes the market’s full config struct. Every field is required on every call, so read the current values with Get Market Config first and send them back with your changes applied. Partial updates are not supported: an omitted field fails validation rather than retaining its current value. Requires ISSUER_ROLE on the market contract.
Changing liquidationThreshold moves the point at which existing loans become liquidatable. Raising it immediately puts loans at risk that were healthy a moment earlier. The contract caps each change at 10 percent per call.

Path Parameters

string
required
Market ID.

Body Parameters

object
required
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.
maxPriceAge is not part of this struct. It is an oracle setting, not a market setting, and it is read from Get Oracle Status rather than written here. It still interacts directly with your NAV publication cadence. A fund that publishes NAV daily needs maxPriceAge above 86400 seconds, or every loan action will revert against a stale price between publications.

Bounds the contract adds

The per-field ranges above are what the request schema accepts. The contract is stricter on four of them, and the API mirrors those rules so no signature is asked for a tuple that would revert with a bare selector. A market that runs loan terms adds one more: liquidationPenalty cannot drop below the market’s own termPenalty. Lower the term penalty first. A market whose priceSource is MARKET cannot run Dutch auctions at all, and needs an auctionMinPremium of at least 9800. Turning auctions on there is refused with AUCTION_UNSUPPORTED_PRICE_SOURCE.
Turning useDutchAuction off withdraws the market from the public feed in the same write. Auctions are what makes a realization publicly actionable, so a market without them would otherwise keep advertising a participation route that no longer exists. The confirm response reports it as publicListingWithdrawn.

Response Fields

object

Error Codes