get_pool_data
Query and retrieve detailed information about a specific Uniswap pool by version and ID, returning markdown-formatted data including token addresses, fee tiers, volume, liquidity, and fees.
Instructions
Query a specific Uniswap pool/pair by version (v2, v3, v4) and ID and return as markdown text.
Parameters:
version (str): The Uniswap version to query ('v2', 'v3', or 'v4').
pool_id (str): The Ethereum address of the pool or pair to query (e.g., '0xb4e16d0168e52d35cacd2c6185b44281ec28c9dc').
ctx (Context): The API context for logging and error handling.
Returns:
A markdown-formatted string containing details of the pool/pair, including Version, ID, Pair, Token0 Address,
Token1 Address, Fee Tier, Volume USD, Liquidity/ReserveUSD, and Fees USD.
Input Schema
Name | Required | Description | Default |
---|---|---|---|
pool_id | Yes | ||
version | Yes |
Input Schema (JSON Schema)
{
"properties": {
"pool_id": {
"title": "Pool Id",
"type": "string"
},
"version": {
"title": "Version",
"type": "string"
}
},
"required": [
"version",
"pool_id"
],
"title": "get_pool_dataArguments",
"type": "object"
}