Skip to main content
Glama

DeFi Trading Agent MCP Server

by edkdev

get_pool_ohlcv

Retrieve OHLCV (Open, High, Low, Close, Volume) data for DeFi trading pools across multiple blockchains to analyze market trends and improve trading strategies.

Instructions

Get OHLCV (Open, High, Low, Close, Volume) data for a pool

Input Schema

NameRequiredDescriptionDefault
aggregateNoAggregate interval (optional, default: '1')
before_timestampNoGet data before this timestamp (optional)
currencyNoCurrency for price data: 'usd', 'token' (optional, default: 'usd')
include_empty_intervalsNoInclude empty intervals (optional, default: false)
limitNoLimit number of results (optional, max: 1000)
networkYesNetwork ID (e.g., 'eth', 'bsc', 'polygon_pos')
poolAddressYesPool contract address
timeframeYesTimeframe for OHLCV data: 'day', 'hour', 'minute'
tokenNoToken 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" }

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/edkdev/defi-trading-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server