The risk configuration of a lending protocol's markets
get_lending_market_configThe risk configuration of every asset of a lending protocol's markets, or of one with asset, as the protocol's last configuration events set it — loan-to-value, liquidation threshold, reserve factor and liquidation protocol fee in basis points, the liquidation bonus in basis points over the debt repaid (500 = 5 %), supply and borrow caps in whole tokens (absent means no cap), whether the asset is active, frozen or paused, its price oracle, its receipt and debt token contracts and rate strategy, and the block of its last configuration change. protocol must be a covered one (aave_v3 today; another is refused, protocol_invalid, with the covered list), and coveredMarkets names the markets read. A value is absent when the asset's initialization lies outside the history TraceFast reads. Use it to read a lending market's parameters. Not for one token's amounts and rates: use get_token_lending_markets.
Arguments: protocol; optional asset. chain_id defaults to 1 (Ethereum mainnet, the only chain served). Freshness: the current state; meta.asOfBlock is the block the answer is valid at. meta.cached is true when the answer came from the TraceFast response cache (refreshed within minutes); meta.timestamp is when it was produced, in Unix milliseconds.
Minimum plan: Intelligence; the Investigation plan includes it. Rate class: core. Documentation: https://docs.tracefast.xyz/api/lending-config
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"protocol": "<protocol>"
},
"name": "get_lending_market_config"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| asset | No | Only this asset (`0x` + 40 hex). | |
| chain_id | No | Chain id. Only 1 (Ethereum mainnet) is served; the default. | |
| protocol | Yes | A covered protocol, for example `aave_v3`; another value is refused (`protocol_invalid`) with the covered list. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||