> For the complete documentation index, see [llms.txt](https://docs.kaiko.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.kaiko.com/rest-api/defi-lending-and-borrowing-markets/market-data/lending-market-snapshots/market-snapshots.md). Agents can also search and read this documentation through its [MCP server](https://docs.kaiko.com/~gitbook/mcp).

# Market snapshots

{% hint style="info" %}

### This data is included in the following Kaiko packages:

* Level 1 & Level 2 Data \[Level 1 Tick-Level]
* Level 1 & Level 2 Data \[Level 2 Aggregations]
* Level 1 & Level 2 Data \[Level 2 Tick-Level]

*Subscriptions with "DeFi Lending & Borrowing" as the market type.*
{% endhint %}

## What is this endpoint for?

> Market snapshots give the state of each market of a lending protocol: available liquidity, total deposited and borrowed, supply and borrow rates, and risk parameters such as loan-to-value and liquidation threshold. Amounts are in token units and in US dollars at the protocol's own oracle price. Read the latest state, the state at any past point, or a series at a regular interval.

```json
{"openapi":"3.1.1","info":{"title":"Kaiko API","version":"2026-10-01"},"tags":[{"name":"Lending","description":"Lending and borrowing protocols (Aave, Compound, Maker): the on-chain events of their markets, read from the protocols' own contracts."}],"servers":[{"url":"https://api.kaiko.io","description":"Production"}],"security":[{"ApiKeyAuth":[]}],"components":{"securitySchemes":{"ApiKeyAuth":{"type":"apiKey","in":"header","name":"X-Api-Key","description":"Your Kaiko API key. Sent on every request. Never in a query parameter.\n"}},"parameters":{"BlockchainQuery":{"name":"blockchain","in":"query","required":true,"description":"Kaiko blockchain code. An unknown chain is a 404 `unsupported_blockchain`.","schema":{"type":"string","pattern":"^[a-z0-9_]+$"}},"LendingProtocolRequiredQuery":{"name":"protocol","in":"query","required":true,"description":"Kaiko protocol code: `aav3` (Aave v3), `aav2` (Aave v2), `cmpd` (Compound v2), `cmp3` (Compound v3) or `mkr` (Maker). An unknown protocol, or one that does not run on `blockchain`, returns 404 `unknown_protocol`. `aav3` runs on `ethereum`, `polygon`, `avalanche`, `arbitrum` and `optimism`; `aav2` on `ethereum`, `polygon` and `avalanche`; `cmpd`, `cmp3` and `mkr` on `ethereum`. `/defi/lending/protocol-summaries` lists the protocols of a blockchain.","schema":{"type":"string","pattern":"^[a-z0-9]{1,16}$"}},"LendingAssetsQuery":{"name":"assets","in":"query","required":false,"description":"Keep the rows whose underlying asset is one of these, comma-separated. Each entry is a token symbol as the rows carry it (`weth`), or a 0x contract address, which is exact where a symbol can be ambiguous. Matched case-insensitively.","style":"form","explode":false,"schema":{"type":"array","minItems":1,"maxItems":100,"items":{"type":"string","pattern":"^[A-Za-z0-9._-]{1,64}$"}}},"LendingSnapshotMarketIdsQuery":{"name":"market_ids","in":"query","required":false,"description":"Keep the reserves of this market, as the rows carry it (`aave/v3/weth`), exact match. One market in this version: a list parameter, so that a higher maximum later is an additive change. A market with no reserve returns `data: []`. On MakerDAO, a market is a vault type (`maker/v2/eth-a`).","style":"form","explode":false,"schema":{"type":"array","minItems":1,"maxItems":1,"items":{"type":"string","pattern":"^[a-z0-9/._-]{1,128}$"}}},"LendingSnapshotAtTimeQuery":{"name":"at_time","in":"query","required":false,"description":"Read the state as of this instant: the last state at or before the last block at or before it. ISO 8601 UTC, millisecond precision. Not with `at_block`, a window or `interval` (400). Before the key's entitled history it returns 403, as it does for a key whose history does not cover the last 90 days (a known limit). An `at_time` at or after the newest block is resolved again on each page: a read paged past its first page may answer a newer block, so send `at_block` for a read that must stay on one block.","schema":{"type":"string","format":"date-time"}},"LendingSnapshotAtBlockQuery":{"name":"at_block","in":"query","required":false,"description":"Read the state as of this block: the last state at or before it. Not with `at_time`, a window or `interval` (400). A block above the newest one served reads the newest.","schema":{"type":"integer","format":"int64","minimum":1}},"StartTimeQuery":{"name":"start_time","in":"query","required":false,"description":"Inclusive start of the window, ISO 8601 UTC. The endpoint documents its precision and its default when omitted; a nanosecond endpoint accepts any precision from seconds to nanoseconds.\n","schema":{"type":"string","format":"date-time"}},"EndTimeQuery":{"name":"end_time","in":"query","required":false,"description":"Exclusive end of the window, ISO 8601 UTC, at the precision the endpoint documents. Defaults to now. Must be after `start_time`.\n","schema":{"type":"string","format":"date-time"}},"LendingSnapshotStartBlockQuery":{"name":"start_block","in":"query","required":false,"description":"Inclusive first block of a read without `interval`. Not with `start_time` (400), nor with `interval` (400): a grid is a time grid. The exception is a page resumed with `after_market_id` and `after_asset_address`, as `meta.next_url` builds it: it keeps `start_time` and adds this block, which then alone bounds the start.","schema":{"type":"integer","format":"int64","minimum":1}},"LendingSnapshotEndBlockQuery":{"name":"end_block","in":"query","required":false,"description":"Exclusive end block of a read without `interval`: the window stops before it, so it is at least 2 (block 0 is not served). Not with `end_time` (400), nor with `interval` (400). The exception is a page resumed with `after_market_id` and `after_asset_address`, as `meta.next_url` builds it: it keeps `end_time` and adds this block, which then alone bounds the end.","schema":{"type":"integer","format":"int64","minimum":2}},"LendingSnapshotIntervalQuery":{"name":"interval","in":"query","required":false,"description":"Read every reserve on a time grid: at `start_time`, then every `interval`, the state carried forward from its last change. Omitted, a window returns one row per recorded change.","schema":{"$ref":"#/components/schemas/LendingSnapshotInterval"}},"LiveQuery":{"name":"live","in":"query","required":false,"description":"Include the most recent blocks, which are not yet safe from re-organisation. Rows read that way can change or disappear on a later call.","schema":{"type":"boolean","default":false}},"LendingSnapshotSortQuery":{"name":"sort","in":"query","required":false,"description":"Order on the block (on the grid time with `interval`). Newest first by default. A latest or `at_*` read answers one block, ordered by market and asset whatever `sort` says.","schema":{"$ref":"#/components/schemas/Sort"}},"PageSizeQuery":{"name":"page_size","in":"query","required":false,"description":"Rows per page. A value above the maximum returns 400, never a silent cap. Endpoints needing other bounds define their own `PageSize<Resource>Query`.\n","schema":{"type":"integer","minimum":1,"maximum":1000,"default":100}},"LendingAfterMarketIdQuery":{"name":"after_market_id","in":"query","required":false,"description":"Resume point, with `after_asset_address`: the `market_id` of the last row served at the first block (or grid time) of the window. Copy it from `meta.next_url`, which also keeps the window's time bounds, so that the entitlement is checked on the same window as the first page. A time bound and a block bound on one side are accepted with it only. One without the other returns 400. Any `market_id` a row carries is accepted: it holds the token's own symbol, which can be outside ASCII.","schema":{"type":"string","minLength":1,"maxLength":128}},"LendingAfterReserveAssetQuery":{"name":"after_asset_address","in":"query","required":false,"description":"Resume point, with `after_market_id`: the `asset_address` of the last row served. Copy it from `meta.next_url`. One without the other returns 400.","schema":{"type":"string","pattern":"^0x[0-9a-fA-F]{40}$"}},"ApiVersionQuery":{"name":"api_version","in":"query","required":false,"description":"Contract version to serve, as a date. Each endpoint serves its newest version released on or before it, so one date pins the whole API. When omitted, the endpoint's oldest version still served is used, so breaking changes only reach clients that raise their date. Append `-preview` (`2027-02-01-preview`) to also be served preview versions, which carry no stability promise. A date in the future, or one resolving to a retired version, returns 400 `unsupported_api_version`. The version served is echoed in `meta.api_version`, and `meta.url` and `meta.next_url` always carry this parameter. No `default` here on purpose: it differs per endpoint, and the request validator would otherwise fill in one date for all of them.","schema":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}(-preview)?$"}}},"schemas":{"LendingSnapshotInterval":{"type":"string","description":"Grid step of a market-snapshots read.","enum":["1m","5m","15m","30m","1h","4h","1d","1w"]},"Sort":{"type":"string","enum":["asc","desc"],"default":"desc","description":"Order on the time axis."},"ListLendingMarketSnapshotsResponse":{"type":"object","description":"One page of `LendingMarketSnapshot` rows.","required":["data","meta"],"properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/LendingMarketSnapshot"}},"meta":{"$ref":"#/components/schemas/Meta"}}},"LendingMarketSnapshot":{"type":"object","description":"The state of one reserve (one asset of one market) of a lending protocol at one block. Unique on (`blockchain`, `protocol`, `market_id`, `asset_address`, `block_number`). Protocol-specific columns are `null` where the protocol does not report them. Column names are lending.v2's, decided with product on 2026-10-22: an exception to rule 11, so a concept can carry another name in a sibling dataset (the supply rate is `supply_rate` in market-snapshots, `lend_rate` in the metrics datasets and `current_liquidity_rate` in a position's supply leg).","required":["blockchain","protocol","protocol_name","protocol_version","market_id","block_number","timestamp","asset_symbol","asset_address","asset_decimals","receipt_symbol","receipt_address","receipt_decimals","available_liquidity","total_liquidity","total_borrowed","supply_rate","stable_borrow_rate","variable_borrow_rate","loan_to_value_ratio","liquidation_threshold_ratio","liquidation_bonus_ratio","reserve_factor_ratio","is_active","is_frozen","available_liquidity_usd","total_liquidity_usd","total_borrowed_usd","total_collateral_usd","cumulative_liquidations_usd","liquidity_index","variable_borrow_index","borrowing_enabled","usage_as_collateral_enabled","emode_category_id","metadata"],"properties":{"blockchain":{"type":"string","description":"Kaiko blockchain code."},"protocol":{"type":"string","description":"Kaiko protocol code (`aav3`, `aav2`, `cmpd`, `cmp3`, `mkr`)."},"protocol_name":{"type":"string","description":"Protocol family (`aave`, `compound`, `makerdao`)."},"protocol_version":{"type":"string","description":"Protocol version within its family (`v1`, `v2`, `v3`)."},"market_id":{"type":"string","description":"Market of the reserve, `<protocol>/<version>/<market>`, lowercase."},"block_number":{"type":"integer","format":"int64","description":"Block the state is read at: the reference block on a latest or `at_*` read, the grid block on an `interval` read, the block that recorded the change otherwise. The block the reserve last changed at is `metadata.observed_block_number` when it is earlier."},"timestamp":{"type":"string","format":"date-time","description":"Time of `block_number`; on an `interval` or `at_time` read, the grid or requested time. ISO 8601 UTC, millisecond precision; always whole seconds (`.000Z`). lending.v2 sent `datetime`, unix seconds."},"asset_symbol":{"type":["string","null"],"description":"Symbol of the underlying asset, lowercase, as the token currently names itself."},"asset_address":{"type":"string","description":"Contract address of the underlying asset, lowercase."},"asset_decimals":{"type":["integer","null"],"format":"int64","description":"Decimals of the underlying asset. `null` when the protocol does not report it for this reserve."},"receipt_symbol":{"type":["string","null"],"description":"Symbol of the receipt token (aToken, cToken), lowercase. `null` when the protocol issues none."},"receipt_address":{"type":["string","null"],"description":"Contract address of the receipt token, lowercase. `null` as `receipt_symbol`."},"receipt_decimals":{"type":["integer","null"],"format":"int64","description":"Decimals of the receipt token. `null` when `receipt_address` is."},"available_liquidity":{"type":["string","null"],"format":"decimal","pattern":"^-?(0|[1-9][0-9]*)(\\.[0-9]+)?$","description":"Cash the reserve holds, in units of the underlying (decimals applied); on Maker the debt-ceiling headroom in DAI. `null` when the protocol does not report it for this reserve."},"total_liquidity":{"type":["string","null"],"format":"decimal","pattern":"^-?(0|[1-9][0-9]*)(\\.[0-9]+)?$","description":"Total deposited, in units of the underlying; Compound v2 net of its reserves, Maker the ilk's collateral (or its debt on PSM-type ilks). `null` when the protocol does not report it for this reserve."},"total_borrowed":{"type":["string","null"],"format":"decimal","pattern":"^-?(0|[1-9][0-9]*)(\\.[0-9]+)?$","description":"Total borrowed, in units of the underlying; Maker the DAI debt (Art × rate). `null` when the protocol does not report it for this reserve."},"supply_rate":{"type":["string","null"],"format":"decimal","pattern":"^-?(0|[1-9][0-9]*)(\\.[0-9]+)?$","description":"Annual supply rate, as a fraction (`0.0187` = 1.87%). `null` when the protocol does not report it for this reserve."},"stable_borrow_rate":{"type":["string","null"],"format":"decimal","pattern":"^-?(0|[1-9][0-9]*)(\\.[0-9]+)?$","description":"Annual stable borrow rate, as a fraction. `null` when the protocol does not report it for this reserve."},"variable_borrow_rate":{"type":["string","null"],"format":"decimal","pattern":"^-?(0|[1-9][0-9]*)(\\.[0-9]+)?$","description":"Annual variable borrow rate, as a fraction. `null` when the protocol does not report it for this reserve."},"loan_to_value_ratio":{"type":["string","null"],"format":"decimal","pattern":"^-?(0|[1-9][0-9]*)(\\.[0-9]+)?$","description":"Maximum loan-to-value, as a fraction (`0.805`); Maker `1 / mat`. `null` when the protocol does not report it for this reserve."},"liquidation_threshold_ratio":{"type":["string","null"],"format":"decimal","pattern":"^-?(0|[1-9][0-9]*)(\\.[0-9]+)?$","description":"Liquidation threshold, as a fraction (`0.83`); Maker the collateralisation ratio `mat`, above 1 (`1.45`). `null` when the protocol does not report it for this reserve."},"liquidation_bonus_ratio":{"type":["string","null"],"format":"decimal","pattern":"^-?(0|[1-9][0-9]*)(\\.[0-9]+)?$","description":"Liquidation bonus including the principal (`1.05` = 5% bonus). `null` when the protocol does not report it for this reserve."},"reserve_factor_ratio":{"type":["string","null"],"format":"decimal","pattern":"^-?(0|[1-9][0-9]*)(\\.[0-9]+)?$","description":"Share of interest kept by the protocol, as a fraction. `null` when the protocol does not report it for this reserve."},"is_active":{"type":["boolean","null"],"description":"Whether the reserve is active, as last observed. `null` when the protocol does not report it for this reserve."},"is_frozen":{"type":["boolean","null"],"description":"Whether the reserve is frozen (Aave). `null` when the protocol does not report it for this reserve."},"available_liquidity_usd":{"type":["string","null"],"format":"decimal","pattern":"^-?(0|[1-9][0-9]*)(\\.[0-9]+)?$","description":"`available_liquidity` in USD at the protocol's own oracle price at `block_number`. `null` when not reported or the asset has no price."},"total_liquidity_usd":{"type":["string","null"],"format":"decimal","pattern":"^-?(0|[1-9][0-9]*)(\\.[0-9]+)?$","description":"`total_liquidity` in USD. `null` as `available_liquidity_usd`."},"total_borrowed_usd":{"type":["string","null"],"format":"decimal","pattern":"^-?(0|[1-9][0-9]*)(\\.[0-9]+)?$","description":"`total_borrowed` in USD. `null` as `available_liquidity_usd`."},"total_collateral_usd":{"type":["string","null"],"format":"decimal","pattern":"^-?(0|[1-9][0-9]*)(\\.[0-9]+)?$","description":"The collateral-enabled share of the deposits, in USD. `null` as `available_liquidity_usd`."},"cumulative_liquidations_usd":{"type":["string","null"],"format":"decimal","pattern":"^-?(0|[1-9][0-9]*)(\\.[0-9]+)?$","description":"Running USD total of the reserve's liquidations since the protocol's genesis. `null` on Compound v2, where liquidations are not served."},"liquidity_index":{"type":["string","null"],"format":"decimal","pattern":"^-?(0|[1-9][0-9]*)(\\.[0-9]+)?$","description":"Supply accumulator as a plain multiplier (`1.07` = 7% accrued since genesis). `null` when the protocol does not report it for this reserve."},"variable_borrow_index":{"type":["string","null"],"format":"decimal","pattern":"^-?(0|[1-9][0-9]*)(\\.[0-9]+)?$","description":"Borrow accumulator as a plain multiplier; Maker the ilk `rate`. `null` when the protocol does not report it for this reserve."},"borrowing_enabled":{"type":["boolean","null"],"description":"Whether the reserve can be borrowed (Aave). `null` when the protocol does not report it for this reserve."},"usage_as_collateral_enabled":{"type":["boolean","null"],"description":"Whether the reserve can back a loan (Aave, Compound v2). `null` when the protocol does not report it for this reserve."},"emode_category_id":{"type":["integer","null"],"format":"int64","description":"Aave efficiency-mode category of the reserve. `null` when the protocol does not report it for this reserve."},"metadata":{"type":"object","additionalProperties":true,"description":"Every other value the protocol reports for the reserve, as decoded; its keys depend on `protocol`. `observed_block_number` is set when the state was observed at an earlier block than `block_number`. `{}` when there is none. The keys are not part of the versioned contract. On Aave v3 the keys are `observed_block_number`, `ltv`, `liquidation_threshold`, `liquidation_bonus` and `reserve_factor` in basis points (`8100` = 0.81), `liquidity_index` and `variable_borrow_index` at full precision, `total_borrowed_stable` and `total_borrowed_variable` (the two parts of `total_borrowed`), `total_reserves`, `stable_borrow_rate_enabled`, `variable_debt_token_address`, and the flags `is_active`, `is_frozen`, `borrowing_enabled`, `usage_as_collateral_enabled` and `emode_category_id` as the protocol reports them."}}},"Meta":{"type":"object","description":"Metadata of a collection response.","required":["api_version","url","count","next_url"],"properties":{"api_version":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}(-preview)?$","description":"Version this endpoint served: its version released on or before the requested `api_version`, or its oldest version still served when the request omitted it. Suffixed `-preview` when a preview version served it."},"url":{"type":"string","format":"uri","description":"Absolute URL of the request that produced this response, as received: path and query string unchanged, defaults not filled in, except `api_version`, which is always present (the version served when the request omitted it). Lets a stored response say what it answers, in the shape it was answered."},"count":{"type":"integer","minimum":0,"description":"Number of items in `data` on this page."},"next_url":{"type":["string","null"],"format":"uri","description":"Absolute URL of the next page, `null` on the last page. It holds only public parameters: the original query with every default made explicit (`api_version` included) and the time bound moved past the last row, plus the dataset's tie-breaker (`after_<key>`) where timestamps can tie. An operation that pages on another keyset (a block position, a snapshot) says so in its description, and its `next_url` carries that keyset's parameters instead."}}},"Problem":{"type":"object","description":"RFC 9457 problem details. Served as application/problem+json.","required":["type","title","status","code"],"properties":{"type":{"type":"string","format":"uri-reference","const":"about:blank","description":"Always `about:blank`; the reason is carried by `code`."},"title":{"type":"string","description":"HTTP reason phrase."},"status":{"type":"integer","minimum":400,"maximum":599,"description":"HTTP status code, repeated for clients that lose the status line."},"detail":{"type":"string","description":"Human-readable explanation specific to this occurrence. Do not parse it."},"instance":{"type":"string","format":"uri-reference","description":"Request path and request id, to quote to support."},"code":{"type":"string","pattern":"^[a-z][a-z0-9_]*$","description":"Stable machine-readable reason. Clients branch on this. New values are additive; renaming one is breaking. Values in use: invalid_parameter, unsupported_api_version, missing_api_key, invalid_api_key, not_entitled, history_out_of_entitlement, unknown_instrument, pair_not_covered, unknown_asset, unknown_index, unsupported_blockchain, chain_capability_unsupported, token_not_found, unknown_contract, unknown_protocol, unknown_pool, query_too_large, snapshot_expired, resource_not_found, method_not_allowed, not_acceptable, rate_limited, internal_error, service_unavailable."},"errors":{"type":"array","description":"On 400, one entry per invalid parameter.","items":{"$ref":"#/components/schemas/ParameterError"}}}},"ParameterError":{"type":"object","description":"One invalid parameter in a 400 response.","required":["parameter","detail"],"properties":{"parameter":{"type":"string","description":"Name of the offending parameter."},"detail":{"type":"string","description":"What is wrong with it."}}}},"responses":{"BadRequest":{"description":"Invalid parameter, window or API version.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"Unauthorized":{"description":"Missing or unknown X-Api-Key.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"Forbidden":{"description":"The key is valid but not entitled to this product, instrument or history depth.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"NotAcceptable":{"description":"The Accept header excludes application/json.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"TooManyRequests":{"description":"Rate limited. Retry after the delay in Retry-After.","headers":{"Retry-After":{"$ref":"#/components/headers/Retry-After"}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"InternalError":{"description":"Unexpected server failure.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"ServiceUnavailable":{"description":"A dependency is down or the data is not available yet.","headers":{"Retry-After":{"$ref":"#/components/headers/Retry-After"}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}},"headers":{"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer","minimum":0}}}},"paths":{"/defi/lending/market-snapshots":{"get":{"operationId":"ListLendingMarketSnapshots","tags":["Lending"],"summary":"What is this endpoint for?","description":"Market snapshots give the state of each market of a lending protocol: available liquidity, total deposited and borrowed, supply and borrow rates, and risk parameters such as loan-to-value and liquidation threshold. Amounts are in token units and in US dollars at the protocol's own oracle price. Read the latest state, the state at any past point, or a series at a regular interval.","parameters":[{"$ref":"#/components/parameters/BlockchainQuery"},{"$ref":"#/components/parameters/LendingProtocolRequiredQuery"},{"$ref":"#/components/parameters/LendingAssetsQuery"},{"$ref":"#/components/parameters/LendingSnapshotMarketIdsQuery"},{"$ref":"#/components/parameters/LendingSnapshotAtTimeQuery"},{"$ref":"#/components/parameters/LendingSnapshotAtBlockQuery"},{"$ref":"#/components/parameters/StartTimeQuery"},{"$ref":"#/components/parameters/EndTimeQuery"},{"$ref":"#/components/parameters/LendingSnapshotStartBlockQuery"},{"$ref":"#/components/parameters/LendingSnapshotEndBlockQuery"},{"$ref":"#/components/parameters/LendingSnapshotIntervalQuery"},{"$ref":"#/components/parameters/LiveQuery"},{"$ref":"#/components/parameters/LendingSnapshotSortQuery"},{"$ref":"#/components/parameters/PageSizeQuery"},{"$ref":"#/components/parameters/LendingAfterMarketIdQuery"},{"$ref":"#/components/parameters/LendingAfterReserveAssetQuery"},{"$ref":"#/components/parameters/ApiVersionQuery"}],"responses":{"200":{"description":"One page of `LendingMarketSnapshot` rows.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListLendingMarketSnapshotsResponse"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"description":"The `blockchain` is not a Kaiko EVM chain, or no served lending protocol runs on it (`unsupported_blockchain`), or the `protocol` is unknown or does not run on `blockchain` (`unknown_protocol`).","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"406":{"$ref":"#/components/responses/NotAcceptable"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/InternalError"},"503":{"$ref":"#/components/responses/ServiceUnavailable"}}}}}}
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.kaiko.com/rest-api/defi-lending-and-borrowing-markets/market-data/lending-market-snapshots/market-snapshots.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
