get_pool_ohlcv
Retrieve OHLCV (Open, High, Low, Close, Volume) data for DeFi pools across multiple blockchains to analyze historical price trends and trading volumes for informed decision-making in crypto trading strategies.
Instructions
Get OHLCV (Open, High, Low, Close, Volume) data for a pool
Input Schema
Name | Required | Description | Default |
---|---|---|---|
aggregate | No | Aggregate interval (optional, default: '1') | |
before_timestamp | No | Get data before this timestamp (optional) | |
currency | No | Currency for price data: 'usd', 'token' (optional, default: 'usd') | |
include_empty_intervals | No | Include empty intervals (optional, default: false) | |
limit | No | Limit number of results (optional, max: 1000) | |
network | Yes | Network ID (e.g., 'eth', 'bsc', 'polygon_pos') | |
poolAddress | Yes | Pool contract address | |
timeframe | Yes | Timeframe for OHLCV data: 'day', 'hour', 'minute' | |
token | No | Token for price data: 'base', 'quote' (optional, default: 'base') |
Input Schema (JSON Schema)
{
"properties": {
"aggregate": {
"description": "Aggregate interval (optional, default: '1')",
"type": "string"
},
"before_timestamp": {
"description": "Get data before this timestamp (optional)",
"type": "integer"
},
"currency": {
"description": "Currency for price data: 'usd', 'token' (optional, default: 'usd')",
"enum": [
"usd",
"token"
],
"type": "string"
},
"include_empty_intervals": {
"description": "Include empty intervals (optional, default: false)",
"type": "boolean"
},
"limit": {
"description": "Limit number of results (optional, max: 1000)",
"type": "integer"
},
"network": {
"description": "Network ID (e.g., 'eth', 'bsc', 'polygon_pos')",
"type": "string"
},
"poolAddress": {
"description": "Pool contract address",
"type": "string"
},
"timeframe": {
"description": "Timeframe for OHLCV data: 'day', 'hour', 'minute'",
"enum": [
"day",
"hour",
"minute"
],
"type": "string"
},
"token": {
"description": "Token for price data: 'base', 'quote' (optional, default: 'base')",
"enum": [
"base",
"quote"
],
"type": "string"
}
},
"required": [
"network",
"poolAddress",
"timeframe"
],
"type": "object"
}