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.
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.
