dex_candle
Get historical OHLCV candlestick data from decentralized exchanges (DEX). Data is organized by chain, exchange, and pool. Useful for DEX price analysis and comparing with CEX prices.
Usage hints:
- Pool address is required — use dex_pools to find pool addresses first
- Use chain and exchange filters to narrow the pool search
- Compare with cex_candle data for cross-venue price analysis
REST endpoint
GET /api/v1/dex/candle — see REST reference.
Parameters
| Name | Type | Required | Default | Description | Example |
|---|---|---|---|---|---|
chain | string | yes | Specifes chain | "..." | |
exchange | string | yes | Specifes exchange | "..." | |
pool | string | yes | Specifies pool | "..." | |
interval | string | no | 1d | Specifies interval (default: 1d) | "1d" |
from | string | no | Specifies from | "..." | |
to | string | no | Specifies to | "..." | |
page | integer | no | 1 | Page number (default: 1) | 1 |
limit | integer | no | 1000 | Page size (default: 1000) | 1000 |
sort | string | no | asc | Specifies sort (asc, desc) (default: asc) | "asc" |
Example invocation
JSON-RPC tools/call payload:
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "dex_candle",
"arguments": {
"chain": "...",
"exchange": "...",
"pool": "...",
"interval": "1d",
"page": 1,
"limit": 1000,
"sort": "asc"
}
}
}