> 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-spot-markets/market-data/mints-and-burns/mints-and-burns.md). Agents can also search and read this documentation through its [MCP server](https://docs.kaiko.com/~gitbook/mcp).

# Mints and burns

{% hint style="info" %}

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

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

*Subscriptions with "DeFi Spot" as the market type.*
{% endhint %}

## What is this endpoint for?

> Liquidity events record every addition and removal of liquidity on DEX pools: each deposit and withdrawal of tokens by a liquidity provider, with the pool, the provider's address, the token amounts and the transaction. For Uniswap v3-type pools, rows also give the price range of the position. Filter by pool, token, provider or transaction.

```json
{"openapi":"3.1.1","info":{"title":"Kaiko API","version":"2026-10-01"},"tags":[{"name":"Liquidity","description":"Liquidity of DEX pools: the mints and burns that add and remove it, and the tokens each pool holds block by block, per tick range for concentrated-liquidity pools."}],"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_]+$"}},"LiquidityProtocolQuery":{"name":"protocol","in":"query","required":false,"description":"Kaiko DEX protocol code (`usp2` Uniswap v2, `usp3` Uniswap v3, `curv` Curve, ...). Omitted, every protocol of `blockchain`. A code that is not a Kaiko DEX protocol returns 404 `unknown_protocol`.","schema":{"type":"string","pattern":"^[a-z0-9]{1,16}$"}},"LiquidityPoolAddressQuery":{"name":"pool_address","in":"query","required":false,"description":"Keep the events of this pool: its contract address, or its pool id where the protocol has no per-pool contract (a 32-byte hex id). Matched case-insensitively, so an EIP-55 checksummed address is accepted. A pool with no event in the window returns `data: []`.","schema":{"$ref":"#/components/schemas/LiquidityPoolAddress"}},"LiquidityAssetsQuery":{"name":"assets","in":"query","required":false,"description":"Keep the events of pools holding any of these tokens, comma-separated, each a token symbol as the rows carry it (`weth`). Matched case-insensitively. Contract addresses are not accepted in this version (400): accepting them later is an additive change.","style":"form","explode":false,"schema":{"type":"array","minItems":1,"maxItems":100,"items":{"type":"string","pattern":"^[A-Za-z0-9._-]{1,64}$"}}},"LiquidityAddressesQuery":{"name":"addresses","in":"query","required":false,"description":"Keep the events of these accounts (`user_address`), comma-separated. Matched case-insensitively, so an EIP-55 checksummed address is accepted.","style":"form","explode":false,"schema":{"type":"array","minItems":1,"maxItems":100,"items":{"type":"string","pattern":"^0x[0-9a-fA-F]{40}$"}}},"LiquidityEventTypesQuery":{"name":"event_types","in":"query","required":false,"description":"Keep the events of these types, comma-separated. Omitted, every type.","style":"form","explode":false,"schema":{"type":"array","minItems":1,"items":{"$ref":"#/components/schemas/LiquidityEventType"}}},"LiquidityTransactionHashQuery":{"name":"transaction_hash","in":"query","required":false,"description":"Keep the events of this one transaction. Combines with every other filter and window; with no `start_time` and no block bound it reads the key's whole entitled history.","schema":{"type":"string","pattern":"^0x[0-9a-fA-F]{64}$"}},"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"}},"LiquidityStartBlockQuery":{"name":"start_block","in":"query","required":false,"description":"Inclusive first block. Combines with `start_time` and `end_time`: every bound sent applies. Not with `at_time` or `at_block` (400).","schema":{"type":"integer","format":"int64","minimum":1,"maximum":9007199254740991}},"LiquidityEndBlockQuery":{"name":"end_block","in":"query","required":false,"description":"Exclusive end block: the window stops before it. Combines with `start_time` and `end_time`: every bound sent applies. Not with `at_time` or `at_block` (400).","schema":{"type":"integer","format":"int64","minimum":2,"maximum":9007199254740991}},"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}},"LiquidityEventSortQuery":{"name":"sort","in":"query","required":false,"description":"Order on (`timestamp`, `transaction_hash`, `log_index`). Newest first by default.","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}},"LiquidityAfterTransactionHashQuery":{"name":"after_transaction_hash","in":"query","required":false,"description":"Resume point, with `after_log_index`: the `transaction_hash` of the last row served, within the time `meta.next_url` bounds. Copy both from `meta.next_url`. Send both or neither (400).","schema":{"type":"string","pattern":"^0x[0-9a-fA-F]{64}$"}},"LiquidityAfterLogIndexQuery":{"name":"after_log_index","in":"query","required":false,"description":"Resume point, with `after_transaction_hash`: the `log_index` of the last row served. Copy both from `meta.next_url`. Send both or neither (400).","schema":{"type":"integer","format":"int64","minimum":0}},"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":{"LiquidityPoolAddress":{"type":"string","description":"A pool's contract address (20 bytes), or its pool id where the protocol has no per-pool contract (32 bytes), 0x-prefixed hex.","pattern":"^0x([0-9a-fA-F]{40}|[0-9a-fA-F]{64})$"},"LiquidityEventType":{"type":"string","description":"What happened: `mint` adds liquidity to a pool, `burn` removes it. New values are additive: clients must tolerate one they do not know.","enum":["mint","burn"]},"Sort":{"type":"string","enum":["asc","desc"],"default":"desc","description":"Order on the time axis."},"ListLiquidityEventsResponse":{"type":"object","description":"One page of liquidity events.","required":["data","meta"],"properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/LiquidityEvent"}},"meta":{"$ref":"#/components/schemas/Meta"}}},"LiquidityEvent":{"type":"object","description":"One liquidity event of a DEX pool. Unique on (`blockchain`, `transaction_hash`, `log_index`).","required":["event_type","blockchain","protocol","pool_address","pool_name","block_number","log_index","timestamp","transaction_hash","user_address","price","amounts","metadata"],"properties":{"event_type":{"$ref":"#/components/schemas/LiquidityEventType"},"blockchain":{"type":"string","description":"Kaiko blockchain code."},"protocol":{"type":"string","description":"Kaiko DEX protocol code of the pool. liquidity.v1 called it `exchange`."},"pool_address":{"type":"string","description":"Pool contract address, or pool id, lowercase."},"pool_name":{"type":"string","description":"Pool name, as Kaiko's pool reference data holds it."},"block_number":{"type":"integer","format":"int64","description":"Block that holds the event."},"log_index":{"type":"integer","format":"int64","description":"Index of the event's log in its block."},"timestamp":{"type":"string","format":"date-time","description":"Block time, ISO 8601 UTC, millisecond precision; always whole seconds (`.000Z`), the precision of a block time. liquidity.v1 sent `datetime`, unix seconds."},"transaction_hash":{"type":"string","description":"Transaction that emitted the event, 0x-prefixed hex, lowercase."},"user_address":{"type":["string","null"],"description":"Account that added or removed the liquidity, lowercase (on Uniswap v3, the position owner, often the position manager contract). `null` when the source records none (not reported)."},"price":{"type":["string","null"],"format":"decimal","pattern":"^-?(0|[1-9][0-9]*)(\\.[0-9]+)?$","description":"Pool price at the event, in units of the pool's second token per unit of its first (`amounts[1]` per `amounts[0]`), decimals applied. `null` when the source records no price for the pool (not reported: pools of more than two tokens), where liquidity.v1 sent `0`."},"amounts":{"type":"array","description":"The amount of each pool token the event adds (`mint`) or removes (`burn`), in the pool's token order. Always zero or positive: `event_type` gives the direction (Uniswap v4 burns, which collection records as negative, are served as their absolute value, where liquidity.v1 sent them negative).","items":{"$ref":"#/components/schemas/LiquidityTokenAmount"}},"metadata":{"type":"object","additionalProperties":true,"description":"What the protocol records with the event beyond the columns above, as decoded: its keys depend on `protocol`. On Uniswap v3 and its forks it holds the position's tick range as `lower_tick` and `upper_tick` (liquidity.v1's `lower_ticker` and `upper_ticker`), which are part of the contract. `{}` when there is none. The other keys are not part of the versioned contract: one can appear when collection decodes more of an event."}}},"LiquidityTokenAmount":{"type":"object","description":"An amount of one token of a pool.","required":["symbol","address","amount"],"properties":{"symbol":{"type":"string","description":"Token symbol, lowercase."},"address":{"type":"string","description":"Token contract address, lowercase."},"amount":{"$ref":"#/components/schemas/DecimalString","description":"Amount of the token, in token units (decimals applied). What it counts is the row's: moved by an event, or held by the pool."}}},"DecimalString":{"type":"string","format":"decimal","pattern":"^-?(0|[1-9][0-9]*)(\\.[0-9]+)?$","description":"Exact decimal carried as a string so it never passes through a float. Default for raw market-data values (prices, amounts, volumes).\n"},"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/liquidity/events":{"get":{"operationId":"ListLiquidityEvents","tags":["Liquidity"],"summary":"What is this endpoint for?","description":"Liquidity events record every addition and removal of liquidity on DEX pools: each deposit and withdrawal of tokens by a liquidity provider, with the pool, the provider's address, the token amounts and the transaction. For Uniswap v3-type pools, rows also give the price range of the position. Filter by pool, token, provider or transaction.","parameters":[{"$ref":"#/components/parameters/BlockchainQuery"},{"$ref":"#/components/parameters/LiquidityProtocolQuery"},{"$ref":"#/components/parameters/LiquidityPoolAddressQuery"},{"$ref":"#/components/parameters/LiquidityAssetsQuery"},{"$ref":"#/components/parameters/LiquidityAddressesQuery"},{"$ref":"#/components/parameters/LiquidityEventTypesQuery"},{"$ref":"#/components/parameters/LiquidityTransactionHashQuery"},{"$ref":"#/components/parameters/StartTimeQuery"},{"$ref":"#/components/parameters/EndTimeQuery"},{"$ref":"#/components/parameters/LiquidityStartBlockQuery"},{"$ref":"#/components/parameters/LiquidityEndBlockQuery"},{"$ref":"#/components/parameters/LiveQuery"},{"$ref":"#/components/parameters/LiquidityEventSortQuery"},{"$ref":"#/components/parameters/PageSizeQuery"},{"$ref":"#/components/parameters/LiquidityAfterTransactionHashQuery"},{"$ref":"#/components/parameters/LiquidityAfterLogIndexQuery"},{"$ref":"#/components/parameters/ApiVersionQuery"}],"responses":{"200":{"description":"One page of liquidity events, in the order `sort` asks for.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListLiquidityEventsResponse"}}}},"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 (`unsupported_blockchain`), or the `protocol` is not a Kaiko DEX protocol (`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-spot-markets/market-data/mints-and-burns/mints-and-burns.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.
