getTradeAggregations
Retrieve OHLC candlestick data for any Stellar DEX trading pair, specifying base and counter assets, time resolution, and candle count.
Instructions
Get OHLC trade aggregation data for a Stellar DEX asset pair
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"baseAsset": "<baseAsset>",
"counterAsset": "<counterAsset>"
},
"name": "getTradeAggregations"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Number of candles | |
| baseAsset | Yes | Base asset: "XLM" or "CODE:ISSUER" | |
| resolution | No | Candle resolution | 1h |
| counterAsset | Yes | Counter asset: "XLM" or "CODE:ISSUER" |