Skip to main content
GET
Returns the market’s live config struct: risk parameters, the insurance-fund rate, supply caps, and auction settings. These are the values the contract enforces. The read also corrects the market record wherever it disagrees, on every instance’s record of the same market. Two things a market operator often looks for are not in this struct. maxPriceAge, the staleness window, belongs to the oracle and is on Get Oracle Status. The rate mode, the term offering and the reserve ratio belong to the interest model and the market’s own storage, and are on Get Market Metrics.

Path Parameters

string
required
The market’s record ID, as id on List Markets, not its contract address. See Market IDs.

Response Fields

object
The endpoint returns data: null when the contract read fails. It does not return an error status in that case, so check for null before destructuring.

Reading the Parameters Together

A loan opens at up to collateralFactor and becomes liquidatable when its loan to value crosses liquidationThreshold. The gap between the two is the borrower’s buffer. On liquidation, at most closeFactor of the debt is repaid in a single call, and liquidationPenalty is charged on the repaid portion. A new market starts at a 75 percent collateral factor, an 85 percent liquidation threshold, a 5 percent penalty and a 50 percent close factor. It has no caps and no insurance-fund rate, and its minimum borrow is 100 whole units of the borrow asset. Dutch auctions start off, set to run one hour from a 130 percent start premium down to a 95 percent floor, or 98 percent on a MARKET-priced market. Update Market Config changes these within the contract’s bounds.

Error Codes