Markets
Get Market Config
Read the on-chain risk parameters for a market
GET
Returns the market’s live
config struct: risk parameters, fee rates, supply caps, and auction settings. These are the values the contract enforces, not the values cached on the market record.
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
Market ID.
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 tocollateralFactor 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.
